Skip to content

Change: disable version counter for queries:#1549

Merged
arikfr merged 4 commits into
masterfrom
change_tracking
Jan 26, 2017
Merged

Change: disable version counter for queries:#1549
arikfr merged 4 commits into
masterfrom
change_tracking

Conversation

@arikfr

@arikfr arikfr commented Jan 26, 2017

Copy link
Copy Markdown
Member

Since the move to SQLAlchemy, version is managed automatically. When running a query, the worker updates the query row and increments the version. This results in the user's inability to save the query after that.

From reviewing SQLA's documentation, it looks like we will have to manage the version value ourselves. For now, I'm just disabling the version auto increment. In a follow up update we need to actually implement the manual increment where we think it's needed.

Since the move to SQLAlchemy, version is managed automatically.
When running a query, the worker updates the query row and increments
the version. This results in the user's inability to save the query
after that.

From reviewing SQLA's documentation, it looks like we will have to
manage the version value ourselves. For now, I'm just disabling the
version auto increment. In a follow up update we need to actually
implement the manual increment where we think it's needed.
@arikfr
arikfr merged commit ff28b75 into master Jan 26, 2017
@arikfr
arikfr deleted the change_tracking branch January 26, 2017 20:36
dairyo pushed a commit to KiiCorp/redash that referenced this pull request Mar 1, 2019
Change: disable version counter for queries:
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