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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dummy app generation from end apps #3527

Merged
merged 3 commits into from
May 29, 2018

Conversation

deivid-rodriguez
Copy link
Contributor

馃帺 What? Why?

Hei! I'm backporting the fix for dummy application generation from final apps, which works correctly on master, but it's broken on 0.11.1. The PR that fixes it includes plenty of other changes, including the removal of a couple of environment variables which could be considered as breaking (although there's also an argument to call them buggy and consider it a bug fix). Anyways, I selectively picked the single two commits from that PR so that only the bug fix mentioned in the PR title is backported.

You were probably going to run into this when upgrading decidim-barcelona to 0.11.

I could add a regression test for this, but due to how our current generator tests work (they only assert the exit status of the generator, and to a bug in thor, the test will always pass, with or without these changes... :(

馃搶 Related Issues

馃搵 Subtasks

  • Add CHANGELOG entry

馃摲 Screenshots (optional)

None.

Up to know, `development_app` and `spec/decidim_dummy_app` would share
their DBs, so regenerating the test app would drop your development app
DB (or would fail if your development application is running), and
viceverse. These are separate applications so they really shouldn't
interfere with each other.

This patch also generate different DB names for external plugins since
the base name for the app is inferred from the root folder name, so it
makes a previous fix to configure the test DB and development DB names
separately unnecessary.
Otherwise one gets

```
Invalid application name decidim_barcelona, constant DecidimBarcelona is
already in use. Please choose another application name.
```
@ghost ghost added the status: WIP label May 29, 2018
@deivid-rodriguez deivid-rodriguez added backport Pull Requests that are a backport for a fixed bug and removed status: WIP labels May 29, 2018
@mrcasals mrcasals merged commit 639bdfa into 0.11-stable May 29, 2018
@mrcasals mrcasals deleted the fix/dummy_app_generation_from_end_apps branch May 29, 2018 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Pull Requests that are a backport for a fixed bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants