Skip to content

[WIP] Post に更新者の情報を持てるようにする [closes #66]#70

Open
5t111111 wants to merge 4 commits into
masterfrom
add-updater-information-to-post
Open

[WIP] Post に更新者の情報を持てるようにする [closes #66]#70
5t111111 wants to merge 4 commits into
masterfrom
add-updater-information-to-post

Conversation

@5t111111

@5t111111 5t111111 commented Aug 28, 2016

Copy link
Copy Markdown
Collaborator

やったこと

  • postsupdated_by_id を追加
  • 投稿の新規作成時に作成ユーザーの ID を updated_by_id に保存
  • 投稿の更新時に更新ユーザーの ID を updated_by_id に保存
  • 投稿の詳細ページに更新ユーザー情報を表示
  • 設計がイマイチ感あるので見直す
  • 投稿更新時の Slack 通知で正しく更新ユーザー情報が設定されるようにする
  • N+1 がある
  • 更新時のテストを書く
  • 表示のビューのマークアップとスタイルを見直す

よさげな gem も探してみましたが Audit 系はちょっと重いしこれくらいなら自前でいいと思いました。
あと、Slack 通知を制御したいので一旦 #68 のブランチから生やしています。 master に rebase --onto した

対応する issue

connects to #66

@5t111111 5t111111 force-pushed the add-updater-information-to-post branch from a4e3725 to 7d21956 Compare August 28, 2016 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant