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

Fix max pages quota setting and display #2370

Merged
merged 4 commits into from
Feb 11, 2025

Conversation

ikreymer
Copy link
Member

@ikreymer ikreymer commented Feb 10, 2025

  • add ensure_page_limit_quotas() which sets the config limit to the max pages quota, if any
  • set the page limit on the config when: creating new crawl, creating configmap
  • don't set the quota page limit on new or existing crawl workflows (remove setting it on new workflows) to allow updated quotas to take affect for next crawl
  • frontend: correctly display page limit on workflow settings page from org quotas, if set.
  • operator: get org on each sync in one place
  • fixes [Bug]: Page limit from quotas is not always being set correctly. #2369

@ikreymer ikreymer requested a review from tw4l February 10, 2025 08:38
Copy link
Member

@tw4l tw4l left a comment

Choose a reason for hiding this comment

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

Nice optimizations, thank you! Could possibly use a new test or two?

ikreymer and others added 4 commits February 10, 2025 16:12
- add ensure_page_limit_quotas() which sets the limit to the quota
- set the page limit when: creating new crawl, creating configmap, returning crawl workflow
- don't set the quota page limit on new or existing crawl workflows (remove setting it on new workflows) to allow updated quotas to take affect for next crawl
- fixes #2369
@SuaYoo SuaYoo force-pushed the issue-2369-fix-page-limit-quotas branch from 646990e to 2931b51 Compare February 11, 2025 00:13
@ikreymer ikreymer merged commit 001839a into main Feb 11, 2025
27 checks passed
@ikreymer ikreymer deleted the issue-2369-fix-page-limit-quotas branch February 11, 2025 00:15
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.

[Bug]: Page limit from quotas is not always being set correctly.
3 participants