bdit_data-sources icon indicating copy to clipboard operation
bdit_data-sources copied to clipboard

Get rid of _value_ attribute for outcome_arr and routepoint_arr

Open chmnata opened this issue 2 years ago • 1 comments

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

chmnata avatar Jul 13 '22 13:07 chmnata

So all that was necessary was changing from __dict__ to __json__() to eliminate this ugliness?

image

radumas avatar Jul 13 '22 13:07 radumas

@chmnata anything required to implement?

radumas avatar Mar 31 '23 18:03 radumas

Nope, the terminal server is already running this version 👍🏼

chmnata avatar Apr 03 '23 14:04 chmnata