Skip to content

Commit 8e9c997

Browse files
committed
Remove interested in volonteering question from grants form
1 parent 911baa9 commit 8e9c997

File tree

17 files changed

+4659
-3871
lines changed

17 files changed

+4659
-3871
lines changed

backend/api/grants/mutations.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
AgeGroup,
1111
Grant,
1212
GrantType,
13-
InterestedInVolunteering,
1413
Occupation,
1514
)
1615
from api.permissions import IsAuthenticated
@@ -36,7 +35,6 @@ class _GrantErrors:
3635
python_usage: list[str] = strawberry.field(default_factory=list)
3736
community_contribution: list[str] = strawberry.field(default_factory=list)
3837
been_to_other_events: list[str] = strawberry.field(default_factory=list)
39-
interested_in_volunteering: list[str] = strawberry.field(default_factory=list)
4038
needs_funds_for_travel: list[str] = strawberry.field(default_factory=list)
4139
need_visa: list[str] = strawberry.field(default_factory=list)
4240
need_accommodation: list[str] = strawberry.field(default_factory=list)
@@ -109,7 +107,6 @@ class SendGrantInput(BaseGrantInput):
109107
python_usage: str
110108
been_to_other_events: str
111109
community_contribution: str
112-
interested_in_volunteering: InterestedInVolunteering
113110
needs_funds_for_travel: bool
114111
need_visa: bool
115112
need_accommodation: bool
@@ -144,7 +141,6 @@ class UpdateGrantInput(BaseGrantInput):
144141
python_usage: str
145142
been_to_other_events: str
146143
community_contribution: str
147-
interested_in_volunteering: InterestedInVolunteering
148144
needs_funds_for_travel: bool
149145
need_visa: bool
150146
need_accommodation: bool

backend/api/grants/tests/test_send_grant.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def _send_grant(client, conference, conference_code=None, **kwargs):
2929
validationPythonUsage: pythonUsage
3030
validationCommunityContribution: communityContribution
3131
validationBeenToOtherEvents: beenToOtherEvents
32-
validationInterestedInVolunteering: interestedInVolunteering
3332
validationNeedsFundsForTravel: needsFundsForTravel
3433
validationNeedVisa: needVisa
3534
validationNeedAccommodation: needAccommodation
@@ -59,7 +58,6 @@ def _send_grant(client, conference, conference_code=None, **kwargs):
5958
"pythonUsage": grant.python_usage,
6059
"communityContribution": grant.community_contribution,
6160
"beenToOtherEvents": grant.been_to_other_events,
62-
"interestedInVolunteering": grant.interested_in_volunteering,
6361
"needsFundsForTravel": grant.needs_funds_for_travel,
6462
"needVisa": grant.need_visa,
6563
"needAccommodation": grant.need_accommodation,

backend/api/grants/tests/test_update_grant.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def _update_grant(graphql_client, grant, **kwargs):
2828
validationPythonUsage: pythonUsage
2929
validationCommunityContribution: communityContribution
3030
validationBeenToOtherEvents: beenToOtherEvents
31-
validationInterestedInVolunteering: interestedInVolunteering
3231
validationNeedsFundsForTravel: needsFundsForTravel
3332
validationNeedVisa: needVisa
3433
validationNeedAccommodation: needAccommodation
@@ -58,7 +57,6 @@ def _update_grant(graphql_client, grant, **kwargs):
5857
"pythonUsage": grant.python_usage,
5958
"communityContribution": grant.community_contribution,
6059
"beenToOtherEvents": grant.been_to_other_events,
61-
"interestedInVolunteering": grant.interested_in_volunteering,
6260
"needsFundsForTravel": grant.needs_funds_for_travel,
6361
"needVisa": grant.need_visa,
6462
"needAccommodation": grant.need_accommodation,
@@ -101,7 +99,6 @@ def test_update_grant(graphql_client, user):
10199
pythonUsage="random",
102100
communityContribution="Soft toys meetups",
103101
beenToOtherEvents="no",
104-
interestedInVolunteering="yes",
105102
needsFundsForTravel=True,
106103
needVisa=True,
107104
needAccommodation=True,

backend/api/grants/types.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
AgeGroup = strawberry.enum(GrantModel.AgeGroup)
1212
Occupation = strawberry.enum(GrantModel.Occupation)
1313
GrantType = strawberry.enum(GrantModel.GrantType)
14-
InterestedInVolunteering = strawberry.enum(GrantModel.InterestedInVolunteering)
1514

1615

1716
@strawberry.type
@@ -27,7 +26,6 @@ class Grant:
2726
python_usage: str
2827
community_contribution: str
2928
been_to_other_events: str
30-
interested_in_volunteering: InterestedInVolunteering
3129
needs_funds_for_travel: bool
3230
need_visa: bool
3331
need_accommodation: bool
@@ -55,9 +53,6 @@ def from_model(cls, grant: GrantModel) -> Grant:
5553
python_usage=grant.python_usage,
5654
community_contribution=grant.community_contribution,
5755
been_to_other_events=grant.been_to_other_events,
58-
interested_in_volunteering=InterestedInVolunteering(
59-
grant.interested_in_volunteering
60-
),
6156
needs_funds_for_travel=grant.needs_funds_for_travel,
6257
need_visa=grant.need_visa,
6358
need_accommodation=grant.need_accommodation,

0 commit comments

Comments
 (0)