Skip to content

Commit

Permalink
Add phys flow name to table in logical flow view
Browse files Browse the repository at this point in the history
#CTCTOWALTZ-3004
#6908
  • Loading branch information
jessica-woodland-scott-db committed Feb 27, 2024
1 parent fedc7dd commit 6d2a890
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ import {CORE_API} from "../common/services/core-api-utils";


export const columnDef = {
name: mkLinkGridCell("Name", "specification.name", "physicalFlow.id", "main.physical-flow.view"),
name: mkLinkGridCell("Name", "physicalFlow.name", "physicalFlow.id", "main.physical-flow.view"),
specName: mkLinkGridCell("Specification Name", "specification.name", "specification.id", "main.physical-specification.view"),
extId: {field: "physicalFlow.externalId", displayName: "Ext. Id"},
format: {field: "specification.format", displayName: "Format", cellFilter: "toDisplayName:\"DataFormatKind\""},
transport: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function controller($q, serviceBroker) {

const defaultColumnDefs = [
withWidth(columnDef.name, "20%"),
withWidth(columnDef.specName, "20%"),
columnDef.extId,
columnDef.format,
columnDef.transport,
Expand All @@ -48,13 +49,13 @@ function controller($q, serviceBroker) {
columnDef.description
];

vm.$onInit = () => {
vm.$onChanges = () => {

vm.columnDefs = _.isEmpty(vm.optionalColumnDefs)
? defaultColumnDefs
: vm.optionalColumnDefs;

vm.tableData = fetchData(vm.parentEntityRef, $q, serviceBroker)
fetchData(vm.parentEntityRef, $q, serviceBroker)
.then(data => vm.tableData = data);

vm.selectorOptions = mkSelectionOptions(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function determineColumnDefs(entityKind) {
switch (entityKind) {
case "PHYSICAL_SPECIFICATION":
return [
columnDef.name,
columnDef.extId,
columnDef.source,
columnDef.target,
Expand All @@ -42,9 +43,9 @@ function determineColumnDefs(entityKind) {
case "TAG":
return [
columnDef.name,
columnDef.extId,
columnDef.source,
columnDef.target,
columnDef.extId,
columnDef.frequency,
columnDef.description];
default:
Expand Down

0 comments on commit 6d2a890

Please sign in to comment.