Skip to content

Redesign: proposal counter total number avaliable#12014

Merged
andreslucena merged 9 commits intodecidim:developfrom
greenwoodt:fix/proposal-component-count
Nov 22, 2023
Merged

Redesign: proposal counter total number avaliable#12014
andreslucena merged 9 commits intodecidim:developfrom
greenwoodt:fix/proposal-component-count

Conversation

@greenwoodt
Copy link
Copy Markdown
Member

🎩 What? Why?

The proposal component wouldn't count the no. of proposals availiable instead only per page. This proposals allows the ActiveRecord method total_countto replace the @proposals.lengthcounting proposals per page.

Further investigation hasn't discovered whether this is a issue affecting all modules (for example: Projects, Assemblies etc), however this fix should be applicable fix to all modules if affected with the same bug.

📌 Related Issues

Link your PR to an issue

Testing

  1. Access the Decidim solution (no need to login).
  2. Head to a Process with Proposals active.
  3. Make sure you have a like 20/30 proposals
  4. See the proposals counting the total no. instead of per page.

PR: #12005, should help in terms of testing if you wish to seed more proposals.

📷 Screenshots

Before:
photo_2023-11-16 12 09 38

After:
photo_2023-11-16 12 09 34

♥️ Thank you!

github-actions[bot]
github-actions bot previously approved these changes Nov 16, 2023
@greenwoodt greenwoodt assigned greenwoodt and unassigned greenwoodt Nov 16, 2023
github-actions[bot]
github-actions bot previously approved these changes Nov 16, 2023
github-actions[bot]
github-actions bot previously approved these changes Nov 16, 2023
github-actions[bot]
github-actions bot previously approved these changes Nov 16, 2023
@greenwoodt greenwoodt added the project: redesign Barcelona City Council contract label Nov 17, 2023
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 can confirm that this fix is working. I have some suggestions regarding the specs, can you check them out please?

@andreslucena andreslucena changed the title Redesign: Proposal counter total number avaliable Redesign: proposal counter total number avaliable Nov 20, 2023
@greenwoodt
Copy link
Copy Markdown
Member Author

greenwoodt commented Nov 20, 2023

@andreslucena thanks for the review. Will update with your suggestions today.

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
greenwoodt and others added 3 commits November 20, 2023 10:18
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
github-actions[bot]
github-actions bot previously approved these changes Nov 20, 2023
@andreslucena andreslucena self-assigned this Nov 22, 2023
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.

👍🏽

@andreslucena
Copy link
Copy Markdown
Member

This isn't happening in v0.27:

Screenshot of this page in metadecidim (v0.27)

So, I'm adding the no-backport label

@andreslucena andreslucena added the no-backport Pull Requests that should not be backported label Nov 22, 2023
@andreslucena
Copy link
Copy Markdown
Member

Only failing spec is codecov, so I'm merging this

@andreslucena andreslucena merged commit 211a914 into decidim:develop Nov 22, 2023
entantoencuanto added a commit that referenced this pull request Nov 27, 2023
* develop: (51 commits)
  Fix a11y violations and title layout on announcements (#12067)
  Fix randomness on nickname and emails for seeded users (#12058)
  Fix render partial deprecation warning on proposals (#12035)
  Redesign: proposal counter total number avaliable (#12014)
  Fix disabling access to space private users when the space is public (#12031)
  Redesign: admin screen overflow on smaller screens (#11956)
  Make the breadcrumb consistent in the components import pages (#12024)
  Fix develop branch (#12051)
  Create the IconRegistry (#11982)
  Fix process groups component content blocks (#11872)
  Remove the asemblies settings page (#11873)
  Fix n+1 query on assemblies permissions (#12040)
  Remove unused scope filter from search controller and command (#12038)
  Fix issues in "Verify your identity" (#12030)
  Fix flash of dropdowns in buttons from the title bar and "Manage" button (#12011)
  Add CI workflow configuration for decidim-design (#12022)
  Extract methods from participatory processes seeds (#12032)
  Show message when there are no debates (#12037)
  Show error message when there are no budgets nor projects in budgets (#12034)
  Fix faker requirement in production environment 2 (#12033)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: core module: proposals no-backport Pull Requests that should not be backported project: redesign Barcelona City Council contract type: fix PRs that implement a fix for a bug

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

Proposals counter is not counting all proposals

2 participants