Skip to content

Fix overriding of flow session tags via exceptions#1505

Merged
inducer merged 1 commit into
mainfrom
fix-tag-override
May 20, 2026
Merged

Fix overriding of flow session tags via exceptions#1505
inducer merged 1 commit into
mainfrom
fix-tag-override

Conversation

@inducer
Copy link
Copy Markdown
Owner

@inducer inducer commented May 19, 2026

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a bug in grant_exception_stage_3 where newly created flow rule exceptions used the session's pre-update access_rules_tag value when building the if_has_tag field. The session tag update is moved earlier in the flow so subsequent rule JSON is built with the new tag.

Changes:

  • Move the set_access_rules_tag handling (and the success message) to before access/grading rule JSON construction.
  • Use the resolved new_access_rules_tag (rather than session.access_rules_tag) when populating if_has_tag for both the access and grading exception JSONs.
  • Remove the not restricted_to_same_tag guard around the tag update.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread course/views.py
@inducer inducer force-pushed the fix-tag-override branch 2 times, most recently from 08e8989 to fe0517e Compare May 20, 2026 22:08
@inducer inducer force-pushed the fix-tag-override branch from fe0517e to eae754c Compare May 20, 2026 22:31
@inducer inducer enabled auto-merge (rebase) May 20, 2026 22:32
@inducer inducer merged commit 1e22b90 into main May 20, 2026
18 checks passed
@inducer inducer deleted the fix-tag-override branch May 20, 2026 22:37
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.

2 participants