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: reset job status ids during internal migration #2684

Merged
merged 2 commits into from
Nov 10, 2022

Conversation

atzoum
Copy link
Contributor

@atzoum atzoum commented Nov 9, 2022

Description

Fixes a regression introduced by #2559 where the id column of job statuses was not reset during an internal migration, causing subsequent job statuses inserted to the status table to not be considered as the latest ones, since migrated statuses were already stored with higher ids and the latest job status is retrieved based on the id column.

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@codecov
Copy link

codecov bot commented Nov 9, 2022

Codecov Report

Base: 0.00% // Head: 45.42% // Increases project coverage by +45.42% 🎉

Coverage data is based on head (bf0e617) compared to base (fcf9e5e).
Patch coverage: 55.55% of modified lines in pull request are covered.

Additional details and impacted files
@@                Coverage Diff                 @@
##           release/1.3.x    #2684       +/-   ##
==================================================
+ Coverage               0   45.42%   +45.42%     
==================================================
  Files                  0      287      +287     
  Lines                  0    47822    +47822     
==================================================
+ Hits                   0    21723    +21723     
- Misses                 0    24721    +24721     
- Partials               0     1378     +1378     
Impacted Files Coverage Δ
jobsdb/jobsdb.go 73.32% <55.55%> (ø)
...ebugger/destination/eventDeliveryStatusUploader.go 90.12% <0.00%> (ø)
testhelper/health/checker.go 71.42% <0.00%> (ø)
event-schema/countish/naive.go 0.00% <0.00%> (ø)
gateway/webhook/webhook.go 61.59% <0.00%> (ø)
enterprise/suppress-user/setup.go 30.43% <0.00%> (ø)
regulation-worker/internal/service/looper.go 70.37% <0.00%> (ø)
rate-limiter/rate-limiter.go 72.22% <0.00%> (ø)
warehouse/validations/validations.go 77.41% <0.00%> (ø)
jobsdb/jobsdb_utils.go 78.57% <0.00%> (ø)
... and 278 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants