Skip to content

Conversation

@KSDaemon
Copy link
Member

@KSDaemon KSDaemon commented Mar 13, 2025

This PR introduce new selector for jobs triggering: dateRange. If it is set (in addition to other selectors or standalone) then only partitions which intersect with it will be rebuilt.

Check List

  • Tests have been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

@KSDaemon KSDaemon marked this pull request as ready for review March 13, 2025 15:55
@KSDaemon KSDaemon requested review from a team as code owners March 13, 2025 15:55
@KSDaemon KSDaemon force-pushed the feat/dateranges-in-preagg-jobs branch from 5775955 to e1541d7 Compare March 14, 2025 20:49
@KSDaemon KSDaemon merged commit b5701e3 into master Mar 18, 2025
49 checks passed
@KSDaemon KSDaemon deleted the feat/dateranges-in-preagg-jobs branch March 18, 2025 15:25
marianore-muttdata pushed a commit to MuttData/cube that referenced this pull request Jun 17, 2025
…n partitions within date Range (cube-js#9342)

* spelling

* add dateRange to PreAggsJobsRequest

* pass dateRange to preAggregations(filter)

* a bit of code polishment

* add preAggsJobsRequestSchema validator

* fix PreAggsJobsRequest types

* specify type for parseLocalDate()

* refresh only matched partitions

* add html reporters

* some code polishment

* fix/add some tests to dateParser()

* code polishment

* add another check

* add tests for api-gw preagg jobs endpoint

* align refactor some types

* code polish

* refresh only matched partitions fix

* code polish

* add tests for pre-agg jobs

* jest reporters

* add tests for refreshScheduler.getCachedBuildJobs()

* improve caching in pre-agg-load-cache

* increase delay in tests to pass

* use asyncDebounce for caching in pre-agg-load-cache

* Revert "use asyncDebounce for caching in pre-agg-load-cache"

This reverts commit a353cf1.

* Revert "improve caching in pre-agg-load-cache"

This reverts commit f8f640c.

* set coverageReporters

* add docs

* fix regexp

* fix dateParser + tests

* fix preAggsJobsRequestSchema validator

* fix error message

Co-authored-by: Igor Lukanin <igor@cube.dev>

* simplify regexp in dateParser

* tests polish

* little fix

---------

Co-authored-by: Igor Lukanin <igor@cube.dev>
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.

4 participants