-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 replacing references of presenter_id #16771
Fix replacing references of presenter_id #16771
Conversation
4d94fb3
to
1f4d3a3
Compare
The failing spec is unrelated |
Extracted to `spec/services/principals/replace_references_context.rb` in a previous commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. I tested it and it works.
Then I added a few commits instead of adding review comments to
- fix rubocop warning
- remove leftover shared example in the original file
- make test (hopefully) easier to read by removing the need to specify
created_at
andupdated_at
attributes, and removingauthor_id: principal.id
attribute as it would have been overwritten anyway. - add a test for Journal::MeetingAgendaItemJournal#author_id
If these changes are ok for you, feel free to merge it.
And we could also rewrite the shared example to replace this output:
with this output
But I refrained from doing it because it may push things a little too far. |
Thanks @cbliard , I like the change. If you have it prepared already, could you submit this to |
Sure, will do 👍 |
I give up on it. The code needed to get it looking like what I posted is a bit too convoluted. I'll keep it in a local branch in case I have an idea about how to make it work. |
https://community.openproject.org/work_packages/57986