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

LEAF-4487 - Large Queries #11

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

shaneodd
Copy link
Contributor

@shaneodd shaneodd commented Oct 29, 2024

Moving the test over here from the old x-test dir in leaf

This is the test that works with this pr, it should fail with the current master branch.

department-of-veterans-affairs/LEAF#2546

Copy link
Collaborator

@mgaoVA mgaoVA left a comment

Choose a reason for hiding this comment

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

These tests should be moved into the formQuery_test.go file, since it's testing api/form/query.

The test should not be made "compatible" with the master branch -- since we're looking for a specific header to determine success, the absence of the header must indicate failure. Explaining that the test only works with a specific PR (which you've already done) would be sufficient. Maybe we can also create a label in Github to highlight this distinction.

shane added 3 commits December 2, 2024 09:22
…when large query server/code is not in use
…he correct docker config and code, previus iterations allowed for passage if not run on the proper version since at the time we were unsure how the testing process would function
@shaneodd shaneodd requested a review from mgaoVA December 2, 2024 16:08
@shaneodd
Copy link
Contributor Author

shaneodd commented Dec 2, 2024

Updated the test to require the proper docker config and code to test and pass

Copy link
Collaborator

@mgaoVA mgaoVA left a comment

Choose a reason for hiding this comment

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

I've added a requested change in department-of-veterans-affairs/LEAF#2546 to discuss simplification of the new header.

These tests are Ok, though can be strengthened by exercising all conditions of what defines a large query:

  • No limit parameter set
  • Limit is > 10,000 records
  • Limit is > 1000 and <= 10,000 records AND more than 10 indicators are requested

@shaneodd shaneodd requested a review from mgaoVA December 9, 2024 15:27
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.

3 participants