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

federation-api: Deprecate v1/send_join and v1/send_leave #1556

Merged
merged 3 commits into from
May 25, 2023

Conversation

zecakeh
Copy link
Contributor

@zecakeh zecakeh commented May 24, 2023

According to a spec clarification.

This required to allow to declare an endpoint as both stable and deprecated in Matrix 1.0.


Preview: https://pr-1556--ruma-docs.surge.sh

@zecakeh zecakeh requested a review from a team May 24, 2023 16:37
@zecakeh zecakeh mentioned this pull request May 24, 2023
47 tasks
@zecakeh zecakeh force-pushed the zecakeh/deprecate-send-join-leave branch from 0405318 to 3d173c6 Compare May 24, 2023 16:57
@jplatte
Copy link
Member

jplatte commented May 24, 2023

Did we deprecate the entire module for other deprecated endpoints? I think it makes sense, I just can't remember seeing it before :)

@zecakeh
Copy link
Contributor Author

zecakeh commented May 24, 2023

I don't think there are other deprecated endpoints atm. With a string search I only get the tests.

The old deprecated client-api sync endpoints are not implemented.

@zecakeh zecakeh force-pushed the zecakeh/deprecate-send-join-leave branch 2 times, most recently from 07947fb to 4aa30ea Compare May 24, 2023 19:34
@zecakeh
Copy link
Contributor Author

zecakeh commented May 24, 2023

It looks like CI doesn't like having tests in a deprecated module… Unless I'm misunderstanding the issue.

@ShadowJonathan
Copy link
Member

We may be hitting rust-lang/rust#47238

@ShadowJonathan
Copy link
Member

I've got it to work by moving create_join_event::v1::tests -> create_join_event::v1_tests, marking the tests with allow(deprecated) then will work

@zecakeh
Copy link
Contributor Author

zecakeh commented May 25, 2023

Maybe we should move it to be an integration test, to keep the tree clean?

Copy link
Member

@ShadowJonathan ShadowJonathan left a comment

Choose a reason for hiding this comment

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

LGTM

@zecakeh zecakeh force-pushed the zecakeh/deprecate-send-join-leave branch from 2b66ffb to 95d410a Compare May 25, 2023 14:49
@zecakeh zecakeh enabled auto-merge (rebase) May 25, 2023 14:50
@zecakeh zecakeh merged commit 631c4e6 into main May 25, 2023
@jplatte jplatte deleted the zecakeh/deprecate-send-join-leave branch May 25, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants