Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThe deployment configuration activates the daily account_advisory backfill cronjob, allowing it to backport the notified state from advisory_account_data into account_advisory. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="deploy/clowdapp.yaml" line_range="967" />
<code_context>
# Backfill account_advisory
- {name: ACCOUNT_ADVISORY_BACKFILL_SCHEDULE, value: '0 3 * * *'} # Cronjob schedule definition
-- {name: ACCOUNT_ADVISORY_BACKFILL_SUSPEND, value: 'true'} # Suspended until ready to run
+- {name: ACCOUNT_ADVISORY_BACKFILL_SUSPEND, value: 'false'} # Suspended until ready to run
# Database admin
</code_context>
<issue_to_address>
**nitpick:** The parameter is set to `false`, which enables the scheduled job, but the comment says it is “Suspended until ready to run.” Operators reading the deployment configuration are given the opposite of the actual runtime state.
**Suggested fix:** Update the comment to describe that the cronjob is enabled, or change the value to `true` if the job is not yet ready to run.
```suggestion
- {name: ACCOUNT_ADVISORY_BACKFILL_SUSPEND, value: 'false'} # Enable cronjob execution
```
</issue_to_address>Sourcery assessment
Needs a human reviewer. This enables a production-scheduled backfill that will write account advisory data; if its selection or transformation is wrong, incorrect records can remain after reverting the configuration. The affected data should be repairable by correcting and rerunning the backfill, so the impact is bounded rather than irreversible.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2346 +/- ##
=======================================
Coverage 58.95% 58.95%
=======================================
Files 150 150
Lines 9605 9605
=======================================
Hits 5663 5663
Misses 3348 3348
Partials 594 594
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Enable the job to backport
notifiedfrom to-be-retiredadvisory_account_datato the newaccount_advisorytable.Secure Coding Practices Checklist GitHub Link
Secure Coding Checklist
Summary by Sourcery
Deployment: