Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix keyword arguments in the change nickname event and fixing task #9230

Merged

Conversation

ahukkanen
Copy link
Contributor

@ahukkanen ahukkanen commented May 4, 2022

🎩 What? Why?

After merging #8792 the build is broken because it was developed against Ruby 2.7 and meanwhile we merged Ruby 3.

This should fix the keyword argument issues introduced by that PR.

📌 Related Issues

Testing

See the CI green or:

$ cd decidim-core
$ bundle exec rspec spec/events/decidim/change_nickname_event_spec.rb
$ bundle exec rspec spec/tasks/decidim_tasks_fix_nickname_uniqueness_spec.rb

📋 Checklist

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

@andreslucena andreslucena added module: core type: internal PRs that aren't necessary to add to the CHANGELOG for implementers labels May 4, 2022
@andreslucena
Copy link
Member

Should we ask for merging with develop, so we can catch this on the PR before merging?

@ahukkanen
Copy link
Contributor Author

Should we ask for merging with develop, so we can catch this on the PR before merging?

Yep, it was my bad as I didn't realize that. I'm not even sure if there's any easy way to spot that without going to the PR branch and looking at its state, so I wouldn't be surprised if I miss another one (unless you know a good way to spot it?).

@andreslucena
Copy link
Member

Yep, it was my bad as I didn't realize that.

No problem, I didn't catch that neither.

I'm not even sure if there's any easy way to spot that without going to the PR branch and looking at its state, so I wouldn't be surprised if I miss another one (unless you know a good way to spot it?).

Other alternatives on the top of my head would involve checking the branch locally, merging with develop and running the specs ourselves. This could be running the full test suite, only for the relevant modules or for the spec files that changed/were introduced; the tradeoff between these options would be between the speed and the confidence that it isn't breaking anything else.

I prefer the merge with develop approach, though, as that sounds cleaner and less brittle.

Copy link
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 andreslucena merged commit 85f8eae into decidim:develop May 4, 2022
@ahukkanen ahukkanen deleted the fix/nickname-change-event-kwargs branch May 4, 2022 13:43
@ahukkanen
Copy link
Contributor Author

Other alternatives on the top of my head would involve checking the branch locally, merging with develop and running the specs ourselves.

Yes, this is what I do sometimes but its quite tedious to do for all PRs before merging. I was thinking if there is an automated way to spot this but I guess not other than forcing the PR to be in sync with develop before merging. But that would be a major problem for the community contributions that we cannot rebase ourselves.

There is a GH action that would force the PR to be in sync when it is opened/reopened but it wouldn't have prevented this particular situation.

@alecslupu alecslupu added this to the 0.27.0 milestone Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: core type: internal PRs that aren't necessary to add to the CHANGELOG for implementers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants