Skip to content

Remove default static pages#6596

Merged
tramuntanal merged 3 commits intodevelopfrom
feature/delete_default_pages
Oct 6, 2020
Merged

Remove default static pages#6596
tramuntanal merged 3 commits intodevelopfrom
feature/delete_default_pages

Conversation

@andreslucena
Copy link
Copy Markdown
Member

🎩 What? Why?

Please describe your pull request.

Making some docs I found out that we're marking two static pages as non-deletable. I've talked with @carolromero and we agreed that this shouldn't be like that.
This PR allows the deletion of these default pages.

Testing

Describe the best way to test or validate your PR.

  • If you already had 'accessibility' and 'faq' pages it should allow to delete them.
  • If you didn't have them (like a new DB) then these pages will not be created by default.
  • If you have changed the ToS and you need to re-accept them, then you should see "I agree with these terms" instead of "I agree this terms".

📋 Checklist

🚨 Please review the guidelines for contributing to this repository.

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

📷 Screenshots

Please add screenshots of the changes you're proposing

Before

imatge

After

(already existing db)
imatge

(new db)
imatge


♥️ Thank you!

Until now these two pages were DEFAULT_PAGES, meaning that
they were created by default and it didn't allow admins to
delete them. This was a mistake and we should allow deleting
these pages.
success: Great! You have accepted the terms and conditions.
form:
agreement: I agree this terms
agreement: I agree with these terms
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

OMG this has been bugging me for a while but I never spent time to open a PR, thanks!!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The admin terms button is still not fixed though, I opened an issue. 😁

@tramuntanal tramuntanal merged commit 8e03b78 into develop Oct 6, 2020
@tramuntanal tramuntanal deleted the feature/delete_default_pages branch October 6, 2020 07:29
@tramuntanal tramuntanal mentioned this pull request Oct 6, 2020
12 tasks
roxanaopr pushed a commit to i-need-another-coffee/decidim that referenced this pull request Oct 15, 2020
* Allow deleting 'accessibility' and 'faq' pages

Until now these two pages were DEFAULT_PAGES, meaning that
they were created by default and it didn't allow admins to
delete them. This was a mistake and we should allow deleting
these pages.

* Fix grammar in ToS acceptance

* Fix failing tests

Co-authored-by: Oliver Valls <199462+tramuntanal@users.noreply.github.com>
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.

4 participants