Skip to content

Templates USED BY count is calculated not properly in some cases #1830

Closed
@nadzeyav

Description

@nadzeyav

OS Information

  • OS: Windows 10
  • Browser (if applicable): CHROME, FIREFOX
  • Architecture:
  • coder --version:

Coder v0.0.0-devel+1361c13 Thu May 26 23:01:47 UTC 2022
1361c13

Steps to Reproduce

UI (I did in dev mode as have no admin permissions on dev.coder.com) steps for CLI on dev.coder com in notes

  1. Create a new template
  2. Make sure you have 2 users to work with: User A and User B
  3. Login as User A and look at templates list: 0 should be displayed for a new template
  4. Create a workspace from template
  5. Go to Templates -> 1 developer should be in used by count
  6. Login as User B
  7. Create a workspace from the same template
  8. Go to templates page

Expected

Used by 2 Developers is displayed

Actual

Used by 1 is displayed

Logs

Screenshot

Coder.mp4

Notes

Steps from CLI for dev.coder.com
I did it in dev mode as have no Admin permissions in dev.coder.com to make a clear test but see below

  1. I have no workspaces at all and below is templates usage
    image

  2. I create one workspace from coder template
    image

  3. I expect to see that count of developers that used this template is updated, but it is not:
    image

Metadata

Metadata

Assignees

Labels

apiArea: HTTP API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions