Skip to content

Conversation

@Paul-Bob
Copy link
Contributor

@Paul-Bob Paul-Bob commented Dec 20, 2023

Description

Fixes #2184

  • may_download_file become deprecated and is no longer being used, can safely be removed from all actions.
  • Fixes early error messages return on download actions
  • Fixes keep modal open feature on download actions
  • Refactors the way that actions download works
    • Use turbo stream to a custom stream action that triggers the download using FileSaver.js lib

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

Screenshots

Manual review steps

  1. Step 1
  2. Step 2

Manual reviewer: please leave a comment with output from the test if that's the case.

@Paul-Bob Paul-Bob self-assigned this Dec 20, 2023
@github-actions github-actions bot added the Fix label Dec 20, 2023
@qlty-cloud-legacy
Copy link

qlty-cloud-legacy bot commented Dec 20, 2023

Code Climate has analyzed commit f612e82 and detected 0 issues on this pull request.

View more on Code Climate.

@Paul-Bob Paul-Bob marked this pull request as draft December 21, 2023 10:54
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@Paul-Bob Paul-Bob marked this pull request as ready for review December 28, 2023 14:56
@Paul-Bob Paul-Bob requested a review from adrianthedev January 3, 2024 12:57
Copy link
Collaborator

@adrianthedev adrianthedev left a comment

Choose a reason for hiding this comment

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

If we have tests supporting this use case, then it's good to merge.

Thank you!

@Paul-Bob
Copy link
Contributor Author

Paul-Bob commented Jan 8, 2024

If we have tests supporting this use case, then it's good to merge.

Thank you!

We have several tests around actions, download, keeping modal open, alerts, etc... Are all being already tested.

@Paul-Bob Paul-Bob merged commit edb3a18 into main Jan 8, 2024
@Paul-Bob Paul-Bob deleted the fix/action_download branch January 8, 2024 09:59
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2024

This PR has been merged into main. The functionality will be available in the next release.

Please check the release guide for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix ActionController::UnknownFormat on download actions

3 participants