-
Notifications
You must be signed in to change notification settings - Fork 2.3k
chore: bump indexing usage #7307
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -236,10 +236,10 @@ async def async_return_default_schema(*args: Any, **kwargs: Any) -> str: | |||||
|
|
||||||
| # Per-week chunks indexed limits | ||||||
| USAGE_LIMIT_CHUNKS_INDEXED_TRIAL = int( | ||||||
| os.environ.get("USAGE_LIMIT_CHUNKS_INDEXED_TRIAL", "10000") | ||||||
| os.environ.get("USAGE_LIMIT_CHUNKS_INDEXED_TRIAL", 100_000) | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The default value should be a string to maintain consistency with other config variables in this file. All other
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! Prompt To Fix With AIThis is a comment left during a code review.
Path: backend/shared_configs/configs.py
Line: 239:239
Comment:
The default value should be a string to maintain consistency with other config variables in this file. All other `int(os.environ.get(...))` patterns use string defaults (e.g., lines 226, 231, 234, 246, 247, 251, 254).
```suggestion
os.environ.get("USAGE_LIMIT_CHUNKS_INDEXED_TRIAL", "100000")
```
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise. |
||||||
| ) | ||||||
| USAGE_LIMIT_CHUNKS_INDEXED_PAID = int( | ||||||
| os.environ.get("USAGE_LIMIT_CHUNKS_INDEXED_PAID", "50000") | ||||||
| os.environ.get("USAGE_LIMIT_CHUNKS_INDEXED_PAID", 1_000_000) | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The default value should be a string to maintain consistency with other config variables in this file. All other
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! Prompt To Fix With AIThis is a comment left during a code review.
Path: backend/shared_configs/configs.py
Line: 242:242
Comment:
The default value should be a string to maintain consistency with other config variables in this file. All other `int(os.environ.get(...))` patterns use string defaults.
```suggestion
os.environ.get("USAGE_LIMIT_CHUNKS_INDEXED_PAID", "1000000")
```
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise. |
||||||
| ) | ||||||
|
|
||||||
| # Per-week API calls using API keys or Personal Access Tokens | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the
trial_enddate check could lead to edge cases where a tenant is incorrectly classified as on trial. The previous implementation checked bothtrial_end > nowANDstatus == "trialing"to ensure the trial period was actually still active.Consider these scenarios:
The previous implementation was more defensive and explicit. If this change is intentional (e.g., you've verified Stripe always updates status immediately), it should be documented in the PR description or as a code comment explaining why the date check is no longer needed.
Prompt To Fix With AI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this valid?