Repository navigation
Conversation
| {entitlements!.features.user_limit.actual}/ | ||
| {entitlements!.features.user_limit.limit} users) |
There was a problem hiding this comment.
Would it make sense to give these a similar treatment to licenseUtilizationPercentage and check if we can evaluate them based on whether entitlements is nil?
mafredri
left a comment
There was a problem hiding this comment.
Just a minor suggestion, otherwise LGTM (deferring approval for fe).
| entitlements?.features?.user_limit?.limit | ||
| ? entitlements.features.user_limit.actual / | ||
| entitlements.features.user_limit.limit | ||
| : undefined; |
There was a problem hiding this comment.
Suggestion: Instead of just doing the percentage here, we could prepare the data format in a more convenient way to use in the template:
const licenseInfo =
entitlements?.features?.user_limit?.actual &&
entitlements?.features?.user_limit?.limit
? {
valid: true,
actual: entitlements.features.user_limit.actual,
limit: entitlements.features.user_limit.limit
} : {
valid: false,
actual: 0,
limit: 0,
};Might not need to even init the actual/limit for the zero case but added it just in case.
BrunoQuaresma
left a comment
There was a problem hiding this comment.
It looks good to me. Thanks for digging into the problem and finding the right solution.
One minor thing, that we can do after merge, is to improve the design a bit. cc.: @chrifro
| deploymentDAUs: MockDeploymentDAUResponse, | ||
| invalidExperiments: [], | ||
| safeExperiments: [], | ||
| entitlements: undefined, |
There was a problem hiding this comment.
| entitlements: undefined, |
undefined is JavaScript's equivalent to a zero value, this doesn't do anything
…ralSettingsPageView.tsx Co-authored-by: ケイラ <[email protected]>
This PR is the first iteration towards #15297 We cannot yet show license utilization over time, so we show current license utilization. This is because we don't track user states over time. We only track the current user state. A graph over time filtering by active users would therefore not account for day to day changes in user state and be inaccurate. DB schema migrations and related updates will follow that allow us to show license utilization over time.  --------- Co-authored-by: ケイラ <[email protected]> (cherry picked from commit 7e1ac2e)
- #15589 - #15683 - #15671 --------- Co-authored-by: Hugo Dutka <[email protected]> Co-authored-by: Sas Swart <[email protected]> Co-authored-by: Spike Curtis <[email protected]> Co-authored-by: Cian Johnston <[email protected]>
This PR is the first iteration towards #15297
We cannot yet show license utilization over time, so we show current license utilization.
This is because we don't track user states over time. We only track the current user state. A graph over time filtering by active users would therefore not account for day to day changes in user state and be inaccurate.
DB schema migrations and related updates will follow that allow us to show license utilization over time.