Adds spinner to block page while ajax petition is executed#6611
Adds spinner to block page while ajax petition is executed#6611
Conversation
|
This fixes #6026 I think blocking all the filtering functionality is a step back, as most of the time when you're changing filters you're going to change a couple of filters at least. With the curent implementation, it's fast to do this, but with the one that's proposed in this PR, this use case of changing multiple filters is really slow because I need to wait until every one of the filters has finished. Also, could you add a Thanks |
|
Hi @ivan-mr |
tramuntanal
left a comment
There was a problem hiding this comment.
Hi @ivan-mr ,
It seems, the flaky did not appear 😄
Is this PR ready?
It seems it's still an overall layer isn't it?
| # clicking on "Search" until we find out why. | ||
| find(".icon--magnifying-glass").click | ||
| find("#content form.new_filter .icon--magnifying-glass").click | ||
| # wait_for_ajax |
There was a problem hiding this comment.
don't we need this anymore?
Can you remove it if it's not necessary?
|
Hi @andreslucena and @tramuntanal , Seems the last modifications works but maybe could be only that the server is quiet at night. The previous modification on the reinforcement at the time of selecting the text filter field and the click on the submit button comes because we have located that inside the screen of meetings exists another identical form with the same fields. Searching the element on screen: Counting elements with same name: Searching the duplicate field on "Elements panel": Reveal panel removing "display: none": We will continue to work to fix the flaky and find out the reasons why this duplicate form exists and then we will continue the modification of the spinner. |
|
@ivan-mr it is even possible that both forms are performing 2 separate ajax requests on page load? I found this strange behavior in the proposal's list a couple of days ago.. We should definitively create a separate PR with your change and keep working with the spinner here |
|
@decidim/core my 2 cents on this double-form thingie: the "second" form is used on mobile. It's actually the same, but duplicated. The index renders the filters and a ... which renders the filters again: If you check the classes, the I'm not sure why and I'm not sure if it's needed or if it can be refactored so we just have one single form in the page, but the second copy is used on mobile. It's actually hidden so the tests shouldn't be able to fill those fields. It happens in all components that can be filtered from the public area (meetings, proposals, debates...) |
|
Awesome 🚀 Could you add a |
Hi @andreslucena , Do you want the cursor: wait only when the cursor is above the refreshed content or everywhere in the page when there's the ajax calling petition? |
Hi @andreslucena . I need to know where you would like to see the cursor: wait . |
Finally I applied it above the refreshed content. |
|
Many jobs failed without any feedback. I'm re-runing the meetings and linters workflows to see if they succeed now |







🎩 What? Why?
Please describe your pull request.
Adds a spinner to block page while ajax petition on search form is executed. With this solution we try to solve a flacky test that occurs in explore_meetings_spec file
References:
📌 Related Issues
Link your PR to an issue
Testing
Go to meetings index and make a search. Then, a spinner will appears while the search is running, and will disappear when the search has finished
📋 Checklist
🚨 Please review the guidelines for contributing to this repository.
docs/.📷 Screenshots
Please add screenshots of the changes you're proposing

