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

Cleanup/consolidate QueryExecutorBean's Persister usage #2308

Open
wants to merge 3 commits into
base: integration
Choose a base branch
from

Conversation

keith-ratcliffe
Copy link
Collaborator

@keith-ratcliffe keith-ratcliffe commented Mar 13, 2024

This PR is a follow-up to #2251 (#2252)...

#2252 fixed a bug related to max results override validation by leveraging QueryLogic.getResultLimit in QEB's validateQuery method

That is, getResultLimit takes into account all configured overrides (e.g., QueryLogic, DN, and systemFrom overrides), which is necessary to properly validate the user's own max.results.override parameter.

Unfortunately, that fix created even more unnecessary duplication of Query initialization logic in QEB....logic that I lifted from Persister.create, and logic that was already duplicated in several spots in QEB.

So, this PR attempts to consolidate all of that into validateQuery, extending the QueryData class to encapsulate the Query instance

(The diff is a lot easier to read with whitespace ignored)

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.

Cleanup/consolidate QEB's usage of Persister
2 participants