Skip to content

Fix initiatives display when not initialized#9928

Merged
alecslupu merged 5 commits intodecidim:developfrom
eliegaboriau:fix/initiatives_display
Apr 14, 2023
Merged

Fix initiatives display when not initialized#9928
alecslupu merged 5 commits intodecidim:developfrom
eliegaboriau:fix/initiatives_display

Conversation

@eliegaboriau
Copy link
Copy Markdown
Contributor

🎩 What? Why?

This PR removes the initiatives button in the menu when there is no initiative types or scope created.
It also redirects any request to initiatives to the homepage with a flash message

📌 Related Issues

Link your PR to an issue

Testing

On a clean installation

  • see there is no button initiatives in the menu
  • try access an initiative page
  • see the redirection and the flash message

♥️ Thank you!

@eliegaboriau eliegaboriau marked this pull request as ready for review October 25, 2022 12:53
@alecslupu alecslupu changed the title fix initiatives display when not initialized Fix initiatives display when not initialized Feb 9, 2023
@alecslupu alecslupu requested a review from a team February 9, 2023 08:12
@alecslupu alecslupu added module: initiatives type: fix PRs that implement a fix for a bug labels Feb 9, 2023
@alecslupu alecslupu self-assigned this Feb 14, 2023
@alecslupu
Copy link
Copy Markdown
Contributor

I have tried to review #9928, and I got the following error, which seems to be originating from #9309:
image

Fixing this error, i get into another, when I click on new intiative on the homepage, the new initiative modal is not being triggered.
I cannot successfully test the PR.

@luciegrau
Copy link
Copy Markdown

Hi Elie and Alexandru, I tried locally and your fix is working great on my side !

I tried on a clean installation, I created a new system admin in command line and then my organization. Once the organization was created, I could test the PR and I confirm that I couldn't access to initiatives routes and that the Initiatives button is removed in the menu if there is no initiative type or scope created.

Capture d’écran 2023-04-05 à 16 06 09

@alecslupu
Copy link
Copy Markdown
Contributor

@eliegaboriau please rebase this branch with decidim develop, so we can start the review / test process.

alecslupu
alecslupu previously approved these changes Apr 14, 2023
@alecslupu alecslupu merged commit fc97eaf into decidim:develop Apr 14, 2023
alecslupu added a commit that referenced this pull request Apr 14, 2023
ahukkanen pushed a commit that referenced this pull request Apr 14, 2023
alecslupu added a commit that referenced this pull request Apr 25, 2023
alecslupu added a commit that referenced this pull request Apr 25, 2023
ahukkanen pushed a commit that referenced this pull request Apr 25, 2023
ahukkanen pushed a commit that referenced this pull request Apr 26, 2023
andreslucena added a commit to decidim/metadecidim that referenced this pull request Jul 6, 2023
This is not valid anymore with the introduction of this fix in the
release: decidim/decidim#9928
alecslupu pushed a commit to decidim/metadecidim that referenced this pull request Jul 11, 2023
* Update decidim to 0.27.3

* Remove "Initiatives" menu expectation from example

This is not valid anymore with the introduction of this fix in the
release: decidim/decidim#9928
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.

No error when there's no InitiativesType created

3 participants