Skip to content

Commit

Permalink
chore(RHIF-180): Supress data in sentry/hotjar (#1784)
Browse files Browse the repository at this point in the history
  • Loading branch information
adonispuente authored Mar 15, 2023
1 parent ae4e163 commit cf8da9d
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/Utilities/DeleteModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const DeleteModal = ({ handleModalToggle, isModalOpen, currentSytems, onConfirm
return <Modal
variant="small"
title="Remove from inventory"
className="ins-c-inventory__table--remove"
className="ins-c-inventory__table--remove sentry-mask data-hj-suppress"
ouiaId="inventory-delete-modal"
isOpen={isModalOpen}
onClose={() => handleModalToggle(false)}
Expand Down
10 changes: 5 additions & 5 deletions src/Utilities/__snapshots__/DeleteModal.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`EntityTable DOM should render correctly 1`] = `
aria-describedby=""
aria-label=""
aria-labelledby=""
className="ins-c-inventory__table--remove"
className="ins-c-inventory__table--remove sentry-mask data-hj-suppress"
hasNoBodyWrapper={false}
isOpen={false}
onClose={[Function]}
Expand Down Expand Up @@ -103,7 +103,7 @@ exports[`EntityTable DOM should render correctly with multiple systems - count 1
aria-describedby=""
aria-label=""
aria-labelledby=""
className="ins-c-inventory__table--remove"
className="ins-c-inventory__table--remove sentry-mask data-hj-suppress"
hasNoBodyWrapper={false}
isOpen={true}
onClose={[Function]}
Expand Down Expand Up @@ -200,7 +200,7 @@ exports[`EntityTable DOM should render correctly with multiple systems - count 2
aria-describedby=""
aria-label=""
aria-labelledby=""
className="ins-c-inventory__table--remove"
className="ins-c-inventory__table--remove sentry-mask data-hj-suppress"
hasNoBodyWrapper={false}
isOpen={true}
onClose={[Function]}
Expand Down Expand Up @@ -297,7 +297,7 @@ exports[`EntityTable DOM should render correctly with one system 1`] = `
aria-describedby=""
aria-label=""
aria-labelledby=""
className="ins-c-inventory__table--remove"
className="ins-c-inventory__table--remove sentry-mask data-hj-suppress"
hasNoBodyWrapper={false}
isOpen={true}
onClose={[Function]}
Expand Down Expand Up @@ -394,7 +394,7 @@ exports[`EntityTable DOM should render correctly with one system 2`] = `
aria-describedby=""
aria-label=""
aria-labelledby=""
className="ins-c-inventory__table--remove"
className="ins-c-inventory__table--remove sentry-mask data-hj-suppress"
hasNoBodyWrapper={false}
isOpen={true}
onClose={[Function]}
Expand Down
2 changes: 2 additions & 0 deletions src/components/GeneralInfo/SystemCard/SystemCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class SystemCardCore extends Component {
inputOuiaId="input-edit-display-name"
onCancel={ this.onCancel }
onSubmit={ this.onSubmit(setDisplayName, entity && entity.display_name) }
className ='sentry-mask data-hj-suppress'
/>
<TextInputModal
isOpen={ isAnsibleHostModalOpen }
Expand All @@ -182,6 +183,7 @@ class SystemCardCore extends Component {
inputOuiaId="input-edit-ansible-name"
onCancel={ this.onCancel }
onSubmit={ this.onSubmit(setAnsibleHost, entity && this.getAnsibleHost()) }
className ='sentry-mask data-hj-suppress'
/>
</Fragment>
);
Expand Down
1 change: 1 addition & 0 deletions src/components/InventoryDetail/TopBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ const TopBar = ({
}
{ isModalOpen && (
<DeleteModal
className ='sentry-mask data-hj-suppress'
handleModalToggle={() => setIsModalOpen(!isModalOpen)}
isModalOpen={isModalOpen}
currentSytems={entity}
Expand Down
2 changes: 1 addition & 1 deletion src/components/InventoryTable/TitleColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const onRowClick = (event, key, { loaded, onRowClick: rowClick, noDetail }) => {
* @param {*} props additional props passed from `EntityTable` - holds any props passed to inventory table.
*/
const TitleColumn = (data, id, item, props) => (
<div className="ins-composed-col">
<div className="ins-composed-col sentry-mask data-hj-suppress">
<div key="os_release">{item?.os_release}</div>
<div key="data" className={props?.noDetail ? 'ins-m-nodetail' : ''}>
{ props?.noDetail ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ exports[`EntityTable DOM should render correctly - compact 1`] = `
data-label="One"
>
<div
class="ins-composed-col"
class="ins-composed-col sentry-mask data-hj-suppress"
>
<div />
<div
Expand Down Expand Up @@ -283,7 +283,7 @@ exports[`EntityTable DOM should render correctly - is expandable 1`] = `
"cells": Array [
<React.Fragment>
<div
className="ins-composed-col"
className="ins-composed-col sentry-mask data-hj-suppress"
>
<div />
<div
Expand Down Expand Up @@ -468,7 +468,7 @@ exports[`EntityTable DOM should render correctly - with actions 1`] = `
"cells": Array [
<React.Fragment>
<div
className="ins-composed-col"
className="ins-composed-col sentry-mask data-hj-suppress"
>
<div />
<div
Expand Down Expand Up @@ -601,7 +601,7 @@ exports[`EntityTable DOM should render correctly - without checkbox 1`] = `
"cells": Array [
<React.Fragment>
<div
className="ins-composed-col"
className="ins-composed-col sentry-mask data-hj-suppress"
>
<div />
<div
Expand Down Expand Up @@ -737,7 +737,7 @@ exports[`EntityTable DOM should render correctly 1`] = `
data-label="One"
>
<div
class="ins-composed-col"
class="ins-composed-col sentry-mask data-hj-suppress"
>
<div />
<div
Expand Down Expand Up @@ -808,7 +808,7 @@ exports[`EntityTable DOM sort by should render correctly - is expandable 1`] = `
"cells": Array [
<React.Fragment>
<div
className="ins-composed-col"
className="ins-composed-col sentry-mask data-hj-suppress"
>
<div />
<div
Expand Down Expand Up @@ -887,7 +887,7 @@ exports[`EntityTable DOM sort by should render correctly - without checkbox 1`]
"cells": Array [
<React.Fragment>
<div
className="ins-composed-col"
className="ins-composed-col sentry-mask data-hj-suppress"
>
<div />
<div
Expand Down Expand Up @@ -967,7 +967,7 @@ exports[`EntityTable DOM sort by should render correctly 1`] = `
"cells": Array [
<React.Fragment>
<div
className="ins-composed-col"
className="ins-composed-col sentry-mask data-hj-suppress"
>
<div />
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`TitleColumn should render correctly no detail with data 1`] = `
<Cmp>
<div
className="ins-composed-col"
className="ins-composed-col sentry-mask data-hj-suppress"
>
<div
key="os_release"
Expand All @@ -23,7 +23,7 @@ exports[`TitleColumn should render correctly no detail with data 1`] = `
exports[`TitleColumn should render correctly with NO data 1`] = `
<Cmp>
<div
className="ins-composed-col"
className="ins-composed-col sentry-mask data-hj-suppress"
>
<div
key="os_release"
Expand All @@ -45,7 +45,7 @@ exports[`TitleColumn should render correctly with NO data 1`] = `
exports[`TitleColumn should render correctly with data 1`] = `
<Cmp>
<div
className="ins-composed-col"
className="ins-composed-col sentry-mask data-hj-suppress"
>
<div
key="os_release"
Expand Down
1 change: 1 addition & 0 deletions src/routes/InventoryTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ const Inventory = ({
</Grid>
</Main>
<DeleteModal
className ='sentry-mask data-hj-suppress'
handleModalToggle={handleModalToggle}
isModalOpen={isModalOpen}
currentSytems={currentSytem}
Expand Down

0 comments on commit cf8da9d

Please sign in to comment.