Skip to content

Fix :creator & :commenter traits in plans factory - #3526

Draft
aaronskiba wants to merge 3 commits into
developmentfrom
aaron/plans-factory-fix
Draft

Fix :creator & :commenter traits in plans factory#3526
aaronskiba wants to merge 3 commits into
developmentfrom
aaron/plans-factory-fix

Conversation

@aaronskiba

@aaronskiba aaronskiba commented May 20, 2025

Copy link
Copy Markdown
Contributor

Changes proposed in this PR:

  • Prior to this change, rather than assigning the desired role to the newly created plan, executing create(:plan, :creator... or create(:plan, :commenter... would create a second new plan.
  • This code change makes sure that when the creator or commenter trait is specified, it is applied to the first created plan and that a second one is not created.
johnpinto1 and others added 2 commits May 12, 2025 17:16
…eds-file

Updated seeds.rb file for identifier_schemes to include context value and removed logo_url and identifier_prefix for Shibboleth (as it was causing issues with SSO). It passes the Rspec tests.

Co-authored-by: dstuckey-uoe dstuckey@ed.ac.uk
- Prior to this change, rather than assigning the desired role to the newly created plan, executing `create(:plan, :creator...` or `create(:plan, :commenter...` would create a second new plan.
- This code change makes sure that when the `creator` or `commenter` trait is specified, it is applied to the first created plan and a second one is not created.
@aaronskiba aaronskiba changed the title Fix creator & commenter traits in plans factory May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants