fecgov / fecfile-web-app

Other
7 stars 4 forks source link

Front-end should poll app to see if update available #2158

Open exalate-issue-sync[bot] opened 1 month ago

exalate-issue-sync[bot] commented 1 month ago

Set up the front end to poll fecfile-web-app and refresh itself when detecting a new deploy.

When we deploy new builds of the app, the file bundle that the user’s browser downloads has a unique filename. If the user has the app open, and a new deploy occurs to cloud.gov, the open app will not have urls to the new bundle files. This can cause app failures as the front-end may be out of date and try to lazy load files that no longer exist.

See here for techinical details on how to do this: https://www.syncfusion.com/blogs/post/propagate-front-end-updates

Verify polling will not cause undesired performance implications

Preferably we don’t download the whole app when checking the “hash”

QA Notes

Devs will add screenshots for QA verification

DEV Notes

When looking at the homepage, the build hash is available in the HTML

!image-20240904-150434.png|width=1359,height=287,alt="image-20240904-150434.png"!

Design

null

See full ticket and images here: FECFILE-1564

exalate-issue-sync[bot] commented 3 weeks ago

akhorsand commented: [~accountid:712020:2a1493e5-adee-45bd-b27e-868a5c8d3f62] this ticket has points. Is there a follow-up needed before moving it to ASA? Also, what is the definition of done for the ticket (for example, do we have a metric for undesired performance implications? How do we follow-up if that’s the case?)

exalate-issue-sync[bot] commented 3 weeks ago

Todd Lees commented: The follow up was to add the last two sentences:

{quote}Verify polling will not cause undesired performance implications

Preferably we don’t download the whole app when checking the “hash”{quote}

done is the first sentence:

{quote}Set up the front end to poll fecfile-web-app and refresh itself when detecting a new deploy.{quote}

To test it we will have to have someone with a tab open, then deploy to the web app. It’s a success when it polls the web app server and notices that it’s out of date and refreshes.

Undesired performance implications would take the form of spikes on our application instance on cloud.gov

exalate-issue-sync[bot] commented 4 days ago

Todd Lees commented: sending back to in progress to either remove out-of-ticket features or to get design to add them in to the ticket

[~accountid:61b0b42cc510bc006b5c03ed] [~accountid:627ebeb2236090006f61d37d] could you sync next monday to determine if the confirmation dialog should be added to this ticket?