Skip to content

Commit 6b6513c

Browse files
414 - Removes existing console logs, rename them to error or disable the rule locally (resulting in a passing build)
1 parent 56d4e6c commit 6b6513c

File tree

9 files changed

+10
-14
lines changed

9 files changed

+10
-14
lines changed

apps/wfo-ui-surf/components/WfoServiceTicketDetailPage/WfoSubscriptionImpactTable.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ export const WfoSubscriptionImpactTable = () => {
4848
const toggleDetails = (object: ServiceTicketImpactedObjectColumns) => {
4949
const itemIdToExpandedRowMapValues = { ...itemIdToExpandedRowMap };
5050
const id = object.subscription_id ? object.subscription_id : '0';
51-
console.log(itemIdToExpandedRowMapValues, 'toggleDetails');
52-
console.log(object, 'object');
5351

5452
if (itemIdToExpandedRowMapValues[id]) {
5553
delete itemIdToExpandedRowMapValues[id];
@@ -85,11 +83,6 @@ export const WfoSubscriptionImpactTable = () => {
8583
const itemIdToExpandedRowMapValues = {
8684
...itemIdToExpandedRowMap,
8785
};
88-
console.log('OBJECT', object);
89-
console.log(
90-
itemIdToExpandedRowMapValues,
91-
'itemIdToExpandedRowMapValues',
92-
);
9386
return value ? (
9487
<EuiButtonIcon
9588
onClick={() => toggleDetails(object)}

apps/wfo-ui-surf/pages/forms.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { CreateForm } from '@orchestrator-ui/orchestrator-ui-components';
66
export function FormsPage() {
77
/* eslint-disable @typescript-eslint/no-explicit-any */
88
const handleSubmit = (userInputs: any) => {
9+
// eslint-disable-next-line no-console
910
console.log('Submitted: ', userInputs);
1011
};
1112

apps/wfo-ui/pages/forms.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { CreateForm } from '@orchestrator-ui/orchestrator-ui-components';
66
export function FormsPage() {
77
/* eslint-disable @typescript-eslint/no-explicit-any */
88
const handleSubmit = (userInputs: any) => {
9+
// eslint-disable-next-line no-console
910
console.log('Submitted: ', userInputs);
1011
};
1112

packages/orchestrator-ui-components/src/api/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ export class BaseApiClient {
4747
.then((res) => res.data)
4848
.catch((err) => {
4949
if (showErrorDialog) {
50-
console.debug(
51-
`Show error dialog for GET ${path} returning ${err?.response?.status}`,
52-
);
5350
setTimeout(() => {
5451
throw err;
5552
}, 250);

packages/orchestrator-ui-components/src/components/WfoForms/CreateForm.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export function CreateForm(props: IProps) {
3434
const submit = useCallback(
3535
(userInputs: object[]) => {
3636
return apiClient.cimStartForm(formKey, userInputs).then((form) => {
37-
console.log('Submit {formkey} =', formKey);
3837
handleSubmit(form);
3938
});
4039
},

packages/orchestrator-ui-components/src/components/WfoForms/UserInputForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ function UserInputForm({
448448
question: string | undefined,
449449
confirm: ConfirmDialogActions['closeConfirmDialog'],
450450
) => {
451+
// eslint-disable-next-line no-console
451452
console.log(e, question, confirm);
452453
alert('TODO: Implement on buttonClick cancel with confirm modal');
453454
// https://github.com/workfloworchestrator/orchestrator-ui/issues/325

packages/orchestrator-ui-components/src/components/WfoForms/formFields/IpPrefixTableField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default class IpPrefixTableField extends React.PureComponent<IProps> {
123123
? aVal.toLowerCase().localeCompare(bVal.toLowerCase())
124124
: (aVal as number) - (bVal as number);
125125
} catch (e) {
126-
console.log(e);
126+
console.error(e);
127127
}
128128
return 0;
129129
};

packages/orchestrator-ui-components/src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ export const WfoStepList = React.forwardRef(
6161
behavior: 'smooth',
6262
});
6363
} catch {
64-
console.log('Error scrolling to step with stepId ', stepId);
64+
console.error(
65+
'Error scrolling to step with stepId ',
66+
stepId,
67+
);
6568
}
6669
},
6770
}));

packages/orchestrator-ui-components/src/pages/workflow/WfoStartWorkflowPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export const WfoStartWorkflowPage = ({
7272
const process = result as { id: string };
7373
// TODO: Use toast hook to display success message
7474
if (process.id) {
75+
// eslint-disable-next-line no-console
7576
console.log(
7677
'resolver successfullly!: ',
7778
process.id,
@@ -92,7 +93,7 @@ export const WfoStartWorkflowPage = ({
9293
503,
9394
(json) => {
9495
// TODO: Use the toastMessage hook to display an engine down error message
95-
console.log('engine down!!!', json);
96+
console.error('engine down!!!', json);
9697
router.push(PATH_PROCESSES);
9798
},
9899
);

0 commit comments

Comments
 (0)