Skip to content
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

Hotfix/webuploader ena db views query fix #334

Merged
merged 15 commits into from
Nov 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions emgena/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,20 @@ class Meta:

class RunStudy(StudyAbstract):
class Meta(StudyAbstract.Meta):
db_table = 'V_MGP_RUN_STUDY'
# ERA needs to be appended as the default connection tries to use
# the PUBLIC SYNONYM (according to ENA) and it's not working ATM
# we were advised to prefix the views and this is the simplest way.
# The short-term plan is to remove the dependency of ENA databases
db_table = 'ERA\".\"V_MGP_RUN_STUDY'


class AssemblyStudy(StudyAbstract):
class Meta(StudyAbstract.Meta):
db_table = 'V_MGP_ASSEMBLY_STUDY'
# ERA needs to be appended as the default connection tries to use
# the PUBLIC SYNONYM (according to ENA) and it's not working ATM
# we were advised to prefix the views and this is the simplest way.
# The short-term plan is to remove the dependency of ENA databases
db_table = 'ERA\".\"V_MGP_ASSEMBLY_STUDY'


class Project(models.Model):
Expand Down