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

[close #1069] Remove Active Storage warnings #1087

Merged
merged 1 commit into from
Oct 9, 2020

Conversation

schneems
Copy link
Contributor

@schneems schneems commented Oct 8, 2020

There are two active storage warnings:

  • Warn when storage is set to :local
  • Warn when ffmpeg is not present on the system

Warn when storage is set to :local

The goal here was to prevent people from accidentally uploading assets only to find out that they disappear every 24 hours after the dyno resets.

While that's still a problem now, the default value is :local when you generate a new project. That means just because someone has this set to be local does not mean they're using active storage. That also means that this generates a useless warning message and clutters their deploy.

This PR removes that warning

Warn when ffmpeg is not present on the system

If popper and ffmpeg are not on the system then Rails cannot generate previews for PDFs and videos which is a feature of active storage. To help, we added a warning if you're using active storage but don't have these dependencies.

Unfortunately, we can't tell if you're actually using these features or not, so there's no easy way to disable this warning if they are not needed.

In general these warnings cause a lot of clutter and confusion.

@schneems schneems force-pushed the schneems/remove-active-storage-warnings branch from e3b1920 to 7b02689 Compare October 8, 2020 21:06
@schneems schneems marked this pull request as ready for review October 8, 2020 21:13
@schneems schneems requested a review from a team as a code owner October 8, 2020 21:13
There are two active storage warnings:

- Warn when storage is set to :local
- Warn when ffmpeg is not present on the system

## Warn when storage is set to :local

The goal here was to prevent people from accidentally uploading assets only to find out that they disappear every 24 hours after the dyno resets.

While that's still a problem now, the default value is `:local` when you generate a new project. That means just because someone has this set to be local does not mean they're using active storage. That also means that this generates a useless warning message and clutters their deploy.

This PR removes that warning

## Warn when ffmpeg is not present on the system

If popper and ffmpeg are not on the system then Rails cannot generate previews for PDFs and videos which is a feature of active storage. To help, we added a warning if you're using active storage but don't have these dependencies.

Unfortunately, we can't tell if you're actually using these features or not, so there's no easy way to disable this warning if they are not needed.

In general these warnings cause a lot of clutter and confusion.
@schneems schneems force-pushed the schneems/remove-active-storage-warnings branch from 7b02689 to 4cd3a6c Compare October 8, 2020 21:23
@schneems schneems merged commit 8df06ee into main Oct 9, 2020
@schneems schneems deleted the schneems/remove-active-storage-warnings branch October 9, 2020 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants