traPtitech / traPtitech/anke-to

選択肢系の項目を変えると過去の選択肢の回答が混ざる

Open
#460 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feedback priority:HIGH
Dominant language
Go
Stars
8
Forks
4
Avg merge
6d 14h
Merged PRs (30d)
3

Description

resultでresponseテーブル中の回答をoptionsテーブルと紐付けずに取り出しているため、消された選択肢の回答が混ざってしまう。
良くないのでdeprecatedみたいなマークをつけるなり、過去タブに分けるなりして分けたい。
どちらにしろ、サーバー側でoptionsテーブルとJOINして紐付ける必要がある。
例)
2/16(月)という選択肢を2/16(火)という選択肢に変えたところ、↓のようになった
https://anke-to.trap.jp/results/797

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the server-side result handling that reads answers from the response and options tables. Check the result shown at https://anke-to.trap.jp/results/797 and trace how changed choices are returned. Done means answers for deleted choices are separated or marked as historical, with current choices linked through the options table.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.