Skip to content

fix: apply status and date filters together with AND for catalog actitvities - #68

Merged
jordivx merged 1 commit into
masterfrom
fix/catalog-activities-filters
Aug 4, 2026
Merged

fix: apply status and date filters together with AND for catalog actitvities#68
jordivx merged 1 commit into
masterfrom
fix/catalog-activities-filters

Conversation

@jordivx

@jordivx jordivx commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

This change updates catalog activity filtering so start and end date constraints are no longer skipped when status is provided, ensuring combined filters behave consistently with project filtering, and adds a regression test to verify that project, status, and date range together return only activities that satisfy all selected criteria.

@sonarqubecloud

sonarqubecloud Bot commented Aug 3, 2026

Copy link
Copy Markdown

filteredCatalogActivities = filterOutByStatus(filteredCatalogActivities, status);
}

if (startDate != null && endDate != null) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What happens when we have only startDate or only endDate? Is it correct to do nothing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Indeed, I just kept the previous behavior just "nesting" the filters, but keeping the same conditions, dates were meant to be a range, if is only one of the values, the filter is not applied.

@jordivx
jordivx merged commit 8d8e1f7 into master Aug 4, 2026
3 checks passed
@jordivx
jordivx deleted the fix/catalog-activities-filters branch August 4, 2026 06:19
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