Skip to content
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

Generate snapshot-specific filename on download #3814

Merged
merged 2 commits into from
May 3, 2024

Conversation

knolleary
Copy link
Member

Closes #3813

Generates a snapshot-specific filename rather than hardcoding to snapshot.json, in the format: snapshot-<id>-<date>-<time>.json. For example: snapshot-WYNXyNORQK-20240122-175224.json

Also reduced the generated cred secret length to be a bit more manageable.

@Steve-Mcl
Copy link
Contributor

Steve-Mcl commented May 2, 2024

Pretty sure there is an e2e test that will need updating Nick.

EDIT: Great timing - it failed as I posted the comment.

The e2e checks the download works - it looks for snapshot.json in the download dir.

Copy link

codecov bot commented May 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.15%. Comparing base (9844d59) to head (0a05092).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3814   +/-   ##
=======================================
  Coverage   79.15%   79.15%           
=======================================
  Files         278      278           
  Lines       12494    12494           
  Branches     2771     2771           
=======================================
  Hits         9890     9890           
  Misses       2604     2604           
Flag Coverage Δ
backend 79.15% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Steve-Mcl Steve-Mcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love it.

@Steve-Mcl
Copy link
Contributor

approved and tested on pre-staging env.

chrome_7DyKXMuH57

@knolleary knolleary merged commit b34cf65 into main May 3, 2024
11 checks passed
@knolleary knolleary deleted the 3813-snapshot-filename branch May 3, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Downloaded snapshot filename should include id/date rather than just snapshot.json
2 participants