-
Notifications
You must be signed in to change notification settings - Fork 81
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
377 version param #991
377 version param #991
Conversation
Add version.json file to the repo-root
As long, as @dlpzx required simple way to store version info, I made it as obvious as possible. What can be different? |
deploy/stacks/pipeline.py
Outdated
@@ -558,6 +559,7 @@ def set_quality_gate_stage(self): | |||
'mkdir -p source_build', | |||
'mv backend ./source_build/', | |||
'mv config.json ./source_build/', | |||
'mv version.json ./source_build/', |
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.
Do we need this line for UploadCodeToS3
? I think we can remove as the source_build.zip
is used primarily for DBMigration step only which should not be dependent on version
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 added this for consistency: the whole bunch of code is copied. But I don't insist
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.
Let's remove this line mv version.json ./source_build/
- I tested to ensure it is not needed
I think best to keep hardcoding of version.json
minimal to only when necessary
Will approve right after this change
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.
Done
Left a minor comment - otherwise code looks good and a very much needed enhancement 🙌 To finish up testing on the following: Deployed to AWS (Internet Facing)
Deployed to AWS (VPC Facing)
Deployed Local
|
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.
Looks good - approving!
Feature or Bugfix
Detail
version.json in repo root contains information about version. This json-string is uploaded to SSM parameter /dataall/{env}/versin. Also this file is copied to frontend folder and version number is displayed near "dataall" header
Relates
#377
Security
Please answer the questions below briefly where applicable, or write
N/A
. Based onOWASP 10.
fetching data from storage outside the application (e.g. a database, an S3 bucket)? NA
eval
or similar functions are used?By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.