fix(openapi): harden story 2.1 production lifecycle
This commit is contained in:
1 parent
2c94af6791
commit
bc03c33387
46 files changed
+2198
-276
No files matched your search
@@ -673,6 +673,17 @@ pub struct ImportJobApplyResult {
|
||||
pub skipped: Vec<SkippedImportOperation>,
|
||||
}
|
||||
|
||||
/// Result of one bounded import-source maintenance pass.
|
||||
///
|
||||
/// The caller may schedule another pass when `more_work` is true. The report
|
||||
/// intentionally contains only counts so it is safe to use in telemetry.
|
||||
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
|
||||
pub struct ImportJobCleanupReport {
|
||||
pub deleted_jobs: u64,
|
||||
pub detached_sources: u64,
|
||||
pub more_work: bool,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub struct ApplyImportJobRequest<'a> {
|
||||
pub id: &'a ImportJobId,
|
||||
@@ -680,6 +691,10 @@ pub struct ApplyImportJobRequest<'a> {
|
||||
pub application_key: &'a str,
|
||||
pub conflict_mode: ImportConflictMode,
|
||||
pub operations: &'a [ImportOperationDraft],
|
||||
/// Outcomes determined before the registry transaction (for example,
|
||||
/// selected OpenAPI keys absent from the immutable preview). They are
|
||||
/// persisted with the canonical result so retries remain equivalent.
|
||||
pub pre_skipped: &'a [SkippedImportOperation],
|
||||
pub finished_at: &'a OffsetDateTime,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user