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

Add the timestamp to the filename in the subscription attachment #39120

Closed
paoliniluis opened this issue Feb 23, 2024 · 1 comment · Fixed by #39666
Closed

Add the timestamp to the filename in the subscription attachment #39120

paoliniluis opened this issue Feb 23, 2024 · 1 comment · Fixed by #39666
Assignees
Labels
good first issue A starter issue that is good for someone new to the codebase or is a new contributor Reporting/Export Reporting/Pulses Now called Subscriptions .Team/DashViz Dashboard and Viz team Type:New Feature
Milestone

Comments

@paoliniluis
Copy link
Contributor

Is your feature request related to a problem? Please describe.
We should make all exports have the same naming convention: question_name_timestamp.format. Right now normal exports have this, while the attachments on the subscriptions do not

Describe the solution you'd like
Add the timestamp to the subscription attachments

Describe alternatives you've considered
None

How important is this feature to you?
Requested by a lead

Additional context
NA

@paoliniluis paoliniluis added Reporting/Pulses Now called Subscriptions Type:New Feature Reporting/Export good first issue A starter issue that is good for someone new to the codebase or is a new contributor labels Feb 23, 2024
@petrenkorf
Copy link

I'm looking for a first issue to contribute. @paoliniluis do you have more context on this?

@cdeweyx cdeweyx added the .Team/DashViz Dashboard and Viz team label Mar 4, 2024
@adam-james-v adam-james-v self-assigned this Mar 5, 2024
adam-james-v added a commit that referenced this issue Mar 5, 2024
Fixes: #39120

This modifies the subscriptin attachment filenames to match the same format used when doing a direct download from a
dashboard or question.

That is:
 - card names are slugified (spaces and dashes turned to underscores, etc.)
 - a timestamp is appended to the slugified card name
adam-james-v added a commit that referenced this issue Mar 6, 2024
* Use timestamp in attachment filenames

Fixes: #39120

This modifies the subscriptin attachment filenames to match the same format used when doing a direct download from a
dashboard or question.

That is:
 - card names are slugified (spaces and dashes turned to underscores, etc.)
 - a timestamp is appended to the slugified card name

* Fix tests

* Change docstring to use example local to the namespace
github-actions bot pushed a commit that referenced this issue Mar 6, 2024
* Use timestamp in attachment filenames

Fixes: #39120

This modifies the subscriptin attachment filenames to match the same format used when doing a direct download from a
dashboard or question.

That is:
 - card names are slugified (spaces and dashes turned to underscores, etc.)
 - a timestamp is appended to the slugified card name

* Fix tests

* Change docstring to use example local to the namespace
metabase-bot bot added a commit that referenced this issue Mar 6, 2024
* Use timestamp in attachment filenames

Fixes: #39120

This modifies the subscriptin attachment filenames to match the same format used when doing a direct download from a
dashboard or question.

That is:
 - card names are slugified (spaces and dashes turned to underscores, etc.)
 - a timestamp is appended to the slugified card name

* Fix tests

* Change docstring to use example local to the namespace

Co-authored-by: adam-james <21064735+adam-james-v@users.noreply.github.com>
@adam-james-v adam-james-v added this to the 0.49 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue A starter issue that is good for someone new to the codebase or is a new contributor Reporting/Export Reporting/Pulses Now called Subscriptions .Team/DashViz Dashboard and Viz team Type:New Feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants