Skip to content

Vps 9/conditions in collections#393

Open
rgin216 wants to merge 4 commits into
masterfrom
VPS-9/conditions-in-collections
Open

Vps 9/conditions in collections#393
rgin216 wants to merge 4 commits into
masterfrom
VPS-9/conditions-in-collections

Conversation

@rgin216
Copy link
Copy Markdown
Contributor

@rgin216 rgin216 commented May 11, 2026

Issue

Resource collections could not have their own state conditions. Authors could only conditionally reveal individual files, which made it awkward to reveal a whole collection of related resources at once. The old CollectionChild model was also unused.

Solution

Added stateConditionals to collection groups, with create/update/delete API support. Generalized the existing state conditional UI so it can target either a file or a collection. Player resource filtering now requires both collection-level and file-level conditions to pass before a file is visible.

Also removed the unused CollectionChild model after confirming it had no references.

Risk

Collection-level conditions add another visibility gate, so incorrectly configured collection conditions can hide files that would previously have appeared based only on file-level conditions. Existing collections without conditions should continue to behave as before.

Checklist

  • Acceptance criteria met
  • Wiki documentation is written and up to date
  • Unit tests written and passing
  • Integration tests written and passing
  • Continuous integration build passing

@linear
Copy link
Copy Markdown

linear Bot commented May 11, 2026

VPS-9

@harbassan harbassan requested review from GogaIV and harbassan May 18, 2026 10:36
Copy link
Copy Markdown
Contributor

@GogaIV GogaIV left a comment

Choose a reason for hiding this comment

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

Lgtm 👌

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