Skip to content

Commit 21fd8b7

Browse files
fix(specs): remove from ingestion specs [skip-bc] (generated)
algolia/api-clients-automation#3981 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 7ab4c2e commit 21fd8b7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Sources/Ingestion/Models/Event.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ public struct Event: Codable, JSONEncodable {
1212
public var eventID: String
1313
/// Universally unique identifier (UUID) of a task run.
1414
public var runID: String
15-
/// The parent event, the cause of this event.
16-
public var parentID: String?
1715
public var status: EventStatus
1816
public var type: IngestionEventType
1917
/// The extracted record batch size.
@@ -25,7 +23,6 @@ public struct Event: Codable, JSONEncodable {
2523
public init(
2624
eventID: String,
2725
runID: String,
28-
parentID: String? = nil,
2926
status: EventStatus,
3027
type: IngestionEventType,
3128
batchSize: Int,
@@ -34,7 +31,6 @@ public struct Event: Codable, JSONEncodable {
3431
) {
3532
self.eventID = eventID
3633
self.runID = runID
37-
self.parentID = parentID
3834
self.status = status
3935
self.type = type
4036
self.batchSize = batchSize
@@ -45,7 +41,6 @@ public struct Event: Codable, JSONEncodable {
4541
public enum CodingKeys: String, CodingKey, CaseIterable {
4642
case eventID
4743
case runID
48-
case parentID
4944
case status
5045
case type
5146
case batchSize
@@ -59,7 +54,6 @@ public struct Event: Codable, JSONEncodable {
5954
var container = encoder.container(keyedBy: CodingKeys.self)
6055
try container.encode(self.eventID, forKey: .eventID)
6156
try container.encode(self.runID, forKey: .runID)
62-
try container.encodeIfPresent(self.parentID, forKey: .parentID)
6357
try container.encode(self.status, forKey: .status)
6458
try container.encode(self.type, forKey: .type)
6559
try container.encode(self.batchSize, forKey: .batchSize)
@@ -72,7 +66,6 @@ extension Event: Equatable {
7266
public static func ==(lhs: Event, rhs: Event) -> Bool {
7367
lhs.eventID == rhs.eventID &&
7468
lhs.runID == rhs.runID &&
75-
lhs.parentID == rhs.parentID &&
7669
lhs.status == rhs.status &&
7770
lhs.type == rhs.type &&
7871
lhs.batchSize == rhs.batchSize &&
@@ -85,7 +78,6 @@ extension Event: Hashable {
8578
public func hash(into hasher: inout Hasher) {
8679
hasher.combine(self.eventID.hashValue)
8780
hasher.combine(self.runID.hashValue)
88-
hasher.combine(self.parentID?.hashValue)
8981
hasher.combine(self.status.hashValue)
9082
hasher.combine(self.type.hashValue)
9183
hasher.combine(self.batchSize.hashValue)

0 commit comments

Comments
 (0)