feat: Fetch Appsmith version when browser tab comes on focus #16153
feat: Fetch Appsmith version when browser tab comes on focus #16153
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Unable to find test scripts. Please add necessary tests to the PR. |
|
Unable to find test scripts. Please add necessary tests to the PR. |
1 similar comment
|
Unable to find test scripts. Please add necessary tests to the PR. |
|
Unable to find test scripts. Please add necessary tests to the PR. |
1 similar comment
|
Unable to find test scripts. Please add necessary tests to the PR. |
|
Unable to find test scripts. Please add necessary tests to the PR. |
|
Unable to find test scripts. Please add necessary tests to the PR. |
|
/ok-to-test sha=04d43f9 |
|
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2901315938. |
|
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2901315938. Click to view performance test results
|
|
# Conflicts: # app/client/src/sagas/index.tsx
|
Unable to find test scripts. Please add necessary tests to the PR. |
|
/ok-to-test sha=6763ecc |
|
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2932997209. |
|
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2932997209. Click to view performance test results
|
|
After trying steps to test provided by @hetunandu -
(While doing the above steps, at point 7b I get an error on terminal - popd: too many arguments) |
|
Hey, @hetunandu thanks for working on this. QQ: Did we also verify if the Concern: If https://raphael-leger.medium.com/react-webpack-chunkloaderror-loading-chunk-x-failed-ac385bd110e0 |
In my debugging, I never saw index.html being cached. |
|
Trying the following on QA localhost environment - Stop docker (local instance). Check version.js in appsmith/app/rts/src .. It should have the text - export const VERSION = SNAPSHOT; Now - go to some other tab in your browser. Update the rts/version.js (appsmith/app/rts/src) such that it reads - a-pushd app/rts > /dev/null && ./build.sh > /dev/null b-popd c-(docker stop appsmith || true) && (docker rm appsmith || true) docker run -d --name appsmith -p 80:80 -v "$PWD/stacks:/appsmith-stacks" appsmith/appsmith-ce:local-testing Now on coming back to the localhost tab, check for toast message. Observation - no toast message is seen. No toast message either on Refresh. Update - Yatin tried on his system his server itself did not come up. Attached log - |
@btsgh Is this line correct? I'm asking because we have to set |
Hmm. I tried the steps with this statement added in the version.js - |
btsgh
left a comment
There was a problem hiding this comment.
Tried once again with @hetunandu - We started from a clean slate (deleting old files / docker container etc) and ran all the scripts mentioned in the above comments again. The test was successful this time. When there was a difference in the client version and the rts version, the toast message correctly came up. Also when the versions were the same, the toast message did not come up.
Description
Problem:
Solution:
Fixes #9740
Fixes #16235
Type of change
How Has This Been Tested?
Manual Test plan:
Run RTS and Appsmith client locally
Switch to another tab on the browser
Update the version number on the RTS code (version.js)
Come back to the Appsmith tab
Assert: A toast is shown to indicate a refresh is needed to update the client
Checklist: