Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Oracle): Fixed Oracle object storage selection (#8588)
Co-authored-by: Kevin Woo <kevinawoo@gmail.com>
- Loading branch information
Showing
6 changed files
with
49 additions
and
0 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
1 change: 1 addition & 0 deletions
1
app/scripts/modules/core/src/artifact/icons/oracle-object-artifact.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
38 changes: 38 additions & 0 deletions
38
...ripts/modules/core/src/pipeline/config/triggers/artifacts/oracle/OracleArtifactEditor.tsx
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,38 @@ | ||
import { ArtifactTypePatterns } from 'core/artifact'; | ||
import { IArtifactKindConfig } from 'core/domain'; | ||
|
||
import { singleFieldArtifactEditor } from '../singleFieldArtifactEditor'; | ||
|
||
export const OracleMatch: IArtifactKindConfig = { | ||
label: 'Oracle', | ||
typePattern: ArtifactTypePatterns.ORACLE_OBJECT, | ||
type: 'oracle/object', | ||
description: 'An oracle object.', | ||
key: 'oracle', | ||
isDefault: false, | ||
isMatch: true, | ||
editCmp: singleFieldArtifactEditor( | ||
'name', | ||
'oracle/object', | ||
'reference', | ||
'oci://bucket/file-path', | ||
'pipeline.config.expectedArtifact.oracle.name', | ||
), | ||
}; | ||
|
||
export const OracleDefault: IArtifactKindConfig = { | ||
label: 'Oracle', | ||
typePattern: ArtifactTypePatterns.ORACLE_OBJECT, | ||
type: 'oracle/object', | ||
description: 'An oracle object.', | ||
key: 'oracle', | ||
isDefault: true, | ||
isMatch: false, | ||
editCmp: singleFieldArtifactEditor( | ||
'reference', | ||
'oracle/object', | ||
'Reference', | ||
'oci://bucket/file-path', | ||
'pipeline.config.expectedArtifact.defaultOracle.reference', | ||
), | ||
}; |