Skip to content

fix(filtered-search): omit daterange specific properties from datepickerConfig#2101

Draft
ljanner wants to merge 1 commit into
mainfrom
fix/filtered-search/datepicker-config
Draft

fix(filtered-search): omit daterange specific properties from datepickerConfig#2101
ljanner wants to merge 1 commit into
mainfrom
fix/filtered-search/datepicker-config

Conversation

@ljanner
Copy link
Copy Markdown
Member

@ljanner ljanner commented May 27, 2026

Replica of #1260, since that PR caused the accidental v50 release and has been reverted.


enableDateRange and enableTwoMonthDateRange have no effect when passed in datepickerConfig with filtered-search criterion.


BREAKING CHANGE: CriterionDefinition.datepickerConfig type narrowed

The type of datepickerConfig in CriterionDefinition (filtered-search) changed from DatepickerInputConfig to Omit<DatepickerInputConfig, 'enableDateRange' | 'enableTwoMonthDateRange'>.

The properties enableDateRange and enableTwoMonthDateRange are no longer accepted in datepickerConfig when used with filtered-search criteria, as they had no effect in that context.

Migration: Remove any enableDateRange and enableTwoMonthDateRange properties from your datepickerConfig objects passed to CriterionDefinition.


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

…kerConfig

BREAKING CHANGE: `CriterionDefinition.datepickerConfig` type narrowed

The type of `datepickerConfig` in `CriterionDefinition` (filtered-search) changed from `DatepickerInputConfig` to `Omit<DatepickerInputConfig, 'enableDateRange' | 'enableTwoMonthDateRange'>`.

The properties `enableDateRange` and `enableTwoMonthDateRange ` are no longer accepted in `datepickerConfig` when used with filtered-search criteria, as they had no effect in that context.

Migration: Remove any `enableDateRange` and `enableTwoMonthDateRange` properties from your `datepickerConfig` objects passed to `CriterionDefinition`.
@ljanner ljanner added this to the 50.0.0 milestone May 27, 2026
@ljanner ljanner added bug Something isn't working breaking-changes Marks issues and PRs that are breaking the API labels May 27, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the datepickerConfig property in the CriterionDefinition interface within both the API golden file and the model definition. The type is modified to omit 'enableDateRange' and 'enableTwoMonthDateRange' from DatepickerInputConfig. No review comments were provided, so there is no additional feedback to address.

@ljanner
Copy link
Copy Markdown
Member Author

ljanner commented May 27, 2026

Keeping as a draft, pipeline failure is expected for now and once we open the breaking change window we can drop the check-commit-messages job and then get this one in 👍

/cc @chintankavathia, @spliffone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-changes Marks issues and PRs that are breaking the API bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant