-
Notifications
You must be signed in to change notification settings - Fork 0
bug: ui: workspace view does not automatically update when devcontainer starts #594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is there any field in the workspace response we could use to detect when to refetch the devcontainers? We use a websocket connection to update the workspace status in the UI, if we have an attribute that could tell us when a devcontainer status changed, it would be enough for the FE to know when to reload the devontainers data. |
Hey @BrunoQuaresma During the weekly update today we have decided that this bug should be fixed before we expose Early Access to the world. Given the release is in a week, and a code freeze is today, this does not leave us that much time to implement the "proper" mechanism. We do not have any trigger today, so the team suggested the frontend periodically polls the backend for updates on the devcontainers. The backend seems to be caching this information with 10s resolution, so if we use the 10s polling interval it should be enough. Also, we should only do this polling in case we deal with a devcontainer-enabled template. Can you pull such a temporary solution for 2.22 until we solve this properly on the backend? @matifali FYI |
Sure thing! How do I know when a template is "devcontainer-enabled"? |
@BrunoQuaresma I just merged handling for this, perhaps the return response could be changed to inform the code of it being enabled or not? |
Problem
When starting a workspace with the new Early Access Devcontainers feature, the workspace view does not automatically update when a devcontainer starts or stops.
Steps to reproduce
Create a workspace using this template: https://dev.coder.com/templates/coder/maf-devcontainers
For ease of reproduction you can use https://github.com/coder/envbuilder-starter-devcontainer as it is relatively quick to build.
Observe that when the workspace finishes building and the workspace build logs show a log line similar to the below, no containers show up in the UI:
Upon refreshing the page, the container will show up in the UI.
The text was updated successfully, but these errors were encountered: