forked from raystack/optimus
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: bulk delete jobs API & modify Optimus Apply to use bulk delete (#…
…255) * feat: add service logic * feat: integrate bulk delete to client * feat: update job service logic & handler * feat: update proton * feat: fix client * feat: fix test * feat: refactor approach * feat: restructure downstream deletion * feat: fix after sync with master * feat: fix tracker already exists * feat: unit test * feat: fix variable naming & remove excessive logs * feat: update logic to only use deletionTrakerMap * fix: intermittent unit test fix * fix: handling empty job * feat: update proton commit
- Loading branch information
1 parent
6fcebc4
commit 06bccc0
Showing
11 changed files
with
1,500 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package dto | ||
|
||
import ( | ||
"github.com/goto/optimus/core/job" | ||
"github.com/goto/optimus/core/tenant" | ||
) | ||
|
||
type JobToDeleteRequest struct { | ||
Namespace tenant.NamespaceName | ||
JobName job.Name | ||
} | ||
|
||
type BulkDeleteTracker struct { | ||
JobName string | ||
Message string | ||
Success bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.