Skip to content

Commit 254a234

Browse files
Merge pull request #7020 from deutschebank/db-contrib/waltz-6159-physical-flow-name-visibility
Db contrib/waltz 6159 physical flow name visibility
2 parents 5c8974d + 3c4e0f5 commit 254a234

15 files changed

Lines changed: 128 additions & 96 deletions

File tree

waltz-data/src/main/java/org/finos/waltz/data/physical_flow/PhysicalFlowDao.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public class PhysicalFlowDao {
8080
PhysicalFlowRecord record = r.into(PHYSICAL_FLOW);
8181
return ImmutablePhysicalFlow.builder()
8282
.id(record.getId())
83+
.name(Optional.ofNullable(record.getName()).orElse(""))
8384
.provenance(record.getProvenance())
8485
.specificationId(record.getSpecificationId())
8586
.basisOffset(record.getBasisOffset())

waltz-model/src/main/java/org/finos/waltz/model/physical_flow/PhysicalFlow.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
@JsonDeserialize(as = ImmutablePhysicalFlow.class)
3838
public abstract class PhysicalFlow implements
3939
IdProvider,
40+
NameProvider,
4041
IsRemovedProvider,
4142
CreatedUserTimestampProvider,
4243
DescriptionProvider,

waltz-ng/client/common/components/entity-link/entity-icon-label.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@
1212
</waltz-icon>
1313

1414
<span data-testid="entity-name"
15-
ng-bind="$ctrl.entityRef.name"
1615
ng-class="{
1716
'weil-entity-removed': $ctrl.entityRef.entityLifecycleStatus === 'REMOVED',
1817
'weil-entity-pending': $ctrl.entityRef.entityLifecycleStatus === 'PENDING'
1918
}">
19+
<span ng-bind="$ctrl.entityRef.name"
20+
ng-if="$ctrl.entityRef.name">
21+
</span>
22+
<span ng-if="!$ctrl.entityRef.name">-</span>
2023
</span>
2124

2225
<span data-testid="entity-external-id"

waltz-ng/client/common/grid-utils.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,13 @@ export function mkLinkGridCell(columnHeading,
130130
cellTemplate: `
131131
<div class="ui-grid-cell-contents">
132132
<a ui-sref="${linkNavViewName} ({ id: row.entity.${linkIdField} })"
133+
ng-if="COL_FIELD"
133134
ng-bind="COL_FIELD">
134135
</a>
136+
<a ui-sref="${linkNavViewName} ({ id: row.entity.${linkIdField} })"
137+
ng-if="!COL_FIELD">
138+
-
139+
</a>
135140
</div>`
136141
});
137142
}

waltz-ng/client/common/markdown-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ showdown.extension("bootstrap-tables", () => {
2323
return [{
2424
type: "output",
2525
regex: /<table>/g,
26-
replace: "<table class='table'>",
26+
replace: "<table class='table table-condensed table-striped small'>",
2727
}]
2828
});
2929

waltz-ng/client/common/services/enums/entity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ export const entity = {
342342
PHYSICAL_FLOW: {
343343
key: "PHYSICAL_FLOW",
344344
name: "Physical Flow",
345-
icon: "qrcode",
345+
icon: "arrows-turn-to-dots",
346346
description: null,
347347
position: 2200
348348
},

waltz-ng/client/common/svelte/EntityLabel.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
{#if showIcon}
1818
<EntityIcon kind={ref?.kind}/>
1919
{/if}
20-
<span class:removed={ref?.entityLifecycleStatus === 'REMOVED' || ref?.isRemoved}>
20+
<span class:removed={ref?.entityLifecycleStatus === 'REMOVED' || ref?.isRemoved}
21+
class="force-wrap">
2122
{name}
2223
</span>
2324

waltz-ng/client/logical-flow/components/source-and-target-panel/source-and-target-panel.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ <h4>
201201
<thead>
202202
<tr>
203203
<th>Name</th>
204+
<th>Specification</th>
204205
<th>Format</th>
205206
<th>Transport</th>
206207
<th>Frequency</th>
@@ -210,14 +211,20 @@ <h4>
210211
<tr ng-repeat="pf in $ctrl.selected.physicalFlows">
211212
<td>
212213
<a ui-sref="main.physical-flow.view ({ id: pf.id })">
213-
<span ng-bind="pf.specification.name"></span>
214+
<span ng-bind="pf.name" ng-if="pf.name"></span>
215+
<span ng-if="!pf.name"><waltz-icon name="arrows-turn-to-dots"></waltz-icon> - </span>
214216
</a>
215217
&nbsp;
216218
<waltz-icon name="hourglass-2"
217219
ng-if="$ctrl.selected.changeUnitsByPhysicalFlowId[pf.id]"
218220
uib-tooltip="Changes planned for this physical flow">
219221
</waltz-icon>
220222
</td>
223+
<td>
224+
<a ui-sref="main.physical-specification.view ({ id: pf.specification.id })">
225+
<span ng-bind="pf.specification.name"></span>
226+
</a>
227+
</td>
221228
<td>
222229
<waltz-enum-value type="'DataFormatKind'"
223230
key="pf.specification.format"

waltz-ng/client/physical-flow/physical-flow-table-utilities.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ import {CORE_API} from "../common/services/core-api-utils";
2222

2323

2424
export const columnDef = {
25-
name: mkLinkGridCell("Name", "specification.name", "physicalFlow.id", "main.physical-flow.view"),
25+
name: mkEntityLinkGridCell("Physical Flow Name", "physicalFlow"),
26+
specName: mkEntityLinkGridCell("Specification Name", "specification"),
2627
extId: {field: "physicalFlow.externalId", displayName: "Ext. Id"},
2728
format: {field: "specification.format", displayName: "Format", cellFilter: "toDisplayName:\"DataFormatKind\""},
2829
transport: {

waltz-ng/client/physical-flows/components/flow-table/physical-flow-table.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function controller($q, serviceBroker) {
4040

4141
const defaultColumnDefs = [
4242
withWidth(columnDef.name, "20%"),
43+
withWidth(columnDef.specName, "20%"),
4344
columnDef.extId,
4445
columnDef.format,
4546
columnDef.transport,
@@ -48,13 +49,13 @@ function controller($q, serviceBroker) {
4849
columnDef.description
4950
];
5051

51-
vm.$onInit = () => {
52+
vm.$onChanges = () => {
5253

5354
vm.columnDefs = _.isEmpty(vm.optionalColumnDefs)
5455
? defaultColumnDefs
5556
: vm.optionalColumnDefs;
5657

57-
vm.tableData = fetchData(vm.parentEntityRef, $q, serviceBroker)
58+
fetchData(vm.parentEntityRef, $q, serviceBroker)
5859
.then(data => vm.tableData = data);
5960

6061
vm.selectorOptions = mkSelectionOptions(

0 commit comments

Comments
 (0)