Skip to content

Conversation

@miurahr
Copy link
Member

@miurahr miurahr commented Dec 1, 2025

This PR is workbench to refactor issue checker and redesign core feature.

Pull request type

  • Bug fix -> [bug]
  • Refactor
  • Add testing

Which ticket is resolved?

What does this PR change?

  • Introduced IssueChecker class to aggregate tag validation and issue-provider results.
  • Updated EditorController and IssuesPanelController to use the centralized IssueChecker instead of individual issue-handling logic.
  • Added test coverage in IssueCheckerTest to ensure correct aggregation, filtering by file pattern, and duplicate issue handling.

Other information

- Introduced the `IssueChecker` class to unify tag validation and provider issue checks.
- Updated `EditorController` and `IssuesPanelController` to delegate issue checking to `IssueChecker`.
- Simplified and modularized issue collection logic for better maintainability.

Signed-off-by: Hiroshi Miura <[email protected]>
- Added unit tests for `IssueChecker` to validate aggregation of tag and provider issues.
- Verified file pattern-based filtering of issues.
- Implemented testing for duplicate issue filtering logic.

Signed-off-by: Hiroshi Miura <[email protected]>
- Replaced fully qualified `java.util.Optional` with a direct `Optional` import for cleaner code.

Signed-off-by: Hiroshi Miura <[email protected]>
@github-actions

This comment was marked as outdated.

…nization

- Moved issue checking logic to a dedicated `checkIssuesOnLeave` method.
- Extracted source synchronization into `synchronizeTeam` method for better readability.
- Refactored identical source handling into `findAllIdenticalSources` method.

Signed-off-by: Hiroshi Miura <[email protected]>
…arity

- Renamed `StubProject` to `TestingProject` for better clarity.
- Replaced inline `TestProvider` implementation with `TestingIssueProvider`.
- Updated `setUp` method to use `setUpClass` and simplified state setup.
- Cleaned up imports and improved Javadoc formatting.

Signed-off-by: Hiroshi Miura <[email protected]>
@github-actions

This comment was marked as outdated.

- Migrated issue providers registry to `CoreState` for better test isolation and modularity.
- Updated `IssueProviders` API methods to delegate to `CoreState` registry.
- Introduced `ensureDefaultsInstalled` for maintaining default providers order and avoiding duplicates.
- Added registry reset in `TestCoreState` to ensure test consistency.

Signed-off-by: Hiroshi Miura <[email protected]>
@miurahr miurahr marked this pull request as ready for review December 1, 2025 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants