Skip to content

feat(ugc): sourcing form answers, +questions, strict filter values (v3.2.0) - #229

Merged
MikeChenWM merged 1 commit into
mainfrom
MikeChenWM/sourcing-answers
Nov 19, 2026
Merged

MikeChenWM merged 1 commit into
mainfrom
MikeChenWM/sourcing-answers

Conversation

@MikeChenWM

Copy link
Copy Markdown
Contributor

Context

Trying ugc sourcing the way ops and agents use it turned up two gaps: misspelt filter values (including the help's own example --content-type tutorials, and --country us, --language english, --category tech) silently answered an empty page, and there was no way to narrow by what people wrote on their forms, which the web page now does (Museon-AI/museon#7597).

Changes

  • ugc sourcing +questions → GET .../creator-library/form-questions: questions answered in scope, people per question, and per choice value.
  • ugc sourcing +list --answer 'QUESTION::VALUE' (repeatable) → the API's answer filter. --search help now says it matches answers.
  • --category / --content-type are enums of the creator form's values (argparse suggests the nearest one). --country is uppercased, --language's first subtag lowercased; anything not a code is refused with a message naming the expected form. --min-followers help says it measures project accounts only.
  • Version 3.2.0, CHANGELOG, generated docs/contract/task index.

Verification

  • uv run pytest -q: 2007 passed
  • gen_command_docs.py --check, gen_command_contract.py --check, gen_task_index.py --check: in sync
  • uv build + verify_public_artifacts.py: verified museoncli-3.2.0-py3-none-any.whl
  • Against production with a staff key: +questions lists 9 questions; +list --answer 'which of these have you done before?::3D design' --country us → 10 people; --language english, --country USA, --answer 3D refused with their messages; --content-type tutorials refused with "maybe you meant 'tutorial'?"

Risk and rollout

Stricter input: a call that passed a misspelt value now fails instead of returning 0 rows. Release order: merge this, merge the monorepo catalog sync, then tag v3.2.0.

🤖 Generated with Claude Code

…dy; v3.2.0

- `ugc sourcing +questions` lists the form questions people answered, with
  how many answered each and each choice's count.
- `ugc sourcing +list --answer 'QUESTION::VALUE'` narrows by the latest
  answer; rows carry form_answers, sample_videos and creator_link, and
  --search matches answers too.
- --category and --content-type take only the creator form's values;
  --country and --language take only codes (country in any case). A
  misspelt value used to answer an empty page; it is now refused with
  what to type instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MikeChenWM
MikeChenWM marked this pull request as ready for review November 19, 2026 12:46
@MikeChenWM
MikeChenWM merged commit aab944f into main Nov 19, 2026
10 checks passed
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