Skip to content

Conversation

@lenguyenthanh
Copy link
Member

@lenguyenthanh lenguyenthanh force-pushed the use-lila-ingestor branch 2 times, most recently from 023f554 to d241d66 Compare June 15, 2024 13:32
.distinctEasy[ForumPostId, List]("_id", $doc("userId" -> user.id), _.sec)
.map: ids =>
Bus.pub(BusForum.ErasePosts(ids))
.map(ids => Bus.pub(BusForum.ErasePosts(ids)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the entire function should be gone

Copy link
Member Author

@lenguyenthanh lenguyenthanh Jun 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think We don't delete user's forum posts in db. Only remove forum post's indexes in elastic search. That's why I keep this.

@lenguyenthanh lenguyenthanh marked this pull request as ready for review June 16, 2024 10:16

def deleteTopic(view: PostView)(using Me): Funit =
for
postIds <- postRepo.idsByTopicId(view.topic.id)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed it because We didn't use postIds but this probably caused by an oversight: 5c94dc2#diff-27d0d9308aaabb53c6b0b2d6f43db2c751e7a7577ec4041e031d8d6f3338469e

@ornicar ornicar merged commit 1d8ac75 into lichess-org:master Jun 16, 2024
@lenguyenthanh lenguyenthanh deleted the use-lila-ingestor branch June 17, 2024 00:38
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.

2 participants