-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1493 from cityofaustin/18328_dashboard_data_model
Make the Dashboard page compatible with the new data model
- Loading branch information
Showing
8 changed files
with
215 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
142 changes: 142 additions & 0 deletions
142
atd-vzd/metadata/databases/default/tables/public_socrata_export_crashes_view.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,145 @@ | ||
table: | ||
name: socrata_export_crashes_view | ||
schema: public | ||
select_permissions: | ||
- role: editor | ||
permission: | ||
columns: | ||
- bicycle_death_count | ||
- bicycle_serious_injury_count | ||
- death_cnt | ||
- law_enf_fatality_count | ||
- micromobility_death_count | ||
- micromobility_serious_injury_count | ||
- motorcycle_death_count | ||
- motorcycle_serious_injury_count | ||
- motor_vehicle_death_count | ||
- motor_vehicle_serious_injury_count | ||
- nonincap_injry_cnt | ||
- non_injry_cnt | ||
- other_death_count | ||
- other_serious_injury_count | ||
- pedestrian_death_count | ||
- pedestrian_serious_injury_count | ||
- poss_injry_cnt | ||
- sus_serious_injry_cnt | ||
- tot_injry_cnt | ||
- unkn_injry_cnt | ||
- years_of_life_lost | ||
- crash_fatal_fl | ||
- onsys_fl | ||
- private_dr_fl | ||
- road_constr_zone_fl | ||
- crash_id | ||
- crash_sev_id | ||
- crash_speed_limit | ||
- id | ||
- latitude | ||
- longitude | ||
- address_primary | ||
- address_secondary | ||
- case_id | ||
- crash_timestamp | ||
- crash_timestamp_ct | ||
- point | ||
- rpt_block_num | ||
- rpt_street_name | ||
- rpt_street_sfx | ||
- units_involved | ||
filter: {} | ||
allow_aggregations: true | ||
comment: "" | ||
- role: readonly | ||
permission: | ||
columns: | ||
- bicycle_death_count | ||
- bicycle_serious_injury_count | ||
- death_cnt | ||
- law_enf_fatality_count | ||
- micromobility_death_count | ||
- micromobility_serious_injury_count | ||
- motorcycle_death_count | ||
- motorcycle_serious_injury_count | ||
- motor_vehicle_death_count | ||
- motor_vehicle_serious_injury_count | ||
- nonincap_injry_cnt | ||
- non_injry_cnt | ||
- other_death_count | ||
- other_serious_injury_count | ||
- pedestrian_death_count | ||
- pedestrian_serious_injury_count | ||
- poss_injry_cnt | ||
- sus_serious_injry_cnt | ||
- tot_injry_cnt | ||
- unkn_injry_cnt | ||
- years_of_life_lost | ||
- crash_fatal_fl | ||
- onsys_fl | ||
- private_dr_fl | ||
- road_constr_zone_fl | ||
- crash_id | ||
- crash_sev_id | ||
- crash_speed_limit | ||
- id | ||
- latitude | ||
- longitude | ||
- address_primary | ||
- address_secondary | ||
- case_id | ||
- crash_timestamp | ||
- crash_timestamp_ct | ||
- point | ||
- rpt_block_num | ||
- rpt_street_name | ||
- rpt_street_sfx | ||
- units_involved | ||
filter: {} | ||
allow_aggregations: true | ||
comment: "" | ||
- role: vz-admin | ||
permission: | ||
columns: | ||
- bicycle_death_count | ||
- bicycle_serious_injury_count | ||
- death_cnt | ||
- law_enf_fatality_count | ||
- micromobility_death_count | ||
- micromobility_serious_injury_count | ||
- motorcycle_death_count | ||
- motorcycle_serious_injury_count | ||
- motor_vehicle_death_count | ||
- motor_vehicle_serious_injury_count | ||
- nonincap_injry_cnt | ||
- non_injry_cnt | ||
- other_death_count | ||
- other_serious_injury_count | ||
- pedestrian_death_count | ||
- pedestrian_serious_injury_count | ||
- poss_injry_cnt | ||
- sus_serious_injry_cnt | ||
- tot_injry_cnt | ||
- unkn_injry_cnt | ||
- years_of_life_lost | ||
- crash_fatal_fl | ||
- onsys_fl | ||
- private_dr_fl | ||
- road_constr_zone_fl | ||
- crash_id | ||
- crash_sev_id | ||
- crash_speed_limit | ||
- id | ||
- latitude | ||
- longitude | ||
- address_primary | ||
- address_secondary | ||
- case_id | ||
- crash_timestamp | ||
- crash_timestamp_ct | ||
- point | ||
- rpt_block_num | ||
- rpt_street_name | ||
- rpt_street_sfx | ||
- units_involved | ||
filter: {} | ||
allow_aggregations: true | ||
comment: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { gql } from "apollo-boost"; | ||
|
||
export const GET_TEMP_RECORDS = gql` | ||
query getTempRecords { | ||
crashes( | ||
where: { is_temp_record: { _eq: true } } | ||
order_by: { record_locator: desc } | ||
) { | ||
record_locator | ||
case_id | ||
crash_timestamp | ||
updated_by | ||
updated_at | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.