You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We plan to send the display status as part of the API response along with other workspace details, and use it in the frontend directly. This should get rid of the duplicated logic.
The text was updated successfully, but these errors were encountered:
This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity.
As per the discussion on #2743, we want to use consolidated logic from backend to compute workspace status to be displayed in UI as well as CLI.
Currently, frontend computes the display status itself, and backend also has duplicated logic after #2743.
Frontend code
coder/site/src/util/workspace.ts
Lines 22 to 54 in 482feef
Backend code
coder/codersdk/workspacedisplaystatus.go
Lines 1 to 48 in 28d0f4c
We plan to send the display status as part of the API response along with other workspace details, and use it in the frontend directly. This should get rid of the duplicated logic.
The text was updated successfully, but these errors were encountered: