Skip to content

Conversation

johnsimons
Copy link
Member

@johnsimons johnsimons commented Mar 7, 2025

This is to support future license models based on monthly usage.

This PR is backward-compatible, but in order to test it, you need Particular/ServiceControl#4863

@johnsimons johnsimons requested a review from mikeminutillo March 7, 2025 03:33
@johnsimons johnsimons self-assigned this Mar 7, 2025
.sort(sortItem?.comparer);
});
// We can remove this hidden toggle once we have new edition licenses.
const hiddenFeatureToggle = useHiddenFeature(["ArrowUp", "ArrowUp", "ArrowDown", "ArrowDown"]);
Copy link
Member Author

Choose a reason for hiding this comment

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

I have added a hidden keys combo to turn on this feature for testing purposes

});
// We can remove this hidden toggle once we have new edition licenses.
const hiddenFeatureToggle = useHiddenFeature(["ArrowUp", "ArrowUp", "ArrowDown", "ArrowDown"]);
const showMonthly = computed(() => license.edition === "MonthlyUsage" || hiddenFeatureToggle.value);
Copy link
Member Author

Choose a reason for hiding this comment

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

The name of the "edition" needs to be updated once we decide.

};

const license = reactive<License>(emptyLicense);
class emptyLicense implements License {
Copy link
Member Author

Choose a reason for hiding this comment

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

I have decided to refactor this type to be a class so we can reference its data directly.
The previous implementation was not giving the correct result.

@johnsimons johnsimons marked this pull request as ready for review March 10, 2025 00:00
@johnsimons johnsimons enabled auto-merge March 10, 2025 06:45
@johnsimons johnsimons added the Type: Feature Type: Feature label Mar 10, 2025
@johnsimons johnsimons merged commit 0c22ded into master Mar 10, 2025
5 checks passed
@johnsimons johnsimons deleted the john/month_usage branch March 10, 2025 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Type: Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants