-
Notifications
You must be signed in to change notification settings - Fork 53
Add build log to deployment notification email #631
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: dev
Are you sure you want to change the base?
Conversation
@@ -602,6 +607,8 @@ public static void register (String apiPrefix) { | |||
options(apiPrefix + "secure/deployments", (q, s) -> ""); | |||
get(apiPrefix + "secure/deployments/:id/download", DeploymentController::downloadDeployment); | |||
get(apiPrefix + "secure/deployments/:id/artifact", DeploymentController::downloadBuildArtifact); | |||
// This path allows the downloaded artifact file to be named anything | |||
get(apiPrefix + "secure/deployments/:id/artifact/:ignored", DeploymentController::downloadBuildArtifact); |
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.
@miles-grant-ibigroup This is confusing me. If the value is ignored, why can't the end point above be used?
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.
Without it, we can't make a call to .../artifact/blah.json
which means we have to call it as .../artifact
which means the downloaded file is downloaded as artifact
which is no good.
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.
ok, that makes sense. Can you update the comment with this explanation please and perhaps call it :expectedFileName
instead of :ignored
?
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.
Good idea!
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.
Just the one item to address, but approving.
@@ -602,6 +607,8 @@ public static void register (String apiPrefix) { | |||
options(apiPrefix + "secure/deployments", (q, s) -> ""); | |||
get(apiPrefix + "secure/deployments/:id/download", DeploymentController::downloadDeployment); | |||
get(apiPrefix + "secure/deployments/:id/artifact", DeploymentController::downloadBuildArtifact); | |||
// This path allows the downloaded artifact file to be named anything | |||
get(apiPrefix + "secure/deployments/:id/artifact/:ignored", DeploymentController::downloadBuildArtifact); |
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.
ok, that makes sense. Can you update the comment with this explanation please and perhaps call it :expectedFileName
instead of :ignored
?
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.
The link alone is not going to work as written. I think it needs to go to datatools UI first where the download can be triggered.
src/main/java/com/conveyal/datatools/manager/controllers/api/DeploymentController.java
Show resolved
Hide resolved
src/main/java/com/conveyal/datatools/manager/jobs/NotifyUsersForSubscriptionJob.java
Show resolved
Hide resolved
851db20
to
c1982de
Compare
To accomplish this, I've added a new redirect-capable artifact download endpoint