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

refactor: revert upload_dirs=false, fixes #5131 #5134

Merged
merged 7 commits into from
Jul 14, 2023

Conversation

rfay
Copy link
Member

@rfay rfay commented Jul 13, 2023

The Issue

We tried to support a multi-type upload_dirs but it added a lot of complexity to the code.

Unfortunately, I've decided to revert that and go back to a simpler approach.

An additional PR will be required to add a new config that turns off warnings about upload_dirs

Also accidentally fixes

by going back to a simple array for the declaration.

How This PR Solves The Issue

Manual Testing Instructions

Many things have to be re-tested:

Automated Testing Overview

I think the tests cover the things that matter

Related Issue Link(s)

Release/Deployment Notes

@github-actions
Copy link

github-actions bot commented Jul 13, 2023

@rfay rfay changed the title refactor: revert multiple types for upload_dirs refactor: revert multiple types for upload_dirs, fixes #5131 Jul 13, 2023
@rfay rfay marked this pull request as ready for review July 14, 2023 00:07
@rfay rfay requested review from a team as code owners July 14, 2023 00:07
@rfay rfay requested a review from gilbertsoft July 14, 2023 00:12
@rfay rfay changed the title refactor: revert multiple types for upload_dirs, fixes #5131 refactor: revert upload_dirs=false, fixes #5131 Jul 14, 2023
util.Warning("You have Mutagen enabled and your '%s' project type doesn't have `upload_dirs` set.", app.Type)
util.Warning("For faster startup and less disk usage, set upload_dirs to where your user-generated files are stored.")
util.Warning("If this is intended you can disable this warning by running `ddev config --upload-dirs=false`.")
// TODO: Implement --no-upload-dirs-warning in new PR
util.Warning("If this is intended you can disable this warning with `ddev config --no-upload-dirs-warning`.")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
util.Warning("If this is intended you can disable this warning with `ddev config --no-upload-dirs-warning`.")
//util.Warning("If this is intended you can disable this warning with `ddev config --no-upload-dirs-warning`.")

does not make much sense to show this info even it doesn't work at the moment

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm going to follow it immediately with the actual replacement, so it's ok.

@rfay rfay merged commit 19215dd into ddev:master Jul 14, 2023
33 checks passed
@rfay rfay deleted the 20230713_revert_upload_dirs_false branch July 14, 2023 17:23
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.

None yet

2 participants