Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: validate custom date filter config granularities #5720

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Conversation

NestorEncinas
Copy link
Contributor

risk: low
JIRA: LX-706


Important

Please, don't forget to run rush change for the commits that introduce new features 🙏


Refer to documentation to see how to run checks and tests in the pull request. This is the list of the most used commands:

extended test - backstop
extended test - integrated
extended test - isolated
extended test - record

@@ -12,6 +12,14 @@ import {
idRef,
} from "@gooddata/sdk-model";

const dateFilterGranularity: DateFilterGranularity[] = [
Copy link
Contributor

Choose a reason for hiding this comment

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

just wandering if we could use this model for validation? https://github.com/gooddata/gooddata-ui-sdk/blob/master/libs/sdk-model/src/dateFilterConfig/index.ts#L72-L87 (but note that the list item does not match exactly)

Copy link
Contributor Author

@NestorEncinas NestorEncinas Dec 17, 2024

Choose a reason for hiding this comment

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

Updated it to use existing method - isDateFilterGranularity

@pbenes pbenes added this pull request to the merge queue Dec 17, 2024
Merged via the queue into master with commit ecf5359 Dec 17, 2024
6 checks passed
@pbenes pbenes deleted the nen-lx-706 branch December 17, 2024 12:50
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