Skip to content

Commit d667398

Browse files
committed
Only allow 3 tags in the CFP
1 parent bc2f024 commit d667398

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

backend/api/submissions/mutations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ def validate(self, conference: Conference):
111111

112112
if not self.tags:
113113
errors.add_error("tags", "You need to add at least one tag")
114-
elif len(self.tags) > 5:
115-
errors.add_error("tags", "You can only add up to 5 tags")
114+
elif len(self.tags) > 3:
115+
errors.add_error("tags", "You can only add up to 3 tags")
116116

117117
if not self.speaker_level:
118118
errors.add_error(

backend/api/submissions/tests/test_send_submission.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ def test_submit_talk_only_allows_5_tags(graphql_client, user):
11921192
assert resp["data"]["sendSubmission"]["__typename"] == "SendSubmissionErrors"
11931193

11941194
assert (
1195-
"You can only add up to 5 tags"
1195+
"You can only add up to 3 tags"
11961196
in resp["data"]["sendSubmission"]["errors"]["validationTags"]
11971197
)
11981198

frontend/src/components/tags-select/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export const TagsSelect = ({ tags, onChange }: TagsSelectProps) => {
164164
value={value}
165165
onChange={(tags) => onChange?.(tags || [])}
166166
isMulti={true}
167-
isOptionDisabled={() => value.length >= 5}
167+
isOptionDisabled={() => value.length >= 3}
168168
name="tags"
169169
options={proposalTags}
170170
placeholder="Add tags"

frontend/src/locale/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ Failing to notify us may impact your eligibility for financial aid at future eve
421421
"cfp.viewSubmission": "Open submission",
422422
"cfp.tagsLabel": "Tags",
423423
"cfp.tagsDescription":
424-
"Use up to 5 tags to describe what your proposal is about. Examples are 'Django, GraphQL'.",
424+
"Use up to 3 tags to describe what your proposal is about. Examples are 'Web Frameworks, API'.",
425425
"cfp.submissionSent": "Proposal sent!",
426426
"cfp.selectDuration": "Select a duration",
427427
"cfp.selectTrack": "Select a track",
@@ -1254,7 +1254,7 @@ The sooner you buy your ticket, the more you save!`,
12541254
"Puoi inviare la tua proposta in più lingue se lo desideri. I votatori vedranno la lingua che si adatta alle loro preferenze. Non duplicare le tue proposte per lingua o potrebbero essere annullate.",
12551255
"cfp.tagsLabel": "Tags",
12561256
"cfp.tagsDescription":
1257-
"Utilizza fino a 5 tag per descrivere l'argomento della tua proposta. Esempi sono 'Django, GraphQL'.",
1257+
"Utilizza fino a 3 tag per descrivere l'argomento della tua proposta. Esempi sono 'Web Frameworks, API'.",
12581258
"cfp.submissionSent": "Proposal inviata!",
12591259
"cfp.submit": "Invia",
12601260
"cfp.minutes": "minuti",

0 commit comments

Comments
 (0)