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

model: Remove various fallbacks for ancient, sometimes prehistoric servers #5706

Merged
merged 4 commits into from
Mar 31, 2023

Conversation

chrisbobbe
Copy link
Contributor

(We removed one such fallback in b945442 / #5697, but there were more; remove those.)

This completes all our TODO(#5102)s in the code, referring to #5102.

Greg, I think you have a draft for handling some other TODO(server-x)s, possible with our current kMinAllowedServerVersion of 2.0? Not urgent, but perhaps we'll want to take care of those sometime.

@chrisbobbe chrisbobbe requested a review from gnprice March 30, 2023 23:18
Copy link
Member

@gnprice gnprice left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM. One nit:
dbfe7fc presence model tests: Remove one that expects fallback we don't need
7e4c131 fetchActions [nfc]: Remove already-done TODO about ancient servers 🎉
145aeea mute model: Remove ancient-server support from the reasons for a fallback
09dc8d3 model: Remove various fallbacks for ancient, sometimes prehistoric servers

I'd shorten two of those prefixes to "presence tests:" and "mute:" — I don't think the extra specificity of "model" helps there.

@gnprice
Copy link
Member

gnprice commented Mar 31, 2023

Greg, I think you have a draft for handling some other TODO(server-x)s, possible with our current kMinAllowedServerVersion of 2.0?

Yeah. I'll take a quick look at what it's like to rebase that.

We removed the explicit fallback code this was testing in b945442.
As it turns out, the way we use Immutable.Map (new in that commit's
same PR) effectively handles the ancient-server behavior as well as
the explicit fallback was, and so this test still passes. But that's
incidental and not something we need to guarantee.
@chrisbobbe
Copy link
Contributor Author

Thanks for the review! Merging, with those commit-message edits.

@chrisbobbe chrisbobbe merged commit cbf8b3a into zulip:main Mar 31, 2023
@chrisbobbe chrisbobbe deleted the pr-remove-ancient-fallbacks branch March 31, 2023 22:50
@gnprice
Copy link
Member

gnprice commented Mar 31, 2023

Rebased that and sent a draft PR, #5708.

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.

None yet

2 participants