Skip to content

fix: Refactor the parameters for timestamp expressions and fix bug for timeGranularity lowercase#7856

Merged
yvonnep165 merged 3 commits intomainfrom
yvonne/refactor-timestamp-parameters
Mar 27, 2026
Merged

fix: Refactor the parameters for timestamp expressions and fix bug for timeGranularity lowercase#7856
yvonnep165 merged 3 commits intomainfrom
yvonne/refactor-timestamp-parameters

Conversation

@yvonnep165
Copy link
Copy Markdown
Contributor

@yvonnep165 yvonnep165 commented Mar 24, 2026

Changes on top of #7826:

  • Create new type TimeUnit and refactor the timestampAdd, timestampSubtract and timestampDiff expressions to use this value
  • Change the type TimeGranularity to include type TimeUnit directly and change the camelCase value to lowercase
  • Remove the toLowerCase() usage in timestampTruncate and timestampExtract

BEGIN_COMMIT_OVERRIDE
chore(firestore): Refactor the parameters for timestamp expressions and fix bug for timeGranularity lowercase
END_COMMIT_OVERRIDE

@yvonnep165 yvonnep165 requested review from dlarocque and milaGGL March 24, 2026 21:18
@yvonnep165 yvonnep165 requested a review from a team as a code owner March 24, 2026 21:18
isAbsent(): BooleanExpression;
isError(): BooleanExpression;
isType(type: Type): BooleanExpression;
isType(type: string): BooleanExpression;
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.

Thanks for fixing this- i forgot to generate the API report when i added this

Copy link
Copy Markdown
Contributor

@milaGGL milaGGL left a comment

Choose a reason for hiding this comment

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

LGTM

Base automatically changed from yvonne/timestamp-expressions to main March 26, 2026 20:16
@yvonnep165 yvonnep165 merged commit 7d044d1 into main Mar 27, 2026
35 checks passed
@yvonnep165 yvonnep165 deleted the yvonne/refactor-timestamp-parameters branch March 27, 2026 14:42
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.

3 participants