Skip to content

Fix filter URL not updated with the text search input#9618

Merged
andreslucena merged 8 commits intodecidim:developfrom
mainio:fix/7433
Nov 23, 2022
Merged

Fix filter URL not updated with the text search input#9618
andreslucena merged 8 commits intodecidim:developfrom
mainio:fix/7433

Conversation

@ahukkanen
Copy link
Copy Markdown
Contributor

🎩 What? Why?

When the filter forms are submitted manually by pressing the "search" button or enter within the search input, i.e. when doing a text search, the URL is not updated. This fixes the issue.

📌 Related Issues

Testing

  • Go to a component with search (e.g. debates, proposals, etc.)
  • Type in something in the text search input
  • Press enter
  • Check if the current URL is updated

@andreslucena
Copy link
Copy Markdown
Member

Let's retake this PR @ahukkanen, can you merge with develop 🙏🏽 ? Thanks

@ahukkanen
Copy link
Copy Markdown
Contributor Author

Done @andreslucena

Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

I tried it with all the components (except sortitions that doesn't even have seeds and isn't widely used).
I give it a special eye to what @ahukkanen mentioned in our last meeting:

  • back/forward on browser
  • JavaScript console errors
  • budget module

I also checked it out with the "View all XXX" feature, and it works too.
I don't find out any other place where this could break, actually.
The code is 👌🏽, with specs on all the components and also with jest tests.
In summary, LGTM 👏🏽 👏🏽

@andreslucena andreslucena merged commit 8568336 into decidim:develop Nov 23, 2022
entantoencuanto added a commit that referenced this pull request Nov 28, 2022
* develop:
  Redesign: verifications (#9759)
  Fix machine translations at the API (#9652)
  Add title and description to the attachment API type (#10114)
  Correct the "voted for this" string in the budgets component (#10113)
  Fix filter URL not updated with the text search input (#9618)
  Improve README design and contents (#10065)
  Update bulletin board to 0.24 for Ruby 3.1 compatibility (#9766)
  Fix some oversights in the release notes for the next release (#10078)
  Fix bug regarding user group moderation action logs (#10085)
  Fix wrong capitalization in i18n values and add missing keys (#10072)
  Enhance templates engine (#10015)
  Add slash in PR linter configuration (#10074)
  Allow blocking a UserGroup (#10021)
  Enable newsletters for admin on seeds (#10073)
entantoencuanto added a commit that referenced this pull request Nov 28, 2022
* develop:
  Redesign: verifications (#9759)
  Fix machine translations at the API (#9652)
  Add title and description to the attachment API type (#10114)
  Correct the "voted for this" string in the budgets component (#10113)
  Fix filter URL not updated with the text search input (#9618)
  Improve README design and contents (#10065)
@ahukkanen ahukkanen deleted the fix/7433 branch December 20, 2022 09:59
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.

Text search in proposals and meetings index are not added to the url as filter parameters

2 participants