Skip to content

Commit

Permalink
fix(specs): remove from ingestion specs [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3981

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Oct 17, 2024
1 parent 7ab4c2e commit 21fd8b7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Sources/Ingestion/Models/Event.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ public struct Event: Codable, JSONEncodable {
public var eventID: String
/// Universally unique identifier (UUID) of a task run.
public var runID: String
/// The parent event, the cause of this event.
public var parentID: String?
public var status: EventStatus
public var type: IngestionEventType
/// The extracted record batch size.
Expand All @@ -25,7 +23,6 @@ public struct Event: Codable, JSONEncodable {
public init(
eventID: String,
runID: String,
parentID: String? = nil,
status: EventStatus,
type: IngestionEventType,
batchSize: Int,
Expand All @@ -34,7 +31,6 @@ public struct Event: Codable, JSONEncodable {
) {
self.eventID = eventID
self.runID = runID
self.parentID = parentID
self.status = status
self.type = type
self.batchSize = batchSize
Expand All @@ -45,7 +41,6 @@ public struct Event: Codable, JSONEncodable {
public enum CodingKeys: String, CodingKey, CaseIterable {
case eventID
case runID
case parentID
case status
case type
case batchSize
Expand All @@ -59,7 +54,6 @@ public struct Event: Codable, JSONEncodable {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(self.eventID, forKey: .eventID)
try container.encode(self.runID, forKey: .runID)
try container.encodeIfPresent(self.parentID, forKey: .parentID)
try container.encode(self.status, forKey: .status)
try container.encode(self.type, forKey: .type)
try container.encode(self.batchSize, forKey: .batchSize)
Expand All @@ -72,7 +66,6 @@ extension Event: Equatable {
public static func ==(lhs: Event, rhs: Event) -> Bool {
lhs.eventID == rhs.eventID &&
lhs.runID == rhs.runID &&
lhs.parentID == rhs.parentID &&
lhs.status == rhs.status &&
lhs.type == rhs.type &&
lhs.batchSize == rhs.batchSize &&
Expand All @@ -85,7 +78,6 @@ extension Event: Hashable {
public func hash(into hasher: inout Hasher) {
hasher.combine(self.eventID.hashValue)
hasher.combine(self.runID.hashValue)
hasher.combine(self.parentID?.hashValue)
hasher.combine(self.status.hashValue)
hasher.combine(self.type.hashValue)
hasher.combine(self.batchSize.hashValue)
Expand Down

0 comments on commit 21fd8b7

Please sign in to comment.