Skip to content

Add sprint itreation name generator service#257

Merged
haiphucnguyen merged 1 commit intoflowinquiry:mainfrom
MrChatterjee98:main
Sep 18, 2025
Merged

Add sprint itreation name generator service#257
haiphucnguyen merged 1 commit intoflowinquiry:mainfrom
MrChatterjee98:main

Conversation

@MrChatterjee98
Copy link
Copy Markdown
Contributor

Description

A service that automatically generates the iteration name from the previous iteration

Changes Made

Additional Notes

import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class ProjectIterationNameGenerator {
private static final int MAX_SPRINT_COUNT = 24;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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

@haiphucnguyen
Copy link
Copy Markdown
Collaborator

Thank you @MrChatterjee98 for your PR. I am kooking forward to your next PR at the service layer side :)

@haiphucnguyen haiphucnguyen merged commit 1cc91fb into flowinquiry:main Sep 18, 2025
4 of 7 checks passed
@MrChatterjee98
Copy link
Copy Markdown
Contributor Author

Sure 💯

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