Skip to content

Conversation

@iuwqyir
Copy link
Contributor

@iuwqyir iuwqyir commented Jan 9, 2025

TL;DR

Added support for toStartOfDay and toDate functions in the allowed functions map.

What changed?

Added two new date-related functions (toStartOfDay and toDate) to the allowedFunctions map, enabling their use within the application.

How to test?

  1. Use the toStartOfDay function in expressions to convert a timestamp to the start of its day
  2. Use the toDate function to convert timestamps to date format
  3. Verify that both functions execute without permission errors

Why make this change?

To enable date manipulation capabilities within the application, allowing users to perform date-based operations and transformations when working with timestamp data.

Copy link
Contributor Author

iuwqyir commented Jan 9, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@iuwqyir iuwqyir changed the title allow date functions Add toStartOfDay and toDate functions Jan 9, 2025
@iuwqyir iuwqyir changed the title Add toStartOfDay and toDate functions Allow toStartOfDay and toDate functions in the API Jan 9, 2025
@iuwqyir iuwqyir marked this pull request as ready for review January 9, 2025 22:52
@iuwqyir iuwqyir merged commit c28b292 into main Jan 9, 2025
5 checks passed
@iuwqyir iuwqyir deleted the 01-10-allow_date_functions branch January 9, 2025 22:54
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