Skip to content

CFP form: ask for the topic, stop asking for tags - #4873

Merged
marcoacierno merged 3 commits into
mainfrom
topics
Nov 30, 2026
Merged

marcoacierno merged 3 commits into
mainfrom
topics

Conversation

@marcoacierno

@marcoacierno marcoacierno commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

What

Topic. The CFP form asks for the proposal's topic again.

  • CfpForm query fetches the conference's topics. ProposalSection shows a required "Topic" select before Audience Level.
  • The select renders only when the conference has topics. Conference.topics is optional, and a required select with no options would block every submission.
  • Topic is sent on submit and edit. On edit it is prefilled from submission.topic?.id.
  • SendSubmission returns the topic validation error.
  • New label and description in EN and IT. The description explains that topics are a guide and not restrictive.
  • Fixes a bug: the edit page never sent topic, and update_submission assigns it unconditionally, so every edit cleared the submission's topic.

Tags. The CFP form no longer asks for tags.

  • Removed the tags field, TagsSelect (its only consumer), the Tags query prefetch on /cfp and the edit page, and the cfp.tags* locale keys.
  • Backend: validate() no longer requires at least one tag. The max-3 check stays.
  • UpdateSubmissionInput.tags is now nullable with default null, and is applied only when sent. Editing a submission from the form therefore keeps its existing tags. Without this, every edit would clear them.
  • Tag display, voting filters and the model are unchanged.

Deploy order. The backend must ship before or with the frontend. The new form against the old API fails every submission with "You need to add at least one tag", an error the form no longer displays.

ToDo

  • Manually test submit and edit, on a conference with topics and on one without.
  • Topic description says to submit even if nothing fits, but the select is required. Add an "Other" topic in the admin, or make the select optional.
  • Decide whether the API should require topic when the conference has topics.
  • react-select is now unused in the frontend. Drop it in a follow-up with a lockfile update.

Show a required topic select when the conference has topics configured,
and send the topic on both submit and edit. The edit page was omitting
topic, and update_submission assigns it unconditionally, so every edit
cleared the submission's topic.
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
pycon Ready Ready Preview Nov 30, 2026 12:22pm UTC

Request Review

@claude

claude Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

This PR removes tags from the CFP flow (the backend no longer requires them, and the frontend tag select is deleted). It replaces them with a topic select in the form.

Issues

  • Topic isn't enforced on the backend. The form marks topic as required, but validate() in backend/api/submissions/mutations.py only checks that the topic is valid when one is given. A direct API call, or a conference with topics where the client omits the field, can create a submission with no topic. If topic is meant to be required when the conference has topics, validate it server-side. If it isn't, drop required from the select.
  • No test for the new topic UI path. The changes cover omitting tags on update and sending empty tags on create. Nothing covers sending a topic to updateSubmission or sendSubmission. There's also no test for the invalid-topic error that the form now surfaces as validationTopic.
  • Edit page can clear topic by accident. update_submission sets instance.topic_id = input.topic unconditionally. If the edit form submits an undefined topic, for example when submission.topic is null or the conference has no topics, it overwrites the stored topic with None. Tags got the None guard in this PR, but topic didn't.

Remove the tags field from the CFP form and drop the backend rule that
required at least one tag. UpdateSubmissionInput.tags is now nullable and
only applied when sent, so editing a submission from the form keeps the
tags it already has instead of clearing them.
@marcoacierno marcoacierno changed the title Ask for the topic in the CFP form CFP form: ask for the topic, stop asking for tags Nov 30, 2026
@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.61%. Comparing base (a106392) to head (33a5b88).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4873      +/-   ##
==========================================
- Coverage   92.61%   92.61%   -0.01%     
==========================================
  Files         360      360              
  Lines       10960    10959       -1     
  Branches      953      953              
==========================================
- Hits        10151    10150       -1     
  Misses        684      684              
  Partials      125      125              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@marcoacierno
marcoacierno merged commit 937eb20 into main Nov 30, 2026
8 of 10 checks passed
@marcoacierno
marcoacierno deleted the topics branch November 30, 2026 13:25

This branch was successfully deployed

1 active deployment
Preview — 33a5b88d Deployed Nov 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant