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

Speed up generation of validation report #548

Merged
merged 5 commits into from
Mar 12, 2024

Conversation

simon-20
Copy link
Contributor

@simon-20 simon-20 commented Mar 7, 2024

This change adds some failure context info to what is saved, when the rulesets are checked. This context info is available when the rule is checked; previously it was not saved then, but re-generated using an extremely slow XPath query.

simon-20 added 3 commits March 8, 2024 10:23
Speeds up validation by saving previously generated context, and then using that to generate the JSON report, rather than re-searching the entire DOM as was previously done.
@simon-20 simon-20 force-pushed the speed_up_validation_report branch from 2cd5f36 to 99548d7 Compare March 8, 2024 10:29
@simon-20
Copy link
Contributor Author

simon-20 commented Mar 8, 2024

Including the small fix needed for #483 since I had this pending locally.

@simon-20 simon-20 merged commit 769bcd5 into develop Mar 12, 2024
3 checks passed
@simon-20 simon-20 deleted the speed_up_validation_report branch March 12, 2024 15:54
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.

1 participant