Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blueprints: Add flag to track on prem import usage #2614

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9,471 changes: 4,811 additions & 4,660 deletions api/schema/compliance.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions api/schema/imageBuilder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1081,13 +1081,17 @@ components:
required:
- parent_id
- exported_at
- is_on_prem
properties:
parent_id:
type: string
format: uuid
nullable: true
exported_at:
type: string
is_on_prem:
type: boolean
default: false
Distributions:
type: string
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export const mapOnPremToHosted = (
metadata: {
parent_id: null,
exported_at: '',
is_on_prem: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, missed that, sorry! Ignore me in that case! :)

},
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ export const mapExportRequestToState = (
metadata: {
parent_id: request.metadata?.parent_id || null,
exported_at: request.metadata?.exported_at || '',
is_on_prem: request.metadata?.is_on_prem || false,
},
env: initialState.env,
registration: initialState.registration,
Expand Down
1 change: 1 addition & 0 deletions src/store/imageBuilderApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ export type Customizations = {
export type BlueprintMetadata = {
parent_id: string | null;
exported_at: string;
is_on_prem: boolean;
};
export type CreateBlueprintRequest = {
name: string;
Expand Down
1 change: 1 addition & 0 deletions src/store/wizardSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export type wizardState = {
metadata?: {
parent_id: string | null;
exported_at: string;
is_on_prem: boolean;
};
};

Expand Down
Loading