Repository navigation
feat: add new cycle form to admin cycles page (#802) - #822
Open
wilsonadenuga wants to merge 5 commits into
Open
wilsonadenuga wants to merge 5 commits into
wilsonadenuga wants to merge 5 commits into
Conversation
Allow authorized admins to create mentorship cycles in draft status with date validation, default mentee capacity, and duplicate-cycle conflict handling. Add request validation and unit/integration coverage for successful creation, invalid values, authorization, and conflicts.
Create the mentorship cycle request before the assertion so the exception-testing lambda contains only the service invocation.
Add Year and Month types with future-date validation for mentorship cycle creation, restrict new cycles to February through November, and return a readable error for invalid month values. Add matching entity validation, a Flyway database constraint, and update affected tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
wilsonadenuga
marked this pull request as ready for review
October 16, 2026 13:10
wilsonadenuga
requested review from
OlenaReukova,
Sowmiya07,
Tooonia,
dricazenck,
lauracabtay,
nora-weisser and
nverbic
October 16, 2026 13:10
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Depends on #804 (the create cycle endpoint). Until it's merged, this diff also shows #804's changes.
Description
Adds a New cycle form to the Cycles page.
Related Issue
Closes #802
Change Type
Screenshots
New cycle form
Date validation (cycle start must be after registration end)
Cycle created: success alert and the new row highlighted
Duplicate cycle: API error shown in the form
Pull request checklist
Please check if your PR fulfills the following requirements: