bcgov / nr-fom

Forestry Operations Map
Apache License 2.0
0 stars 1 forks source link

FOM operational support: change FOM status #620

Closed MCatherine1994 closed 5 months ago

MCatherine1994 commented 5 months ago

Describe the task As required by Julius, need to update the status of one FOM.

Acceptance Criteria

Additional context

Image

MCatherine1994 commented 5 months ago

Updated the workflow_state_code to COMMENT_OPEN for FOM 1444 and FOM 1445

Image

Image

MCatherine1994 commented 5 months ago

From Basil:

FYI, I've confirmed the FOM cache only refreshes daily ( @Cron('45 9 * ') // Run at 9:45am UTC each day, shortly after the batch which runs at 9:00am UTC)

I've confirmed that the FOMs 1444, 1445 do NOT show up in FOM public for the default searches, due to the stale cache. These FOM do show up if you search specifically for the FOM id.

Basil did a cache refresh for FOM API. Added to the acceptance criteria so we will remember next time

ianliuwk1019 commented 5 months ago

The default search does need a "Start rollout" in OpenShift to refresh the cache (as we saw Basil performed that) or it will be (once a day). (Public only shows up FOM when Commenting-Open). Using other search query as FOM # search will have it shows up (after performing the status fix).

Wondering if we need a feature (is it allowed?) to let only someone with higher privilege staff like Julius to fix this kind of status change issue. @basilv

basilv commented 5 months ago

To clarify further, using other search queries will not necessarily bypass the cache - if that specific search query was performed earlier in the day already, then its results would already be cached.