us.off-the-clock.polls.vote

A member's answer to a us.off-the-clock.polls.poll in the same space. The member's newest vote counts; one with no entries is an abstention. Votes are records in the space, so every member who reads it can see who voted and how. A client may add createdAt, the time it cast the vote; the AppView trusts it up to five minutes before it indexes the vote and never after.

Details · record, key tid
Kindrecord
Record keytid
Authoritypolls.off-the-clock.us
Indexed

Record

record · key tid

Properties

poll

requiredref

The poll, with the CID of the version the voter saw.

votes

requiredarray

The chosen options by key, at most one entry per key; empty to abstain.

itemsref
Reference

#entry

object

Properties

input

string

The voter's typed answer, for an option that allows input.

  • minLength: 1
  • maxLength: 1000
  • minGraphemes: 1
  • maxGraphemes: 100

key

requiredstring
  • minLength: 1
  • maxLength: 64

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A vote on a poll. Lives in the voter's own repo; a vote on a poll that lives inside an ATProto Space is written into the same space (the voter's permissioned repo) and refers to the poll by its space record uri. One vote per voter and poll; delete the record to withdraw.

  • A question a member asks a content space, with two to ten options that members answer with us.off-the-clock.polls.vote records. Each option is named by a key that stays the same when the poll is edited, so votes follow the option they were cast for. Posts may reply to a poll, so a poll heads a thread.

  • club.fellas.v0.poll.vote

    record not from the namespace authority

    A member's vote on a poll within the fella space. Convention: rkey equals the poll record's rkey, so casting a new vote overwrites the previous one (via applyWrites update) rather than creating a second record.

  • A vote on a poll. Lives in the voter's repo.

  • A poll record. Lives in the author's own repo, either as a public record (attached to a post via embed.external and indexed from the firehose) or inside an ATProto Space (permissioned data), where the AppView is told about it with tech.tokimeki.poll.notifySpaceWrite and reads it with a space credential. A public poll is fixed once created: the AppView indexes the record as first written and ignores later updates to it, so that options and closing time cannot change under votes already cast. Dele