This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update from fix-cim-impacted-objects (#184)
* Updated CHANGELOG * Refactored the impacted services * Show impacted objects with and without subscriptions * New GUI for CIM impacted objects * Fixed update of impact override * Fixed react select usage with dark theme + use absolute paths for import * Cleanup in typescript and components * Fixed version number and Changelog. Added Changelog and Readme to the linter. * Fixed discussion items Co-authored-by: René Dohmen <[email protected]>
- Loading branch information
1 parent
46362fb
commit 616aa5b
Showing
13 changed files
with
598 additions
and
392 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { EuiBasicTable } from "@elastic/eui"; | ||
import { BackgroundJobLog } from "custom/types"; | ||
import { renderStringAsDateTime } from "custom/Utils"; | ||
import React, { Fragment } from "react"; | ||
import { WrappedComponentProps, injectIntl } from "react-intl"; | ||
|
||
interface IProps extends WrappedComponentProps { | ||
data: BackgroundJobLog[]; | ||
} | ||
|
||
const BackgroundJobLogs = ({ data }: IProps) => { | ||
let columns = [ | ||
{ | ||
field: "entry_time", | ||
name: "Date", | ||
render: (entry_time: string, data: any) => renderStringAsDateTime(data.entry_time), | ||
width: 200, | ||
schema: "date", | ||
}, | ||
{ | ||
field: "process_state", | ||
name: "State", | ||
truncateText: true, | ||
sortable: true, | ||
width: 100, | ||
}, | ||
{ | ||
field: "message", | ||
name: "Log message", | ||
sortable: true, | ||
truncateText: true, | ||
width: "40%", | ||
}, | ||
{ | ||
field: "subscription_id", | ||
name: "Subscription ID", | ||
sortable: true, | ||
width: 200, | ||
}, | ||
{ | ||
field: "customer ID", | ||
name: "Customer ID", | ||
sortable: true, | ||
width: 200, | ||
}, | ||
]; | ||
|
||
return ( | ||
<Fragment> | ||
<EuiBasicTable | ||
tableCaption={`Background jobs log table`} | ||
items={data} | ||
// @ts-ignore | ||
columns={columns} | ||
/> | ||
</Fragment> | ||
); | ||
}; | ||
export default injectIntl(BackgroundJobLogs); |
Oops, something went wrong.