Skip to content

Commit

Permalink
chore(RHIF-180): Supress data in sentry/hotjar
Browse files Browse the repository at this point in the history
  • Loading branch information
adonispuente committed Mar 14, 2023
1 parent a82ed4f commit 2aad220
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 23 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
3 changes: 2 additions & 1 deletion src/components/InventoryDetail/TopBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ const TopBar = ({
variant: 'warning',
title: 'Delete operation initiated',
description: `Removal of ${entity.display_name} started.`,
dismissable: false
dismissable: false,
className: 'sentry-mask data-hj-suppress'
});
deleteEntity(
[entity.id],
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
3 changes: 2 additions & 1 deletion src/routes/InventoryTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ const Inventory = ({
variant: 'warning',
title: 'Delete operation initiated',
description: `Removal of ${displayName} started.`,
dismissable: false
dismissable: false,
className: 'sentry-mask data-hj-suppress'
}));
dispatch(reloadWrapper(actions.deleteEntity(removeSystems, displayName), () => onRefresh({ filters })));
handleModalToggle(false);
Expand Down
2 changes: 2 additions & 0 deletions src/routes/InventoryTable.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ describe('InventoryTable', () => {

expect(actions[0]).toEqual({
payload: {
className: 'sentry-mask data-hj-suppress',
description: 'Removal of RHIQE.31ea86a9-a439-4422-9516-27c879057535.test started.',
dismissable: false,
id: 'remove-initiated',
Expand All @@ -219,6 +220,7 @@ describe('InventoryTable', () => {
meta: {
notifications: {
fulfilled: {
className: 'sentry-mask data-hj-suppress',
description: 'RHIQE.31ea86a9-a439-4422-9516-27c879057535.test has been successfully removed.',
dismissable: true,
title: 'Delete operation finished',
Expand Down
6 changes: 4 additions & 2 deletions src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export const deleteEntity = (systems, displayName) => ({
variant: 'success',
title: 'Delete operation finished',
description: `${displayName} has been successfully removed.`,
dismissable: true
dismissable: true,
className: 'sentry-mask data-hj-suppress'
}
},
systems
Expand Down Expand Up @@ -43,7 +44,8 @@ export const editDisplayName = (id, value, origValue) => ({
fulfilled: {
variant: 'success',
title: `Display name for entity with ID ${id} has been changed to ${value}`,
dismissable: true
dismissable: true,
className: 'sentry-mask data-hj-suppress'
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/store/actions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ describe('editDisplayName', () => {
origValue: undefined,
notifications: {
fulfilled: {
className: 'sentry-mask data-hj-suppress',
variant: 'success',
title: 'Display name for entity with ID 4 has been changed to test-value',
dismissable: true
Expand Down
3 changes: 2 additions & 1 deletion src/store/inventory-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export const deleteEntity = (systems, displayName) => ({
variant: 'success',
title: 'Delete operation finished',
description: `${displayName} has been successfully removed.`,
dismissable: true
dismissable: true,
className: 'sentry-mask data-hj-suppress'
}
},
systems
Expand Down

0 comments on commit 2aad220

Please sign in to comment.