Skip to content

Commit

Permalink
#119: Fix ISIS endpoints on DB backend
Browse files Browse the repository at this point in the history
- They became broken due to the change to camelCase within the backend
  • Loading branch information
MRichards99 committed Feb 1, 2021
1 parent ce5e763 commit 3393f58
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions datagateway_api/common/database/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,9 @@ def __init__(self, instrument_id):
investigation_instrument = aliased(INSTRUMENT)
self.base_query = (
self.base_query.join(FACILITYCYCLE.FACILITY)
.join(FACILITY.INSTRUMENT)
.join(FACILITY.INVESTIGATION)
.join(INVESTIGATION.INVESTIGATIONINSTRUMENT)
.join(FACILITY.instruments)
.join(FACILITY.investigations)
.join(INVESTIGATION.investigationInstruments)
.join(investigation_instrument, INVESTIGATIONINSTRUMENT.INSTRUMENT)
.filter(INSTRUMENT.id == instrument_id)
.filter(investigation_instrument.id == INSTRUMENT.id)
Expand Down Expand Up @@ -419,9 +419,9 @@ def __init__(self, instrument_id):
investigation_instrument = aliased(INSTRUMENT)
self.base_query = (
self.base_query.join(FACILITYCYCLE.FACILITY)
.join(FACILITY.INSTRUMENT)
.join(FACILITY.INVESTIGATION)
.join(INVESTIGATION.INVESTIGATIONINSTRUMENT)
.join(FACILITY.instruments)
.join(FACILITY.investigations)
.join(INVESTIGATION.investigationInstruments)
.join(investigation_instrument, INVESTIGATIONINSTRUMENT.INSTRUMENT)
.filter(INSTRUMENT.id == instrument_id)
.filter(investigation_instrument.id == INSTRUMENT.id)
Expand Down Expand Up @@ -452,9 +452,9 @@ def __init__(self, instrument_id, facility_cycle_id):
investigation_instrument = aliased(INSTRUMENT)
self.base_query = (
self.base_query.join(INVESTIGATION.FACILITY)
.join(FACILITY.FACILITYCYCLE)
.join(FACILITY.INSTRUMENT)
.join(INVESTIGATION.INVESTIGATIONINSTRUMENT)
.join(FACILITY.facilityCycles)
.join(FACILITY.instruments)
.join(INVESTIGATION.investigationInstruments)
.join(investigation_instrument, INVESTIGATIONINSTRUMENT.INSTRUMENT)
.filter(INSTRUMENT.id == instrument_id)
.filter(FACILITYCYCLE.id == facility_cycle_id)
Expand Down Expand Up @@ -489,9 +489,9 @@ def __init__(self, instrument_id, facility_cycle_id):
investigation_instrument = aliased(INSTRUMENT)
self.base_query = (
self.base_query.join(INVESTIGATION.FACILITY)
.join(FACILITY.FACILITYCYCLE)
.join(FACILITY.INSTRUMENT)
.join(INVESTIGATION.INVESTIGATIONINSTRUMENT)
.join(FACILITY.facilityCycles)
.join(FACILITY.instruments)
.join(INVESTIGATION.investigationInstruments)
.join(investigation_instrument, INVESTIGATIONINSTRUMENT.INSTRUMENT)
.filter(INSTRUMENT.id == instrument_id)
.filter(FACILITYCYCLE.id == facility_cycle_id)
Expand Down

0 comments on commit 3393f58

Please sign in to comment.