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

FI-3263: User Access Brands Fix Huge Bundle Error #85

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

Conversation

emichaud998
Copy link
Contributor

Summary

This PR updates the way User Access Brand Bundles are validated so that the Bundle validation test will not fail if the Bundle is extremely large. Rather that sending the full validator to the validator, the Bundle validation test will test for each of the Bundle constraints and required fields manually. The validator has also been updated to limit the number of validation messages/errors to 50 so that the UI does not get bogged down with validation messages. The Limit Validation to a Maximum Resource Count input has been added to give the user the ability to choose how many Bundle resources they want validated. If the user submits that they want X resources validated, Inferno will limit the number of Bundle entries down to around X resources by looping through each Brand resource and adding any referenced endpoints, or parent Brand and it's referenced endpoints. This substantially cuts down the time it takes these tests to run for large Bundles. However, large Bundles can now be ran without Inferno crashing, though it may slow the system down and take a while to complete, around 20-30 minutes depending on the size of the Bundle.

Testing Guidance

Ensure running our tests against https://serve-basket.s3.us-east-2.amazonaws.com/brands.json no longer results in a validator 400 error. Then test out running the tests against https://serve-basket.s3.us-east-2.amazonaws.com/brands.json with the Limit Validation to a Maximum Resource Count input populated to view how it cuts down the run time of the tests.

…dd input to limit entries that are validated
…_valid_bundle_entries, and add filter to limit the number of warning/error messages that appear from the validator
@emichaud998 emichaud998 self-assigned this Dec 4, 2024
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