Skip to content

Commit 71bd64d

Browse files
authored
WPB-21773 Finalize API version V13 (#4860)
1 parent fb827ae commit 71bd64d

File tree

6 files changed

+37181
-15
lines changed

6 files changed

+37181
-15
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Create new API version V14 and finalize API version V13

integration/test/Test/Swagger.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import Testlib.Prelude
3030
import UnliftIO.Temporary
3131

3232
existingVersions :: Set Int
33-
existingVersions = Set.fromList [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
33+
existingVersions = Set.fromList [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
3434

3535
internalApis :: Set String
3636
internalApis = Set.fromList ["brig", "cannon", "cargohold", "cannon", "spar"]

integration/test/Testlib/Env.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ mkGlobalEnv cfgFile = do
133133
gFederationV1Domain = intConfig.federationV1.originDomain,
134134
gFederationV2Domain = intConfig.federationV2.originDomain,
135135
gDynamicDomains = (.domain) <$> Map.elems intConfig.dynamicBackends,
136-
gDefaultAPIVersion = 13,
136+
gDefaultAPIVersion = 14,
137137
gManager = manager,
138138
gServicesCwdBase = devEnvProjectRoot <&> (</> "services"),
139139
gBackendResourcePool = resourcePool,

libs/wire-api/src/Wire/API/Routes/Version.hs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ import Wire.Arbitrary (Arbitrary, GenericUniform (GenericUniform))
9898
-- and 'developmentVersions' stay in sync; everything else here should keep working without
9999
-- change. See also documentation in the *docs* directory.
100100
-- https://docs.wire.com/developer/developer/api-versioning.html#version-bump-checklist
101-
data Version = V0 | V1 | V2 | V3 | V4 | V5 | V6 | V7 | V8 | V9 | V10 | V11 | V12 | V13
101+
data Version = V0 | V1 | V2 | V3 | V4 | V5 | V6 | V7 | V8 | V9 | V10 | V11 | V12 | V13 | V14
102102
deriving stock (Eq, Ord, Bounded, Enum, Show, Generic)
103103
deriving (FromJSON, ToJSON) via (Schema Version)
104104
deriving (Arbitrary) via (GenericUniform Version)
@@ -129,6 +129,8 @@ instance RenderableSymbol V12 where renderSymbol = "V12"
129129

130130
instance RenderableSymbol V13 where renderSymbol = "V13"
131131

132+
instance RenderableSymbol V14 where renderSymbol = "V14"
133+
132134
-- | Manual enumeration of version integrals (the `<n>` in the constructor `V<n>`).
133135
--
134136
-- This is not the same as 'fromEnum': we will remove unsupported versions in the future,
@@ -150,6 +152,7 @@ versionInt V10 = 10
150152
versionInt V11 = 11
151153
versionInt V12 = 12
152154
versionInt V13 = 13
155+
versionInt V14 = 14
153156

154157
supportedVersions :: [Version]
155158
supportedVersions = [minBound .. maxBound]
@@ -270,7 +273,8 @@ isDevelopmentVersion V9 = False
270273
isDevelopmentVersion V10 = False
271274
isDevelopmentVersion V11 = False
272275
isDevelopmentVersion V12 = False
273-
isDevelopmentVersion V13 = True
276+
isDevelopmentVersion V13 = False
277+
isDevelopmentVersion V14 = True
274278

275279
developmentVersions :: [Version]
276280
developmentVersions = filter isDevelopmentVersion supportedVersions

0 commit comments

Comments
 (0)