-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Katello:master' into push_repos_to_pulp
- Loading branch information
Showing
36 changed files
with
623 additions
and
164 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
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
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
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
11 changes: 11 additions & 0 deletions
11
db/migrate/20220405220616_update_cdn_configuration_type.rb
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,11 @@ | ||
class UpdateCdnConfigurationType < ActiveRecord::Migration[6.0] | ||
class FakeCdnConfiguration < Katello::Model | ||
self.table_name = 'katello_cdn_configurations' | ||
self.inheritance_column = nil | ||
end | ||
|
||
def change | ||
FakeCdnConfiguration.where(type: 'upstream_server').update_all(type: 'network_sync') | ||
FakeCdnConfiguration.where(type: 'airgapped').update_all(type: 'export_sync') | ||
end | ||
end |
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
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
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
45 changes: 45 additions & 0 deletions
45
webpack/components/extensions/HostDetails/DetailsTabCards/InstalledProductsCard.js
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,45 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { translate as __ } from 'foremanReact/common/I18n'; | ||
import { List, ListItem } from '@patternfly/react-core'; | ||
import CardTemplate from 'foremanReact/components/HostDetails/Templates/CardItem/CardTemplate'; | ||
|
||
const InstalledProductsCard = ({ isExpandedGlobal, hostDetails }) => { | ||
const installedProducts = hostDetails?.subscription_facet_attributes?.installed_products; | ||
if (!installedProducts?.length) return null; | ||
return ( | ||
<CardTemplate | ||
overrideGridProps={{ rowSpan: 2 }} | ||
header={__('Installed products')} | ||
expandable | ||
isExpandedGlobal={isExpandedGlobal} | ||
> | ||
<List isPlain> | ||
{installedProducts.map(product => ( | ||
<ListItem key={product.productId}> | ||
{product.productName} | ||
</ListItem> | ||
))} | ||
</List> | ||
</CardTemplate> | ||
); | ||
}; | ||
|
||
InstalledProductsCard.propTypes = { | ||
isExpandedGlobal: PropTypes.bool, | ||
hostDetails: PropTypes.shape({ | ||
subscription_facet_attributes: PropTypes.shape({ | ||
installed_products: PropTypes.arrayOf(PropTypes.shape({ | ||
productId: PropTypes.string, | ||
productName: PropTypes.string, | ||
})), | ||
}), | ||
}), | ||
}; | ||
|
||
InstalledProductsCard.defaultProps = { | ||
isExpandedGlobal: false, | ||
hostDetails: {}, | ||
}; | ||
|
||
export default InstalledProductsCard; |
Oops, something went wrong.