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

Remove groups and groups-related APIs #2234

Merged
merged 5 commits into from
Mar 22, 2022
Merged

Remove groups and groups-related APIs #2234

merged 5 commits into from
Mar 22, 2022

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Mar 11, 2022

Paired with but not blocked alongside matrix-org/matrix-react-sdk#8027
Paired with matrix-org/synapse#12200 to a degree
For element-hq/element-web#17532

Must not land before matrix-org/matrix-react-sdk#8027


This API is due for removal in Synapse and has been deprecated for a very long time. People should move away from it soon, but just in case we'll declare this as a breaking change.

There is no impact on sync storage here: we happen to store the data in a way that is backwards-compatible for group-supporting clients, and the code guards against missing data from the stores. So, if someone were to revert, they'd be "safe" (probably lose all their group info, but the app wouldn't crash).


Here's what your changelog entry will look like:

🚨 BREAKING CHANGES

  • Remove groups and groups-related APIs (#2234).

This API is due for removal in Synapse and has been deprecated for a very long time. People should move away from it soon, but just in case we'll declare this as a breaking change.

There is no impact on sync storage here: we happen to store the data in a way that is backwards-compatible for group-supporting clients, and the code guards against missing data from the stores. So, if someone were to revert, they'd be "safe" (probably lose all their group info, but the app wouldn't crash).
@turt2live turt2live marked this pull request as ready for review March 11, 2022 21:50
@turt2live turt2live requested a review from a team as a code owner March 11, 2022 21:50
@codecov-commenter
Copy link

codecov-commenter commented Mar 11, 2022

Codecov Report

Merging #2234 (62bc252) into develop (29e5480) will increase coverage by 0.47%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #2234      +/-   ##
===========================================
+ Coverage    58.11%   58.58%   +0.47%     
===========================================
  Files           92       91       -1     
  Lines        16427    16271     -156     
  Branches      3782     3757      -25     
===========================================
- Hits          9546     9532      -14     
+ Misses        6881     6739     -142     
Impacted Files Coverage Δ
src/client.ts 36.68% <ø> (+1.23%) ⬆️
src/matrix.ts 63.15% <ø> (ø)
src/store/indexeddb-local-backend.ts 0.44% <ø> (ø)
src/store/memory.ts 57.85% <ø> (+2.38%) ⬆️
src/store/stub.ts 49.12% <ø> (+3.96%) ⬆️
src/sync-accumulator.ts 74.43% <ø> (+4.32%) ⬆️
src/sync.ts 65.50% <ø> (+2.43%) ⬆️
src/utils.ts 88.00% <0.00%> (-1.50%) ⬇️

Comment on lines -8799 to -8845
// ======================================================
// ** ANCIENT APIS BELOW **
// ======================================================
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 would like to point out that code got added below this warning that is not subject to the "ancient apis" warning. Not sure if we should do a better job communicating these things in the future.

Copy link
Contributor

@germain-gg germain-gg left a comment

Choose a reason for hiding this comment

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

💯

@turt2live turt2live enabled auto-merge (squash) March 22, 2022 22:15
@turt2live turt2live merged commit d0b9648 into develop Mar 22, 2022
@turt2live turt2live deleted the travis/del-groups branch March 22, 2022 22:20
su-ex added a commit to SchildiChat/matrix-js-sdk that referenced this pull request Apr 16, 2022
* Remove groups and groups-related APIs ([\matrix-org#2234](matrix-org#2234)).
* Add Element video room type ([\matrix-org#2273](matrix-org#2273)).
* Live location sharing - handle redacted beacons ([\matrix-org#2269](matrix-org#2269)).
* Fix getSessionsNeedingBackup() limit support ([\matrix-org#2270](matrix-org#2270)). Contributed by @adamvy.
* Fix issues with /search and /context API handling for threads ([\matrix-org#2261](matrix-org#2261)). Fixes element-hq/element-web#21543.
* Prevent exception 'Unable to set up secret storage' ([\matrix-org#2260](matrix-org#2260)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants