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

SLING-11229 - Support Configurable Limit for JCR Resource Provider Query Methods #22

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

klcodanr
Copy link
Contributor

Split from #21

This just covers enabling the JCR Resource Provider to configure a limit for the JCR Resource Provider's BasicQueryLanguageProvider.

@klcodanr klcodanr requested review from kwin and joerghoh March 29, 2022 21:51
Copy link
Contributor

@joerghoh joerghoh left a comment

Choose a reason for hiding this comment

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

LGTM. Just some minor nitpicking on the descriptions.

@AttributeDefinition(name = "Enable Query Limit", description = "If set to true, the JcrResourceProvider will set a default limit for all other queries using the findResources / queryResources methods")
boolean enable_query_limit() default false;

@AttributeDefinition(name = "Query Limit", description = "The default query limit for queries using the findResources / queryResources methods")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
@AttributeDefinition(name = "Query Limit", description = "The default query limit for queries using the findResources / queryResources methods")
@AttributeDefinition(name = "Query Limit", description = "The default query limit for queries using the findResources / queryResources methods. It will only take effect if the query limit feature is enabled.")

@sonarcloud
Copy link

sonarcloud bot commented Mar 30, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

95.5% 95.5% Coverage
0.0% 0.0% Duplication

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