Skip to content

fix: refresh entitlements after creating first user #12285

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

Merged
merged 5 commits into from
Feb 23, 2024
Merged

fix: refresh entitlements after creating first user #12285

merged 5 commits into from
Feb 23, 2024

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Feb 23, 2024

Fixes: #6080

This PR extends postFirstUser API operation to refresh entitlements after generating the trial license and creating the first user. Without this change, entitlements are refreshed after 10 minutes interval.

How to test:

  1. Start coder:
rm -rf ./.coderv2 # need a fresh database
./scripts/develop.sh # the script will create the first user and generate the trial license
  1. See entitlements: http://localhost:3000/api/v2/entitlements . Trial should be active.

@mtojek mtojek self-assigned this Feb 23, 2024
@mtojek mtojek marked this pull request as ready for review February 23, 2024 15:52
@mtojek mtojek enabled auto-merge (squash) February 23, 2024 16:34
@mtojek mtojek merged commit 90db668 into main Feb 23, 2024
@mtojek mtojek deleted the 6080-refresh branch February 23, 2024 16:48
@github-actions github-actions bot locked and limited conversation to collaborators Feb 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A refresh the coder server is needed after creating the first user to see Enterprise features
2 participants