-
Notifications
You must be signed in to change notification settings - Fork 218
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
fix: Reverted descendant pages do not appear in search results #7587
fix: Reverted descendant pages do not appear in search results #7587
Conversation
apps/app/src/server/service/page.ts
Outdated
@@ -2064,6 +2064,7 @@ class PageService { | |||
await PageTagRelation.updateMany({ relatedPage: page._id }, { $set: { isPageTrashed: false } }); | |||
|
|||
this.pageEvent.emit('revert', page, user); | |||
this.pageEvent.emit('create', updatedPage, user); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これはおかしい
revert event 発火時の処理を見直すべきなのでは?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert event の中で es に対して必要な処理を行うように修正しました
apps/app/src/server/service/page.ts
Outdated
@@ -2101,6 +2102,9 @@ class PageService { | |||
|
|||
throw err; | |||
} | |||
finally { | |||
this.pageEvent.emit('syncDescendantsUpdate', updatedPage, user); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try の中に入れたいな
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正済み
reg-suit detected visual differences. Check this report, and review them. 🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴 What do the circles mean?The number of circles represent the number of changed images.🔴 : Changed items, ⚪ : New items, ⚫ : Deleted items, and 🔵 Passed items How can I change the check status?If reviewers approve this PR, the reg context status will be green automatically. |
pageEvent.on('revert', (targetPage, revertedPage, user) => { | ||
this.fullTextSearchDelegator.syncPageDeleted.bind(this.fullTextSearchDelegator)(targetPage, user); | ||
this.fullTextSearchDelegator.syncPageUpdated.bind(this.fullTextSearchDelegator)(revertedPage, user); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
page に対す処理と pageEvent 内の es に対する処理が同じになるようにしました
Task
#120476 ゴミ箱に出し入れした際の全文検索のバグを修正する
└ #120723 修正 (問題2)