Skip to content

feat: use Datastore for user usage#1218

Merged
peterpeterparker merged 25 commits intomainfrom
feat/user-db-for-user-usage
Feb 10, 2025
Merged

feat: use Datastore for user usage#1218
peterpeterparker merged 25 commits intomainfrom
feat/user-db-for-user-usage

Conversation

@peterpeterparker
Copy link
Contributor

@peterpeterparker peterpeterparker commented Feb 9, 2025

Motivation

I think it's too early to optimize with adding an addition stable tree map plus it's a bit ironic to use another tree map when developers themselves use the main DB tree map.

Therefore this PR changes the approach for tracking and asserting user usage by using the DB tree map as well.

Features wise there is one change in regard of previous, not yet delivered, implementation: the usage will not be readable for controllers only, previous a user could read their own usage. I think that's acceptable and not fundamentaly incorrect at this point as well.

@peterpeterparker peterpeterparker marked this pull request as ready for review February 10, 2025 15:53
@peterpeterparker peterpeterparker merged commit 640dbd5 into main Feb 10, 2025
14 checks passed
@peterpeterparker peterpeterparker deleted the feat/user-db-for-user-usage branch February 10, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant