Skip to content

PM-4834: Persist edited phase end dates#1716

Merged
jmgasper merged 1 commit intodevfrom
PM-4834
Apr 10, 2026
Merged

PM-4834: Persist edited phase end dates#1716
jmgasper merged 1 commit intodevfrom
PM-4834

Conversation

@jmgasper
Copy link
Copy Markdown
Collaborator

@jmgasper jmgasper commented Apr 10, 2026

What was broken
Edit challenge saves reported success even when a phase end date had been changed, but the updated end date was missing after reload because the save request omitted it.

Root cause (if identifiable)
The challenge editor serialized phase data twice before patching the challenge, and both serializers kept scheduledStartDate but dropped scheduledEndDate.

What was changed
Preserved scheduledEndDate in the challenge editor phase mapper and the challenges service payload serializer so edited phase end dates reach the API on update and create flows.
Added focused coverage for form-data transformation and the patch request payload.

Any added/updated tests
Added a challenge editor utility test covering scheduledEndDate serialization.
Added a challenges service test covering scheduledEndDate in the patch payload.


Open with Devin

What was broken
Edit challenge saves reported success even when a phase end date had been changed, but the updated end date was missing after reload because the save request omitted it.

Root cause (if identifiable)
The challenge editor serialized phase data twice before patching the challenge, and both serializers kept scheduledStartDate but dropped scheduledEndDate.

What was changed
Preserved scheduledEndDate in the challenge editor phase mapper and the challenges service payload serializer so edited phase end dates reach the API on update and create flows.
Added focused coverage for form-data transformation and the patch request payload.

Any added/updated tests
Added a challenge editor utility test covering scheduledEndDate serialization.
Added a challenges service test covering scheduledEndDate in the patch payload.
@jmgasper jmgasper requested a review from kkartunov as a code owner April 10, 2026 05:17
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@jmgasper jmgasper merged commit 7b6671a into dev Apr 10, 2026
9 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