Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 8c6367d

Browse files
committed
remove deprecated field and related resolver
1 parent f80d9d2 commit 8c6367d

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

graphql_api/types/plan/plan.graphql

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ type Plan {
1111
isTrialPlan: Boolean!
1212
marketingName: String!
1313
monthlyUploadLimit: Int
14-
planName: String!
15-
@deprecated(
16-
reason: "Plan representations have used `value` for a while, making the frontend code hard to change"
17-
)
1814
planUserCount: Int
1915
pretrialUsersCount: Int
2016
tierName: String!

graphql_api/types/plan/plan.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ def resolve_marketing_name(plan_service: PlanService, info) -> str:
3939
return plan_service.marketing_name
4040

4141

42-
@plan_bindable.field("planName")
43-
def resolve_plan_name(plan_service: PlanService, info) -> str:
44-
return plan_service.plan_name
45-
46-
4742
@plan_bindable.field("value")
4843
def resolve_plan_name_as_value(plan_service: PlanService, info) -> str:
4944
return plan_service.plan_name

graphql_api/types/plan_representation/plan_representation.graphql

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
type PlanRepresentation {
22
marketingName: String!
3-
planName: String!
4-
@deprecated(
5-
reason: "Plan representations have used `value` for a while, making the frontend code hard to change"
6-
)
73
value: String!
84
billingRate: String
95
baseUnitPrice: Int!

graphql_api/types/plan_representation/plan_representation.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ def resolve_marketing_name(plan_data: PlanData, info) -> str:
1717
return plan_data.marketing_name
1818

1919

20-
@plan_representation_bindable.field("planName")
21-
def resolve_plan_name(plan_data: PlanData, info) -> str:
22-
return plan_data.value
23-
24-
2520
@plan_representation_bindable.field("value")
2621
def resolve_plan_value(plan_data: PlanData, info) -> str:
2722
return plan_data.value

0 commit comments

Comments
 (0)