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

QuerySpec API to simplify QueryParameters handling #104

Merged
merged 6 commits into from
Sep 5, 2016
Merged

Conversation

remmeier
Copy link
Contributor

@remmeier remmeier commented Sep 1, 2016

see #4

New QuerySpec class and QuerySpecResourceRepository to take care of QueryParams parsing and providing a higher-level API.

QuerySpec.apply() to perform in-memory operations.

Remo Meier added 3 commits August 28, 2016 10:07
parameters #4

prototype of a new QueryParams class named QuerySpec to ease use.
Integrated as BaseResourceRepository
and 
BaseRelationshipRepository providing an adapter from QueryParams to
QuerySpec.

- just a prototype, not yet functional
- APi oriented towards the queries resource, parameters for other types
can be obtained from QuerySpec.relatedSpecs.
- QuerySpecParser will be used to sort out what is a type, operator and
attribute path.
- InMemoryEvaluator to apply a QuerySpec to a list in memory for simple
use cases
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.03%) to 88.833% when pulling 7cf843d on query into 3c9e24f on develop.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.9%) to 88.989% when pulling 4621aac on query into 3c9e24f on develop.

@@ -16,9 +16,6 @@
*/
public class ClassUtils {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a whole lost percent of coverage. That is somewhat troubling

On Fri, Sep 2, 2016, 8:11 AM SonarQube Reporter notifications@github.com
wrote:

In katharsis-core/src/main/java/io/katharsis/utils/ClassUtils.java
#104 (comment)
:

@@ -16,9 +16,6 @@
*/
public class ClassUtils {

[image: MAJOR]
https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png
Add a private constructor to hide the implicit public one. [image: rule]
https://sonarqube.com/coding_rules#rule_key=squid%3AS1118


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/katharsis-project/katharsis-framework/pull/104/files/4621aac399372494c3dcdb12e77d4947ccdd94d7#r77362114,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABaI0Dj3XhHOOat-2ssl7eEMUBnvMmIYks5qmDwogaJpZM4Jy4e0
.

@remmeier
Copy link
Contributor Author

remmeier commented Sep 2, 2016

will have a look at the sonar coverage...

@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 90.393% when pulling 8f20bf1 on query into 3c9e24f on develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.6%) to 90.417% when pulling 8f20bf1 on query into 3c9e24f on develop.

@masterspambot masterspambot merged commit 30b6d70 into develop Sep 5, 2016
@masterspambot masterspambot deleted the query branch September 5, 2016 19:02
@Ramblurr
Copy link
Contributor

Ramblurr commented Sep 6, 2016

Would be really nice to get documentation for this. This feature is in 2.6.0, but without documentation, it's not very useful. See #109

@remmeier @masterspambot If you could just throw something together, I'd be happy to polish it up.

remmeier added a commit that referenced this pull request Nov 6, 2016
- proper total count computation
- support to traverse multi-valued properties
remmeier added a commit that referenced this pull request Nov 6, 2016
- proper total count computation
- support to traverse multi-valued properties
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.

5 participants