Skip to content

Commit

Permalink
chore(feature-flags): plumb feature flags to v1
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Jan 16, 2025
1 parent 5c43336 commit 61d61c1
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 19 deletions.
2 changes: 2 additions & 0 deletions fern/apis/fdr/definition/navigation/v1/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

imports:
commons: ../../commons.yml
latest: ../latest/__package__.yml

types:
Slug:
Expand Down Expand Up @@ -325,6 +326,7 @@ types:
extends:
- WithNodeId
- WithPermissions
- latest.WithFeatureFlags
properties:
title: string
slug: Slug
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions packages/fdr-sdk/src/navigation/migrators/v1ToV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class FernNavigationV1ToLatest {
viewers: node.viewers,
orphaned: node.orphaned,
roles: node.roles,
featureFlags: undefined,
featureFlags: node.featureFlags,
};

return latest;
Expand Down Expand Up @@ -119,7 +119,7 @@ export class FernNavigationV1ToLatest {
pointsTo: node.pointsTo ? FernNavigation.Slug(node.pointsTo) : undefined,
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand All @@ -146,7 +146,7 @@ export class FernNavigationV1ToLatest {
noindex: node.noindex,
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand Down Expand Up @@ -186,7 +186,7 @@ export class FernNavigationV1ToLatest {
pointsTo: node.pointsTo ? FernNavigation.Slug(node.pointsTo) : undefined,
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand Down Expand Up @@ -304,7 +304,7 @@ export class FernNavigationV1ToLatest {
subtitle: node.subtitle,
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand Down Expand Up @@ -363,7 +363,7 @@ export class FernNavigationV1ToLatest {
noindex: node.noindex,
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand Down Expand Up @@ -401,7 +401,7 @@ export class FernNavigationV1ToLatest {
noindex: node.noindex,
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand Down Expand Up @@ -447,7 +447,7 @@ export class FernNavigationV1ToLatest {
pointsTo: node.pointsTo ? FernNavigation.Slug(node.pointsTo) : undefined,
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand Down Expand Up @@ -480,7 +480,7 @@ export class FernNavigationV1ToLatest {
noindex: node.noindex,
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand All @@ -504,7 +504,7 @@ export class FernNavigationV1ToLatest {
year: node.year,
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand All @@ -528,7 +528,7 @@ export class FernNavigationV1ToLatest {
month: node.month,
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand All @@ -554,7 +554,7 @@ export class FernNavigationV1ToLatest {
noindex: node.noindex,
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand Down Expand Up @@ -594,7 +594,7 @@ export class FernNavigationV1ToLatest {
availability: this.#availability(node.availability),
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand Down Expand Up @@ -628,7 +628,7 @@ export class FernNavigationV1ToLatest {
isResponseStream: node.isResponseStream,
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand Down Expand Up @@ -673,7 +673,7 @@ export class FernNavigationV1ToLatest {
webSocketId: node.webSocketId,
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand Down Expand Up @@ -705,7 +705,7 @@ export class FernNavigationV1ToLatest {
webhookId: node.webhookId,
viewers: node.viewers,
orphaned: node.orphaned,
featureFlags: undefined,
featureFlags: node.featureFlags,
};
return latest;
};
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 61d61c1

Please sign in to comment.