bdit_data-sources
bdit_data-sources copied to clipboard
Get rid of _value_ attribute for outcome_arr and routepoint_arr
What this pull request accomplishes:
- Got rid of value attribute in json for outcome and routepoint column in
bluetooth.all_analyses
- e.g.
SELECT all_analyses.analysis_id,
(all_analyses.route_points -> 0) ->> 'id'::text AS start_route_point_id,
(all_analyses.route_points -> 0) ->> 'name'::text AS start_detector,
(all_analyses.route_points -> 1) ->> 'id'::text AS end_route_point_id,
(all_analyses.route_points -> 1) ->> 'name'::text AS end_detector
FROM bluetooth.all_analyses
returns the below correctly
analysis_id | start_route_point_id | start_detector | end_route_point_id | end_detector |
---|---|---|---|---|
1387957 | 116755 | C | 116754 | B |
Issue(s) this solves:
- #131
So all that was necessary was changing from __dict__
to __json__()
to eliminate this ugliness?
@chmnata anything required to implement?
Nope, the terminal server is already running this version 👍🏼