Skip to content

Commit

Permalink
Fix bug on global commit scan due to different subquery column names
Browse files Browse the repository at this point in the history
  • Loading branch information
dojeda committed Oct 23, 2019
1 parent 1845c88 commit 692e868
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ X.Y.Z (unreleased)
* Fix incorrect reference on json views, making some family empty contents.
* Fix DB docker image on kubernetes that was missing the logs
* Add verification of existing files before file modification operations
# Fix incorrect common refactoring of global and workspace json views subquery

Planned:

Expand Down
2 changes: 2 additions & 0 deletions quetzal/app/api/data/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ def _make_json_view_query(metadata_query, families):
sub = (
metadata_query
.filter(Family.name == family.name)
.with_entities(Metadata.id_file.label('metadata_id_file'),
Metadata.json.label('metadata_json'))
.subquery(name=family.name)
)
subqueries.append(sub)
Expand Down

0 comments on commit 692e868

Please sign in to comment.