Skip to content

Commit

Permalink
avniproject/avni-client#1172 | Show new fields in rule failure teleme…
Browse files Browse the repository at this point in the history
…try list
  • Loading branch information
himeshr committed Nov 15, 2023
1 parent 96c587f commit 73b027c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"material-table": "1.43.0",
"moment": "^2.22.2",
"openchs-idi": "git+https://github.com/avniproject/openchs-idi#b6c57e051b91ed4bc2634f4f087dba51cc3a01c8",
"openchs-models": "1.30.87",
"openchs-models": "1.30.89",
"popper.js": "^1.14.3",
"prismjs": "^1.17.1",
"prop-types": "^15.7.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Privilege } from "openchs-models";
import { Close, MenuOpen } from "@material-ui/icons";

const tableRef = React.createRef();
const refreshTable = ref => ref.current && ref.current.onQueryChange();
const refreshTable = ref => ref.current && ref.current.onQueryChange({ page: 0 });

const STATUS = {
OPEN: 1,
Expand Down Expand Up @@ -52,6 +52,31 @@ const columns = [
title: "Rule UUID",
field: "ruleUuid",
render: rowData => rowData.ruleUuid
},
{
title: "Source",
field: "source",
render: rowData => (
<Fragment>
<span>{rowData.sourceId || ""}</span>
<b>{rowData.sourceType ? " (" + rowData.sourceType + ")" : ""}</b>
</Fragment>
)
},
{
title: "Entity",
field: "entity",
render: rowData => (
<Fragment>
<span>{rowData.entityId || ""}</span>
<b>{rowData.entityType ? " (" + rowData.entityType + ")" : ""}</b>
</Fragment>
)
},
{
title: "App",
field: "app",
render: rowData => rowData.appType
}
];

Expand Down Expand Up @@ -177,8 +202,6 @@ const RuleFailureTelemetryList = ({ userInfo }) => {
data={fetchData(resourceName, resourceUrl, queryParams)}
detailPanel={[
{
icon: "expand_more",
openIcon: "expand_less",
tooltip: "Show Stacktrace",
render: rowData => {
return <div>{rowData.stacktrace}</div>;
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15606,10 +15606,10 @@ open@^7.1.0:
grunt "^1.0.3"
webpack "^4.13.0"

[email protected].78:
version "1.30.78"
resolved "https://registry.yarnpkg.com/openchs-models/-/openchs-models-1.30.78.tgz#767b4b7043d6289ffee99c6e94d558b0d3c3dfc0"
integrity sha512-UFXR3VPlKaslrymy6CB6kIQg+Wpf8N0qIcwBuYKsrpMeIZ5ehM3n9bAmkQXaOtK3aH4DfGGH7L/yYTxI4uBYtQ==
[email protected].89:
version "1.30.89"
resolved "https://registry.yarnpkg.com/openchs-models/-/openchs-models-1.30.89.tgz#fbe3e49e7c85b00f5c1aa1cd13d8bb0d2dad0802"
integrity sha512-8sCkZoXB//9N/eSOiXoFr25DiPL01y65XkcXulm/wi5946R35bEpTwP005Y+GThHY2RrAouTYcfs1Wpi/Q/ekA==

openchs-models@^0.2.25:
version "0.2.86"
Expand Down

0 comments on commit 73b027c

Please sign in to comment.