Skip to content

[GRDM-53959] FileMetadata削除時にElasitcSearchのインデクスが削除されない不具合の修正 #619

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

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

shun-nakazawa
Copy link

@shun-nakazawa shun-nakazawa commented Jul 29, 2025

Purpose

FileMetadataの削除時にElasticSearchのインデクスが削除されない不具合を修正しました。

Changes

  • elastic_search.py が呼び出す FileMetadata.load() に仕様の不具合があったが load() はここでしか使われていないため削除し、 elastic_search.py では FileMetadata.objects.get() を使って deleted=True の FileMetadata も取得するよう修正しました。(FileMetadata は project_id と path の複合ユニークキーがはられているため get でOK)
  • FileMetadata更新時のElasticSearchのインデクスに関するユニットテストを追加しました。

QA Notes

None

Documentation

None

Side Effects

None

Ticket

GRDM-53959

@shun-nakazawa shun-nakazawa force-pushed the fix/grdm-53959 branch 2 times, most recently from 05560f3 to 35dfa58 Compare August 4, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant