Skip to content

PM-5758: honor design challenge submission limits - #7258

Merged
jmgasper merged 1 commit into
developfrom
PM-5758
Aug 10, 2026
Merged

PM-5758: honor design challenge submission limits#7258
jmgasper merged 1 commit into
developfrom
PM-5758

Conversation

@jmgasper

@jmgasper jmgasper commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

What was broken

Community challenge details treated serialized submission-limit metadata as a number, so configured limits displayed as Unlimited. Members could also attempt another submission after reaching a configured limit without the requested guidance.

Root cause

The sidebar expected a legacy scalar metadata value, while current challenges store a JSON string. Submission entry points did not read that metadata or verify the member's existing submissions.

What was changed

Added safe parsing for current and legacy submission-limit metadata and displayed the configured count in the challenge sidebar. Guarded both the challenge submit action and the final submission boundary so members at the limit see the requested Submission Limit Reached message and must delete an existing submission before replacing it.

Any added/updated tests

Added parser and message tests, header action coverage, and submission-boundary tests for unlimited, below-limit, reached-limit, and lookup-failure cases.

Validation completed successfully with the full npm test suite (153 suites and 339 tests), npm run lint, and npm run build.

What was broken
Community challenge details treated serialized submission-limit metadata as a number, so configured limits displayed as Unlimited. Members could also attempt another submission after reaching a configured limit without the requested guidance.

Root cause
The sidebar expected a legacy scalar metadata value, while current challenges store a JSON string. Submission entry points did not read that metadata or verify the member's existing submissions.

What was changed
Added safe parsing for current and legacy submission-limit metadata, displayed the configured count in the challenge sidebar, and guarded both the challenge submit action and the final submission boundary. Members at the limit now see the requested Submission Limit Reached message and must delete an existing submission before replacing it.

Any added/updated tests
Added parser and message tests, header action coverage, and submission-boundary tests for unlimited, below-limit, reached-limit, and lookup-failure cases.
@jmgasper
jmgasper requested a review from kkartunov as a code owner August 9, 2026 21:42
@jmgasper
jmgasper merged commit 313ae3a into develop Aug 10, 2026
7 checks passed
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.

1 participant