Skip to content

Conversation

@flavorjones
Copy link
Member

@flavorjones flavorjones commented Jan 23, 2026

Forbid comments on draft cards. This is prevented by the web UI but currently possible via the API.

  • Update comment tests to be on published cards where appropriate
  • Extract Card::Commentable
  • Add Card#commentable?
  • CardsController#create ensures that the card is commentable

flavorjones and others added 3 commits January 23, 2026 10:30
We're about to make a change to assert that draft cards are not added
to the search index, and so let's make the intention behind these
tests clear first.
- Add Card#commentable? method that returns true only for published cards.
- CardsController#create ensures that the card is commentable.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@flavorjones flavorjones merged commit f6211db into main Jan 23, 2026
12 checks passed
@flavorjones flavorjones deleted the forbid-comments-on-draft-cards branch January 23, 2026 16:40
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.

2 participants