-
Notifications
You must be signed in to change notification settings - Fork 4
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
Make the Dashboard page compatible with the new data model #1493
Merged
roseeichelmann
merged 15 commits into
18149-data-model-socrata-etls
from
18328_dashboard_data_model
Jul 30, 2024
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f21d573
add years of life lost as field to socrata export view
roseeichelmann 4473149
add permissions to socrata view
roseeichelmann 67bb56f
query the socrata view instead for ytd aggregates
roseeichelmann f71e5c9
rework to use new query
roseeichelmann 54919e3
update this comment
roseeichelmann fab2dde
linting
roseeichelmann 1fe972f
Merge branch '18149-data-model-socrata-etls' into 18328_dashboard_dat…
roseeichelmann 9233a7c
fix this typo
roseeichelmann 23ab6cd
use ISO format and get the time stuff all sorted out
roseeichelmann a55f54e
sort by asc
roseeichelmann ecc66eb
remove year end variable from socrata query
roseeichelmann bd92fe0
refetch temp record table on submit
roseeichelmann 636684e
get data from parent component
roseeichelmann 73ce076
remove year end var
roseeichelmann 0a13a19
lets move this query into its own file in the query folder
roseeichelmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lil typo 😄