Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support "Change Modes" on models enabling for controlled model refreshes #7239

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

grahamplata
Copy link
Contributor

Currently a small SQL change in a model automatically triggers a full refresh. This PR supports specifying a "change mode" on models, which governs behavior when the model logic changes.

Resolves: https://github.com/rilldata/rill-private-issues/issues/1635

It supports these options:
reset: changing the model automatically leads to a full refresh (default, current behavior)
manual: changing the model stops refreshes until a manual incremental or full refresh is run
patch: changing the model automatically changes to the new logic without a reset

type: model
change_mode: {reset|manual|patch}

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

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.

1 participant