-
Notifications
You must be signed in to change notification settings - Fork 21
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
Port schedule_until feature to upstream #427
Comments
@jezdez I'm having a problem generating the database migration for this. I need to get to a file like this: https://github.com/washort/redash/blob/a2f146ebace7b1025d3d2fa9b7c8c1fd9b5cb408/migrations/versions/eb2f788f997e_.py If I run these commands:
I get this output:
The string |
Arik's comment: "wait for the updated schedule query interface to be merged" |
I think the schedule query interface has landed now upstream. |
@jezdez I'm back to the migrations error above. |
@alison985 58f810489c47 is a migration added in our fork, 9bcda87#diff-0608868631369d427f4400b7b699dd94 which means that your local environment has had migrations of the fork applied and stored in a migration table that alembic keeps. When it tries to resolve the migration tree it can't find the migration file that the hash refers to (and that it found in the table) and fails to prevent data loss. The fix is pretty simple, keep an separate clone of the upstream (getredash/redash) repo around and work on patches inside that to keep the migration history separate (by way of running different Docker containers for the upstream and fork repos). E.g. I have a ~/Code/redash-mozilla and a ~/Code/redash-upstream directory and work on them separately. In case you need to port a patch from one to the other you can simply export and import patches using git format-patch and git apply/am. |
I wanted to point out: getredash#2426 This does a port of schedule_until as well |
@alison985 Understood. @emtwo Since the feature already exists in our fork we'll need to write a data migration to port over the "schedule_until" values to the new JSON schedule field and delete the column afterwards. Can you think of huge blockers for that problem? Would you mind preparing such a migration for when we pull the changes with the merged PR into the fork? |
@jezdez I don't think there should be any blockers to this. Yes, I will create this migration. |
Once #187 (which contains an implementation of this functionality) is merged upstream and then brought into our codebase, we'll need to write a migration to move our deployment's 'schedule_until' data into the new format. |
Done and landed in prod. |
Add
schedule_until
field to queries, to allow expiry (#15, PR: #60)This is tracked on https://github.com/mozilla/redash/projects/3
The text was updated successfully, but these errors were encountered: