cityofaustin / atd-data-tech

Austin Transportation Data & Technology Services
17 stars 2 forks source link

Backfill signal component completion dates #14940

Open johnclary opened 9 months ago

johnclary commented 9 months ago

Now that we have migrated historical signal projects into Moped, there are many signal components which do not have a completion date. We should backfill the component's completion date based on data available in the AMD Data Tracker.

Todo:

  1. Extract a list of all traffic signal or PHB components from Moped where the work type is new and the completion date is null. The list should include the signal feature's signal_id so that is can be compared to the signal assets in the Data Tracker. The component_arcgis_online_view can be used for this! it includes a component URL which will be helpful for AMD
  2. Use the open traffic signals dataset to add the Turn On Date column to the list you created from Moped data ☝️.
  3. Provide this list to Ivonne and ask them to confirm if it's ok that the projects you listed should be updated
  4. Take action based on Ivonne's response
johnclary commented 9 months ago

cc @ChristinaTremel we will get this assigned in the upcoming sprint

chiaberry commented 7 months ago

do we have a response from Ivonne about the signals?

roseeichelmann commented 5 months ago

@chiaberry @johnclary does anything need to be done here still?

chiaberry commented 4 months ago

the milestone for turn on date in moped is the same as the turn on date in data tracker. turning on a signal doesnt necessarily mean complete.

chiaberry commented 4 months ago

todo: put the date in the turn on date miliestone. mark complete but without a date

mddilley commented 3 months ago

Dev + Product Sync 5/29/2024:

mddilley commented 2 months ago

Update from meeting with Christina and Ivonne on 6/5/2024

Next steps

mddilley commented 2 weeks ago

Coming back here to update that this surfaced again when we received an outside request for project data that needed to be filtered on work done after 1/1/2023. It became difficult to query this reliably when project records were missing dates for complete or construction phases.

Query for reference:

SELECT
    p.project_id,
    mp.phase_name,
    mpp.is_current_phase,
    mpp.phase_start,
    me.entity_name,
    plv.project_council_districts
FROM
    moped_proj_phases mpp
    LEFT JOIN moped_phases mp ON mpp.phase_id = mp.phase_id
    LEFT JOIN moped_project p ON mpp.project_id = p.project_id
    LEFT JOIN moped_entity me ON p.project_lead_id = me.entity_id
    LEFT JOIN project_list_view plv ON plv.project_id = p.project_id 
WHERE
    TRUE
    AND is_current_phase = TRUE
    AND phase_start IS NULL
    AND(phase_name = 'Complete'
        OR phase_name = 'Construction')
--  AND 5 = ANY(plv.project_council_districts)

Edit on 8/26/2024: The query above needs to be modified to look at missing Complete phase end dates since that is what we show in the project list view.