Skip to content

Commit

Permalink
remove beta cluster entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
tonisevener committed May 27, 2021
1 parent de34952 commit 6c089e6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions WMF Framework/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ public class Configuration: NSObject {
public struct StagingOptions: OptionSet {
public let rawValue: Int

public static let betaClusterForMediaWiki = StagingOptions(rawValue: 1 << 0)
public static let appsLabsforPCS = StagingOptions(rawValue: 1 << 1)
public static let deploymentLabsForEventLogging = StagingOptions(rawValue: 1 << 2)
public static let appsLabsforPCS = StagingOptions(rawValue: 1 << 0)
public static let deploymentLabsForEventLogging = StagingOptions(rawValue: 1 << 1)

public init(rawValue: Int) {
self.rawValue = rawValue
Expand Down Expand Up @@ -71,15 +70,12 @@ public class Configuration: NSObject {
private static func staging(options: StagingOptions) -> Configuration {

let pcsApiType: APIURLComponentsBuilder.RESTBase.BuilderType = options.contains(.appsLabsforPCS) ? .stagingAppsLabsPCS : .production
let defaultSiteDomain: String = options.contains(.betaClusterForMediaWiki) ? Domain.betaLabs : Domain.wikipedia
let otherDomains: [String] = options.contains(.betaClusterForMediaWiki) ? [Domain.wikipedia] : []
let eventLoggingApiType: APIURLComponentsBuilder.EventLogging
.BuilderType = options.contains(.deploymentLabsForEventLogging) ? .staging : .production

return Configuration(
environment: .staging(options),
defaultSiteDomain: defaultSiteDomain,
otherDomains: otherDomains,
defaultSiteDomain: Domain.wikipedia,
pageContentServiceAPIType: pcsApiType,
feedContentAPIType: .production,
announcementsAPIType: .production,
Expand Down

0 comments on commit 6c089e6

Please sign in to comment.