-
Notifications
You must be signed in to change notification settings - Fork 29
Track GitHub release date #5950
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
Conversation
4a20923
to
0fb9bdc
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5950 +/- ##
=============================================
- Coverage 74.23% 73.02% -1.22%
+ Complexity 5384 5308 -76
=============================================
Files 376 378 +2
Lines 19501 19564 +63
Branches 2035 2036 +1
=============================================
- Hits 14477 14287 -190
- Misses 4050 4278 +228
- Partials 974 999 +25
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This reverts commit 49588d6.
2649dc3
to
47342d5
Compare
@@ -161,6 +162,10 @@ public abstract class Workflow extends Entry<Workflow, WorkflowVersion> { | |||
@JoinColumn(name = "actualDefaultVersion", referencedColumnName = "id", unique = true) | |||
private WorkflowVersion actualDefaultVersion; | |||
|
|||
@Column(nullable = true) | |||
@Schema(type = "integer", format = "int64", description = "The timestamp of the most recent version control release, such as a GitHub release") | |||
private Timestamp latestReleaseDate; |
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.
I put this in Workflow instead of Entry because the only tools we support in the .dockstore.yml are AppTools. But I could see an argument to put it in Entry.
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.
Presumably will need note in 1.16 deploy instructions to update app
dockstore-webservice/src/main/java/io/dockstore/webservice/resources/WorkflowResource.java
Outdated
Show resolved
Hide resolved
dockstore-webservice/src/main/java/io/dockstore/webservice/resources/WorkflowResource.java
Outdated
Show resolved
Hide resolved
Re-requesting review.
|
Added |
} | ||
return Response.status(HttpStatus.SC_NO_CONTENT).build(); | ||
} | ||
|
||
private LambdaEvent createReleaseLambdaEvent(String deliveryId, ReleasePayload payload) { |
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.
May need to create a UI PR at some point to add a friendly value for the RELEASE
lambda event
|
Description
Stores the release date of the latest GitHub release on the workflow. This will be used when searching for DOIs generated by the Zenodo-GitHub integration.
We do this by processing the GitHub release event -- this requires updating our GitHub app to subscribe to the release event; it does not require updated permissions.
Background
Zenodo issues a DOI at some point after a GitHub release has been published. I've seen it take 8 minutes, presumably it can take even longer. So when a GitHub release happens, store the timestamp of the release. Then other code, not in this PR, will check with Zenodo for
x
amount of time after the release to see if a DOI has been issued.This took a while to do because I was initially going to track this at the version level. I ended up ditching that approach because:
Todo
Review Instructions
Note: These are overall review instructions for all the PRs associated with SEAB-6466:
latestReleaseDate
is set to the time of the release.Variants:
latestReleaseDate
.Issue
SEAB-6466
Security and Privacy
If there are any concerns that require extra attention from the security team, highlight them here and check the box when complete.
e.g. Does this change...
Please make sure that you've checked the following before submitting your pull request. Thanks!
mvn clean install
@RolesAllowed
annotation