Skip to content

Add more endorsements in seeds #11996

Merged
alecslupu merged 2 commits intodevelopfrom
feature/seeds-multiple-endorsers
Nov 14, 2023
Merged

Add more endorsements in seeds #11996
alecslupu merged 2 commits intodevelopfrom
feature/seeds-multiple-endorsers

Conversation

@andreslucena
Copy link
Copy Markdown
Member

🎩 What? Why?

In the last few days, there were a couple of issues and bugs that could be detected more easily if we had more endorsements in the Seeds:

  1. On the proposals' admin show page: https://github.com/decidim/decidim/pull/11984/files/325e076458fffd8f6f88d536d516934fdb065bd6#r1391588816 - where we detected it because there was one proposal with 8 endorsements
  2. On the proposals show page: Margin for comments grows when there are lots of likes #11978 - where the margin was growing if there were more than X endorsements

This PR adds much more endorsements in the seeds

Mind that I'm doing this after all the seeds are created, so I can benefit from the large number of users.

Testing

Regenerating the development_app database should have much more endorsements in some resources:

$ bin/rails db:drop db:create db:migrate db:seed

📷 Screenshots

Screenshot of the proposals index page

♥️ Thank you!

@andreslucena andreslucena added the type: internal PRs that aren't necessary to add to the CHANGELOG for implementers label Nov 14, 2023
github-actions[bot]
github-actions bot previously approved these changes Nov 14, 2023
@alecslupu alecslupu self-assigned this Nov 14, 2023
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

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

@andreslucena, can you fix the failing pipelines ?

@andreslucena andreslucena changed the title Add more endorsements in seeds Add more endorsements in seeds Nov 14, 2023
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

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

👍
image

@alecslupu
Copy link
Copy Markdown
Contributor

@andreslucena maybe we should change the PR title so that it reflects better what you have done here?

@andreslucena
Copy link
Copy Markdown
Member Author

@andreslucena maybe we should change the PR title so that it reflects better what you have done here?

@alecslupu what do you have in mind? Maybe something like

  • Randomly add more endorsements in seeds
  • Add more endorsements in seeds sometimes
  • Add more "Likes" in seeds

?

@alecslupu
Copy link
Copy Markdown
Contributor

@andreslucena maybe we should change the PR title so that it reflects better what you have done here?

@alecslupu what do you have in mind? Maybe something like

* Randomly add more endorsements in seeds

* Add more endorsements in seeds sometimes

* Add more "Likes" in seeds

?

The PR title you have set is ok for half of the work, but my issue would be with the refactor unrelated to endorsements...

@alecslupu alecslupu merged commit f4352e7 into develop Nov 14, 2023
@alecslupu alecslupu deleted the feature/seeds-multiple-endorsers branch November 14, 2023 13:37
@alecslupu
Copy link
Copy Markdown
Contributor

@andreslucena I could not find a more suggestible name, so it is merged :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: internal PRs that aren't necessary to add to the CHANGELOG for implementers

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants