-
Notifications
You must be signed in to change notification settings - Fork 4
Sync #12
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
base: master
Are you sure you want to change the base?
Sync #12
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 |
|---|---|---|
|
|
@@ -694,7 +694,7 @@ def _pull_out_data(jobs: Sequence[Job], projects: ProjectsMapping) -> None: | |
| set_tag(data, "transaction", transaction_name) | ||
|
|
||
| job["received_timestamp"] = job["event"].data.get("received") or float( | ||
| job["event"].datetime.strftime("%s") | ||
| job["event"].datetime.strftime("%s") if job["event"].datetime else 0 | ||
|
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. 3.Potential Type Error with Datetime □ The change adds a check Agent PromptCopy this prompt and use it to remediate the issue with your preferred AI generation tools |
||
| ) | ||
| job["groups"] = [] | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -110,7 +110,7 @@ def get_reason_context(extra_context: Mapping[str, Any]) -> MutableMapping[str, | |
| """Get user-specific context. Do not call get_context() here.""" | ||
| reason = extra_context.get("reason", 0) | ||
| return { | ||
| "reason": GroupSubscriptionReason.descriptions.get(reason, "are subscribed to this issue") | ||
| "reason": GroupSubscriptionReason.descriptions.get(reason, "subscribed") | ||
|
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. 2.Incorrect Default for Notification Reason □ The default value for the notification reason changed from "are subscribed to this issue" to "subscribed". Looking at the GroupSubscriptionReason.descriptions dictionary, all the description values are complete sentences starting with verbs (e.g., "have commented on this issue", "have been assigned to this issue"). The new default "subscribed" is grammatically inconsistent with the existing descriptions and will result in malformed notification text. The descriptions are meant to complete a sentence like "You [reason]". Agent PromptCopy this prompt and use it to remediate the issue with your preferred AI generation tools |
||
| } | ||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -225,7 +225,7 @@ def refund( | |
| return_key = self.get_refunded_quota_key( | ||
| self.__get_redis_key(quota, timestamp, shift, project.organization_id) | ||
| ) | ||
| pipe.incr(return_key, quantity) | ||
| pipe.decr(return_key, quantity) | ||
|
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. 1. Quota Refund Logic Inverted □ The refund method changed from Agent PromptCopy this prompt and use it to remediate the issue with your preferred AI generation tools |
||
| pipe.expireat(return_key, int(expiry)) | ||
|
|
||
| pipe.execute() | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
4. Times Seen Logic May Hide Issues □
📎 Requirements GapThe change modifies times_seen calculation from
times_seen.get(item.id, 0)tomax(times_seen.get(item.id, 0), user_counts.get(item.id, 0)). This ensures times_seen is never less than user_count, which makes logical sense (you can't have more unique users than total events). However, this change masks a potential data inconsistency issue. If user_counts exceeds times_seen, it indicates a bug in the data collection or aggregation logic that should be investigated and fixed at the source, rather than papered over with a max() call. The fix treats the symptom rather than the root cause.Agent Prompt
Copy this prompt and use it to remediate the issue with your preferred AI generation tools