Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALIS-1913:Draft delete #202

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

narisada014
Copy link
Contributor

概要

下書きの削除機能を実装した。
下書きが削除可能な記事として、一度も記事公開を行なっていない記事を対象とする。
published_atで判定するのではなく、ArticleHistoryにデータが存在した場合公開したことがある記事として判定し、削除可能かどうかを判断するロジックで実装を行なった。

環境変数(SSMパラメータ)

関連URL

影響範囲(ユーザ)

ユーザー

影響範囲(システム)

  • サーバレス

技術的変更点概要

ArticleHistory内に記事データが存在する場合は公開済みとし記事を論理削除する。
ArticleInfoとArticleContentのデータをDeletedDraftArticleInfoTableとDeletedDraftArticleContentTableにコピーし、コピー後に元データを削除するように実装を行なった。

使い方

DBやDBへのクエリに対する変更

DeletedDraftArticleInfoTableとDeletedDraftArticleContentTableを追加した。
ArticleHistoryにarticle_id-indexを追加した。

ブロックチェーンへの影響

なし

個人情報の取り扱いに変更のあるリリースか

ない

ロギング

ユニットテスト

あり

テスト結果とテスト項目

保留した項目とTODOリスト

注意点・その他

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant