Skip to content

Conversation

@jsalaber
Copy link
Contributor

@jsalaber jsalaber commented Jul 9, 2025

Changes

  • added stale comment to mark the variables that are stale in the types file

@jsalaber jsalaber requested review from a team and jonathannorris July 9, 2025 17:49
@jsalaber jsalaber force-pushed the test-code-cleanup-cli branch from 6b4e36d to 09cc8de Compare July 9, 2025 17:49
readonly: z.boolean(),
settings: FeatureSettings.partial().optional(),
sdkVisibility: FeatureSDKVisibility.optional(),
staleness: z
Copy link
Member

Choose a reason for hiding this comment

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

we really shouldn't manually update this zodClient.ts file as it's generated from scripts/generate-zodios-client.sh. I have a background agent working on updating that script and fixing all the new type errors, but it will be a larger PR.

@jsalaber jsalaber force-pushed the test-code-cleanup-cli branch from 09cc8de to 0b33c52 Compare July 11, 2025 15:23
@jsalaber jsalaber requested a review from jonathannorris July 11, 2025 15:25
if (reason === 'unused') {
return variable.defaultValue
} else if (reason === 'released') {
if (feature.staleness?.metaData?.releaseVariation) {
Copy link
Member

Choose a reason for hiding this comment

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

if there is no released variation, maybe select the one with the highest distribution % or number of evaluations if we can fetch that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

would maybe like to add that as metadata from the backend instead of figuring out here in the cli

@jsalaber jsalaber force-pushed the test-code-cleanup-cli branch from 0b33c52 to 3a6c4b0 Compare July 11, 2025 16:36
@jsalaber jsalaber requested a review from jonathannorris July 11, 2025 16:36
@jsalaber jsalaber force-pushed the test-code-cleanup-cli branch from 3a6c4b0 to 9449e95 Compare July 14, 2025 13:34
)

this.features = [
...(await fetchAllCompletedOrArchivedFeatures(
Copy link
Contributor

Choose a reason for hiding this comment

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

promise.all these two so we its not a waterfall

@jsalaber jsalaber force-pushed the test-code-cleanup-cli branch from 9449e95 to 185b25a Compare July 14, 2025 14:19
@jsalaber jsalaber requested a review from suthar26 July 14, 2025 14:27
this.authToken,
this.projectKey,
)
this.features = await Promise.all([
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:
instead of the .then() you can just get the completedFeatures and staleFeatures as a return value and then have the this.features be a spread of both like you had before

@jsalaber jsalaber requested a review from suthar26 July 14, 2025 14:59
@jsalaber jsalaber force-pushed the test-code-cleanup-cli branch from 185b25a to b2eb873 Compare July 14, 2025 15:00
@jsalaber jsalaber force-pushed the test-code-cleanup-cli branch from b2eb873 to 3412ad1 Compare July 14, 2025 15:15
@jsalaber jsalaber force-pushed the test-code-cleanup-cli branch from 3412ad1 to d4ad87d Compare July 14, 2025 15:22
@jsalaber jsalaber merged commit dae3a92 into main Jul 14, 2025
8 checks passed
@jsalaber jsalaber deleted the test-code-cleanup-cli branch July 14, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants