Skip to content

Conversation

kaladay
Copy link
Contributor

@kaladay kaladay commented Jun 21, 2018

…ce management table

The ServiceSpecification is implemented to provide sorting and pagination.

The AbstracSpecification used a default 'lastModified' order by, which does not exist in the ServiceRepo.
To prevent breakage, the the order by assignment was move into its own function, toPredicateDefaultQueryOrderBy().
This allows for the ServiceSpecification, as an exception, to not attempt to order by "lastModified" by overriding that new method.

…ce management table

The ServiceSpecification is implemented to provide sorting and pagination.

The AbstracSpecification used a default 'lastModified' order by, which does not exist in the ServiceRepo.
To prevent breakage, the the order by assignment was move into its own function, toPredicateDefaultQueryOrderBy().
This allows for the ServiceSpecification, as an exception, to not attempt to order by "lastModified" by overriding that new method.
@kaladay kaladay requested a review from a user June 21, 2018 13:38
@coveralls
Copy link

coveralls commented Jun 21, 2018

Pull Request Test Coverage Report for Build 15

  • 4 of 9 (44.44%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+2.4%) to 65.815%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/edu/tamu/app/model/repo/specification/ServiceSpecification.java 2 4 50.0%
src/main/java/edu/tamu/app/model/repo/specification/AbstractSpecification.java 0 3 0.0%
Totals Coverage Status
Change from base Build 11: 2.4%
Covered Lines: 618
Relevant Lines: 939

💛 - Coveralls

kaladay added 2 commits June 21, 2018 12:37
Repeat the coverage fix for the ServiceController in all similar controllers.
The FeatureProposalController seems to be inconsistent and used other names than "page" for its method.
@rladdusaw rladdusaw changed the base branch from sprint5 to sprint5-staging June 22, 2018 19:06
@kaladay kaladay merged commit 866e14a into sprint5-staging Jul 2, 2018
@kaladay kaladay deleted the sprint5-b03526-sort_services branch July 5, 2018 20:57
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