fix(reportsService): issues/52 name report package download #54
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's included
Notes
tar.gz
. The current package download generates the name based on the browser, which can be confusing... Chrome labels itdownload.gz
and Firefox labels it[some hash].gz
. To round it out the file doesn't open on RHEL without thetar
in there, this fix corrects all of that.How to test
Coverage and basic unit test check
$ yarn
$ yarn test
Run the Dev UI
The Dev UI can be used for a quick confirmation on just the file name coming through. Trying to unzip it will create an infinite loop of annoyance since the
tar.gz
isn't legit.$ yarn
$ yarn start
report_id_[HUGE RANDOM ID]_[DATE]_[TIME].tar.gz
Run the Review UI
To fully test the package name is successfully you'll need to run
$ yarn
$ yarn start:review
... this should compile the image, then run the container with the latest changesreport_id_[ID]_[DATE]_[TIME].tar.gz
. The file should expand accordingly and provide you with a directory containingreport_id_[ID]
deployments.csv
deployments.json
details.csv
details.json
Example
...
Updates issue/story
fixes #52