Skip to content

Conversation

@anisaoshafi
Copy link
Collaborator

We track license validity as part of the toolkit status trackers, which relies on localstack license info response.

If one has not interacted with localstack instance (e.g. started localstack or used some service) for a day (which is the TTL of the license cache), the response will include license validity: invalid.
That causes licenseTracker to evaluate to "setup_required", which in turn evaluates the overall status of the toolkit to setup_required.
As a result, the setup wizard notification opens, which is not the right behaviour (screenshot attached).

To avoid this issue, we first activate the license (localstack license activate), so it refreshes the license, before actually performing the validity check.

[Note: Originally opened in this PR which had to be reverted to simplify unblocking main (because there was one commit previous to this).]

Before After
Screenshot 2025-11-07 at 11 59 57 image

@anisaoshafi anisaoshafi requested a review from joe4dev November 7, 2025 11:42
@anisaoshafi anisaoshafi added the bug Something isn't working label Nov 7, 2025
Copy link
Collaborator

@skyrpex skyrpex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love the solution. Great job :)

Do we want to add the min delay here, though?

@anisaoshafi
Copy link
Collaborator Author

anisaoshafi commented Nov 7, 2025

Do we want to add the min delay here, though?

No we don't need it. mindelay was mostly about the setup phase so the progress messages could be visible for at least a moment if they were executed too quickly. Removed it, thank you!

@anisaoshafi anisaoshafi merged commit 9c18ee2 into main Nov 7, 2025
3 checks passed
@anisaoshafi anisaoshafi deleted the fix-license-check branch November 7, 2025 13:00
@anisaoshafi anisaoshafi mentioned this pull request Nov 11, 2025
anisaoshafi added a commit that referenced this pull request Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants