Add sprint itreation name generator service#257
Add sprint itreation name generator service#257haiphucnguyen merged 1 commit intoflowinquiry:mainfrom
Conversation
| import java.util.regex.Matcher; | ||
| import java.util.regex.Pattern; | ||
| public class ProjectIterationNameGenerator { | ||
| private static final int MAX_SPRINT_COUNT = 24; |
There was a problem hiding this comment.
I recommend removing the RegexConstants class. Typically, projects use iteration or sprint prefixes such as iteration-1, iteration-2, or sprint1, sprint2.
However, we should not restrict users to fixed prefixes like iteration or sprint. In a multilingual system like FlowInquiry, users may want to use localized prefixes, e.g., itération (French for iteration). Instead, we should automatically detect the prefix and calculate the next iteration name dynamically.
Proposed implementation:
-
If the current iteration name has no number, the next name will be 1.
-
If the current iteration name ends with a number, extract it, increment by 1, and append back. Examples:
-
iteration-1 → iteration-2
-
example123 → example124
-
9730841 to
52ef436
Compare
|
Thank you @MrChatterjee98 for your PR. I am kooking forward to your next PR at the service layer side :) |
|
Sure 💯 |
Description
A service that automatically generates the iteration name from the previous iteration
Changes Made
Additional Notes