-
Notifications
You must be signed in to change notification settings - Fork 268
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
backend: implement basic functionality (PROJQUAY-7076) #2895
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @Sunandadadi and the rest of your teammates on |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 05-20-db-updates #2895 +/- ##
====================================================
+ Coverage 70.35% 70.39% +0.04%
====================================================
Files 439 440 +1
Lines 41274 41359 +85
Branches 5410 5417 +7
====================================================
+ Hits 29037 29116 +79
- Misses 10531 10536 +5
- Partials 1706 1707 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
cf1e8fb
to
8c14fa0
Compare
aa86edd
to
7e94780
Compare
8c14fa0
to
71251ab
Compare
7e94780
to
6cd7f1a
Compare
7feafb2
to
d3bde12
Compare
f52dd3a
to
4d1b051
Compare
6cd7f1a
to
afe0f69
Compare
4d1b051
to
1e8e2f6
Compare
ed63988
to
2582626
Compare
0904b22
to
ad8c66b
Compare
ad8c66b
to
b401ab4
Compare
2582626
to
fcf8090
Compare
407a10a
to
1665b94
Compare
4cc971d
to
c2c0150
Compare
1665b94
to
8cf4465
Compare
RepositoryNotification.last_ran_ms | ||
< get_epoch_timestamp_ms() - task_run_interval_ms | ||
) | ||
| (RepositoryNotification.last_ran_ms.is_null(True)), |
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.
make sure last_ran_ms
is indexed
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.
yes, added in index here
1b0cb30
to
606612c
Compare
@@ -9,6 +9,7 @@ class RepositoryNotification( | |||
namedtuple( | |||
"RepositoryNotification", | |||
[ |
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 the DB ID? we shouldn't expose this to an external API
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.
yes, good point, I removed it
workers/gc/gcworker.py
Outdated
|
||
def _scan_notifications(self): | ||
# scan for tags that are expiring based on configured RepositoryNotifications | ||
scan_for_image_expiry_notifications(event_name="repo_image_expiry") |
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.
can you use RepoImageExpiryEvent.event_name()
8cf4465
to
d67be20
Compare
d67be20
to
d1f7a35
Compare
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.
Lgtm
No description provided.