Skip to content

Identify Experience CS projects - #975

Draft
cocomarine wants to merge 3 commits into
mainfrom
1717-add-project-origin-column
Draft

Identify Experience CS projects#975
cocomarine wants to merge 3 commits into
mainfrom
1717-add-project-origin-column

Conversation

@cocomarine

@cocomarine cocomarine commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Status

Points for consideration:

  • Security
  • Performance

What's changed?

  • Add origin column to Project
  • Validations:
    • inclusion in known origins (only Project::Origins::EXPERIENCE_CS for now)
    • allows nil value so that we can backfill, blocks any change once set
  • build_project now sets origin for ECS admins
  • Remix projects inherit origin from original project.

@cla-bot cla-bot Bot added the cla-signed label Aug 20, 2026
@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown

Test coverage

93.35% line coverage reported by SimpleCov.
Run: https://github.com/RaspberryPiFoundation/editor-api/actions/runs/32388309237

@raspberrypiherokubot
raspberrypiherokubot temporarily deployed to editor-api-p-1717-add-p-loqwkl August 20, 2026 14:16 Inactive
Comment on lines -20 to +25
project_hash[:identifier] = PhraseIdentifier.generate unless current_user&.experience_cs_admin?
if current_user&.experience_cs_admin?
project_hash[:origin] = Project::Origins::EXPERIENCE_CS
else
project_hash[:identifier] = PhraseIdentifier.generate
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are there any the tradeoffs for setting the project origin here compared to getting the caller (experience CS) to set it and passing in the param?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants