Skip to content

Commit

Permalink
api: Don't allow connecting to servers <4.0; show nag banner on <5.0
Browse files Browse the repository at this point in the history
The latest 4.x, which is 4.11, was released on 2022-03-15, so it
will turn 18 months old -- and so, become unsupported -- four days
from now:
  https://zulip.readthedocs.io/en/latest/overview/release-lifecycle.html#compatibility-and-upgrading
  https://blog.zulip.com/tag/release-announcements/
So it's time to start nudging server admins to upgrade, with the nag
banner.
  • Loading branch information
chrisbobbe committed Sep 11, 2023
1 parent 09754f0 commit 8552afc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/apiErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const interpretApiResponse = (httpStatus: number, data: mixed): mixed =>
*/
// This should lag a bit behind the threshold version for ServerCompatBanner
// (kMinSupportedVersion), to give users time to see and act on the banner.
export const kMinAllowedServerVersion: ZulipVersion = new ZulipVersion('3.0');
export const kMinAllowedServerVersion: ZulipVersion = new ZulipVersion('4.0');

/**
* An error we throw in API bindings on finding a server is too old.
Expand Down
4 changes: 2 additions & 2 deletions src/common/ServerCompatBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ export const kServerSupportDocUrl: URL = new URL(
* See also kMinAllowedServerVersion in apiErrors.js, for the version below
* which we just refuse to connect.
*/
export const kMinSupportedVersion: ZulipVersion = new ZulipVersion('4.10');
export const kMinSupportedVersion: ZulipVersion = new ZulipVersion('5.0');

/**
* The next value we'll give to kMinSupportedVersion in the future.
*
* This should be the next major Zulip Server version after kMinSupportedVersion.
*/
export const kNextMinSupportedVersion: ZulipVersion = new ZulipVersion('5.0');
export const kNextMinSupportedVersion: ZulipVersion = new ZulipVersion('6.0');

type Props = $ReadOnly<{||}>;

Expand Down

0 comments on commit 8552afc

Please sign in to comment.