Skip to content

Commit ec29b80

Browse files
committed
Move logs FieldID to TicketFieldIDs as a constant
1 parent 1ae3db1 commit ec29b80

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

WooCommerce/Classes/Tools/Zendesk/ZendeskManager.swift

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -669,9 +669,10 @@ private extension ZendeskManager {
669669
var logsFieldID: Int64 = TicketFieldIDs.legacyLogs
670670
var systemStatusReportFieldID: Int64 = 0
671671
if isSSRFeatureFlagEnabled {
672-
// If the SSR feature flag is enabled, we'll use the newly added TicketFieldID
673-
// for the Application logs, and the old one for the SSR.
674-
logsFieldID = 10901699622036
672+
/// If the feature flag is enabled, `legacyLogs` Field ID is used to send the SSR logs,
673+
/// and `logs` Field ID is used to send the logs.
674+
///
675+
logsFieldID = TicketFieldIDs.logs
675676
systemStatusReportFieldID = TicketFieldIDs.legacyLogs
676677
}
677678

@@ -698,9 +699,10 @@ private extension ZendeskManager {
698699
var logsFieldID: Int64 = TicketFieldIDs.legacyLogs
699700
var systemStatusReportFieldID: Int64 = 0
700701
if isSSRFeatureFlagEnabled {
701-
// If the SSR feature flag is enabled, we'll use the newly added TicketFieldID
702-
// for the Application logs, and the old one for the SSR.
703-
logsFieldID = 10901699622036
702+
/// If the feature flag is enabled, `legacyLogs` Field ID is used to send the SSR logs,
703+
/// and `logs` Field ID is used to send the logs.
704+
///
705+
logsFieldID = TicketFieldIDs.logs
704706
systemStatusReportFieldID = TicketFieldIDs.legacyLogs
705707
}
706708

@@ -1136,6 +1138,7 @@ private extension ZendeskManager {
11361138
static let deviceFreeSpace: Int64 = 360000089123
11371139
static let networkInformation: Int64 = 360000086966
11381140
static let legacyLogs: Int64 = 22871957
1141+
static let logs: Int64 = 10901699622036
11391142
static let currentSite: Int64 = 360000103103
11401143
static let sourcePlatform: Int64 = 360009311651
11411144
static let appLanguage: Int64 = 360008583691

0 commit comments

Comments
 (0)