Skip to content

Validate the configured Jira components#16

Merged
Letme merged 2 commits intomasterfrom
validate-component
Jun 26, 2025
Merged

Validate the configured Jira components#16
Letme merged 2 commits intomasterfrom
validate-component

Conversation

@JasperCraeghs
Copy link
Member

@JasperCraeghs JasperCraeghs commented Jun 25, 2025

Our old Jira projects had the component [SW] available. New Jira projects use SW. We use the same configuration in our conf.py for new and old Jira projects.

  • If [SW] doesn't exist, the tool will now strip off the square brackets and use SW if that exists.
  • If the configured component(s) don't exist in your Jira project, a clean warning will be logged. WARNING: Invalid components found for project SWDT: '[SWW]' and a JIRAError will be avoided. The happy flow will continue since the addition of a component is not crucial imo.

@JasperCraeghs JasperCraeghs added the enhancement New feature or request label Jun 25, 2025
- Fix 5 failing tests by adding proper mocks for jira.project_components()
- Optimize validation to cache per project (reduces API calls)
- Add comprehensive test coverage for component validation features
- All 18 tests now pass

Fixes issues introduced by PR #16 component validation feature.
@Letme Letme merged commit 08adf29 into master Jun 26, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants