Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add a background update to clear tombstoned rooms from the directory #6648

Merged
merged 2 commits into from
Jan 7, 2020

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jan 6, 2020

Fixes #6638

Based on #6647

@richvdh richvdh requested a review from a team January 6, 2020 20:52
@richvdh richvdh force-pushed the rav/remove_tombstoned_rooms_from_directory branch from 44bd19e to dbcbd60 Compare January 6, 2020 20:59
return len(rooms)

def set_room_is_public(self, room_id, is_public):
raise NotImplementedError()
Copy link
Member

Choose a reason for hiding this comment

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

They way we've done this elsewhere is to have RoomBackgroundUpdateStore inherit from a class with this function defined (which is tedious but at least avoids spurious NotImplementedError stuff). You could also use ABC metaclass stuff.

Or we can leave it as is but then I think it needs a comment here as to what on earth is going on

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've done the ABC thing. perhaps it's better now?

@richvdh richvdh requested a review from erikjohnston January 7, 2020 14:01
@richvdh richvdh force-pushed the rav/remove_tombstoned_rooms_from_directory branch from 8ded2e0 to a57c7b4 Compare January 7, 2020 14:16
@richvdh richvdh force-pushed the rav/remove_tombstoned_rooms_from_directory branch from a57c7b4 to b55eb5a Compare January 7, 2020 14:18
@richvdh richvdh merged commit 85db7f7 into develop Jan 7, 2020
@richvdh richvdh deleted the rav/remove_tombstoned_rooms_from_directory branch December 1, 2020 12:37
babolivier pushed a commit that referenced this pull request Sep 1, 2021
…6648)

* commit '85db7f73b':
  Add a background update to clear tombstoned rooms from the directory (#6648)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants