-
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.
Fixes #37994 - Populate bootc fields from facts and associate hosts w…
…ith manifest entities (#11209) * Fixes #37994 - populate bootc fields from facts * Refs #37994 - associate hosts with manifest entities * Refs #37994 - find_by_image_mode should include hosts with no content facet
- Loading branch information
1 parent
3f2a522
commit dcf890d
Showing
11 changed files
with
197 additions
and
5 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
7 changes: 7 additions & 0 deletions
7
db/migrate/20241112145802_add_manifest_entity_to_content_facets.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,7 @@ | ||
class AddManifestEntityToContentFacets < ActiveRecord::Migration[6.1] | ||
def change | ||
add_reference :katello_content_facets, :manifest_entity, polymorphic: true, index: true | ||
change_column_null :katello_content_facets, :manifest_entity_type, true | ||
change_column_null :katello_content_facets, :manifest_entity_id, true | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#image-mode-column-title-icon { | ||
padding: 5px; | ||
} | ||
.image-mode-column-td-icon { | ||
padding: 6px; | ||
} | ||
.package-mode-column-td-icon { | ||
padding: 4px; | ||
} |
55 changes: 55 additions & 0 deletions
55
webpack/components/extensions/Hosts/FontAwesomeImageModeIcon.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,55 @@ | ||
import React from 'react'; | ||
import propTypes from 'prop-types'; | ||
import { Tooltip } from '@patternfly/react-core'; | ||
import { translate as __ } from 'foremanReact/common/I18n'; | ||
|
||
const FontAwesomeImageModeIcon = ({ fill, margin, title }) => ( | ||
<Tooltip content={title}> | ||
<svg | ||
id="Layer_2" | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 221.37 221.44" | ||
width="14px" | ||
height="14px" | ||
version="1.1" | ||
xmlSpace="preserve" | ||
style={{ | ||
fillRule: 'evenodd', | ||
clipRule: 'evenodd', | ||
strokeLinejoin: 'round', | ||
strokeMiterlimit: 2, | ||
margin: margin || '-2px', | ||
}} | ||
> | ||
<g id="Layer_1-2"> | ||
<circle | ||
fill={fill} | ||
className="cls-1" | ||
cx="77.01" | ||
cy="87" | ||
r="20.41" | ||
transform="translate(-39.07 79) rotate(-45)" | ||
/> | ||
<path | ||
className="cls-1" | ||
fill={fill} | ||
d="M205.48,40.09L120.07,1.72c-5.84-2.28-12.28-2.29-18.13-.02L15.93,40.09h0C6.25,43.85,0,52.98,0,63.37v91.2c0,9.48,5.5,18.28,14.02,22.44l85.84,41.91c3.45,1.68,7.2,2.52,10.95,2.52,4.03,0,8.05-.97,11.69-2.89l85.58-45.31c8.2-4.34,13.29-12.8,13.29-22.07V63.35c0-10.36-6.24-19.49-15.88-23.26ZM110.97,28.55l82.09,37.07v60.44l-39.44-37.64c-2.09-2.09-5.48-2.09-7.57,0l-60.43,60.43-24.76-24.76c-2.09-2.09-5.48-2.09-7.57,0l-25,26.93v-85.39L110.97,28.55Z" | ||
/> | ||
</g> | ||
</svg> | ||
</Tooltip> | ||
); | ||
|
||
FontAwesomeImageModeIcon.propTypes = { | ||
fill: propTypes.string, | ||
margin: propTypes.string, | ||
title: propTypes.string, | ||
}; | ||
|
||
FontAwesomeImageModeIcon.defaultProps = { | ||
fill: 'var(--pf-global--palette--black-600)', | ||
margin: '-2px', | ||
title: __('Image mode'), | ||
}; | ||
|
||
export default FontAwesomeImageModeIcon; |
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