Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline the publication settings class into the publication type class #818

Merged
merged 29 commits into from
Jan 8, 2023

Conversation

caendesilva
Copy link
Member

Since this class has now been simplified, and both sortField and sortAscending can be used outside of pagination, this class is now longer needed and can be inlined into the PublicationType class.

@codecov
Copy link

codecov bot commented Jan 8, 2023

Codecov Report

Merging #818 (6e065a7) into publications-feature (540ba60) will not change coverage.
The diff coverage is n/a.

@@                    Coverage Diff                     @@
##             publications-feature      #818     +/-   ##
==========================================================
  Coverage                  100.00%   100.00%             
+ Complexity                   3022      1506   -1516     
==========================================================
  Files                         338       168    -170     
  Lines                        7558      3769   -3789     
==========================================================
- Hits                         7558      3769   -3789     
Impacted Files Coverage Δ
...rc/Console/Commands/MakePublicationTypeCommand.php 100.00% <0.00%> (ø)
...rc/Framework/Actions/CreatesNewPublicationType.php 100.00% <0.00%> (ø)
...k/Features/Publications/Models/PublicationType.php 100.00% <0.00%> (ø)
...rc/Console/Commands/MakePublicationTypeCommand.php
...rc/Framework/Actions/CreatesNewPublicationType.php
...k/Features/Publications/Models/PublicationType.php
packages/framework/src/Facades/Route.php
packages/framework/src/Support/Models/Route.php
...c/Framework/Actions/CreatesNewMarkdownPostFile.php
...amework/src/Framework/Actions/SourceFileParser.php
... and 162 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@caendesilva
Copy link
Member Author

We might even want to sort the collection on parse

@caendesilva caendesilva force-pushed the inline-publication-settings-class branch from b5665a4 to 34a9f1f Compare January 8, 2023 20:11
@caendesilva caendesilva force-pushed the inline-publication-settings-class branch from 40b7f48 to ceb0348 Compare January 8, 2023 20:19
@caendesilva caendesilva changed the title Inline the publication settings class into the publication type class Inline publication settings property into the publication type class Jan 8, 2023
@caendesilva caendesilva changed the title Inline publication settings property into the publication type class Inline the publication settings class into the publication type class Jan 8, 2023
This actually matches the previous behaviour where the pagination array was empty by default (and thus considered disabled)
This reverts commit 6f829da.
@caendesilva caendesilva marked this pull request as ready for review January 8, 2023 20:30
@caendesilva caendesilva merged commit 0afd894 into publications-feature Jan 8, 2023
@caendesilva caendesilva deleted the inline-publication-settings-class branch January 8, 2023 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants