cybercog / telegram-devpoker-bot

Planning Poker (Scrum Poker) for Agile software development teams. The bot allows you to introduce a consensus-based, gamified technique of task estimating into Telegram group chats.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve naming

antonkomarev opened this issue · comments

Make naming consistent.

Game — is a planning poker game. Game contains of game sessions. Each session belongs to a topic (issue/task).

Game session phases

  • discussion
  • estimation
  • resolution

Initiator operations

  • start_estimation
  • end_estimation
  • clear_votes
  • re_estimate

Callbacks

  • discussion-vote-click-{topic_message_id}-{vote}
  • estimation-vote-click-{topic_message_id}-{vote}
  • {operation}-click-{topic_message_id}
    • start_estimation-click-{topic_message_id}
    • end_estimation-click-{topic_message_id}
    • clear_votes-click-{topic_message_id}
    • re_estimate-click-{topic_message_id}

Class types

  • Game
  • GameSession
  • GameRegistry
  • DiscussionVote
  • EstimationVote

All is done, just need to rework callbacks naming

click-{topic_message_id}-discussion-vote-{vote}
click-{topic_message_id}-estimation-vote-{vote}
click-{topic_message_id}-operation-{operation}
    click-{topic_message_id}-operation-start-estimation
    click-{topic_message_id}-operation-end-estimation
    click-{topic_message_id}-operation-clear-votes
    click-{topic_message_id}-operation-re-estimate