Open johnclary opened 9 months ago
cc @ChristinaTremel we will get this assigned in the upcoming sprint
do we have a response from Ivonne about the signals?
@chiaberry @johnclary does anything need to be done here still?
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.
todo: put the date in the turn on date miliestone. mark complete but without a date
Dev + Product Sync 5/29/2024:
Update from meeting with Christina and Ivonne on 6/5/2024
Next steps
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.
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:
signal_id
so that is can be compared to the signal assets in the Data Tracker. Thecomponent_arcgis_online_view
can be used for this! it includes a component URL which will be helpful for AMDTurn On Date
column to the list you created from Moped data ☝️.