Skip to content

Pages Editor: remove "Workflows belongs to Project" checks#7344

Open
shaunanoordin wants to merge 1 commit intomainfrom
fix-7343-pages-editor
Open

Pages Editor: remove "Workflows belongs to Project" checks#7344
shaunanoordin wants to merge 1 commit intomainfrom
fix-7343-pages-editor

Conversation

@shaunanoordin
Copy link
Copy Markdown
Member

@shaunanoordin shaunanoordin commented Aug 13, 2025

PR Overview

Fixes #7343
Affects: Pages Editor (aka Workflow Editor)

This PR fixes an issue where newly-created workflows aren't correctly identified as being part of the project. This means the Pages Editor no longer checks if the workflow belongs to a project before allowing users to edit the workflow.

The "workflow belongs to project" check was initially added as a safety against a niche scenario, but it seems to be causing more problems than it's solving.

Testing

Testing is a bit difficult, so don't worry about it too much since this only affects the new Pages Editor (aka Workflow Editor) and NOT the standard PFE Project Builder page for editing workflows.

But if you really want to...

Basic test for Pages Editor:

Specific tests for PR:

The problem with running these tests is that I had to set up two different projects with two different user accounts, which was a pain to do properly. 😬 You'd either need to trust me that I set up the workflows and zootester1/2 permissions properly, or you'll need to replicate the permissions etc correctly. Trying to test any of the above with our standard admin mode enabled will just bypass a bunch of the permission checks anyway.

Status

Low priority, ready for review.

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 13, 2025

Coverage Status

coverage: 55.943% (-0.02%) from 55.961%
when pulling 336cf7c on fix-7343-pages-editor
into 23e506b on main.

@shaunanoordin shaunanoordin requested a review from a team August 13, 2025 22:29
@shaunanoordin shaunanoordin marked this pull request as ready for review August 13, 2025 22:29
@shaunanoordin shaunanoordin changed the title PagesEditor: remove Workflows belongs to Project checks Pages Editor: remove "Workflows belongs to Project" checks Aug 13, 2025
@shaunanoordin
Copy link
Copy Markdown
Member Author

@zooniverse/frontend please take a look at my PR thanks!

(I'm actually testing the @ system)

@shaunanoordin shaunanoordin force-pushed the fix-7343-pages-editor branch from 68ae71e to 336cf7c Compare January 7, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pages Editor: newly-created Workflow isn't recognised as part of Project

2 participants