Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waltz 6948 test data #6971

Draft
wants to merge 100 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
0181a26
Sample data loader
davidwatkins73 Jan 28, 2024
756cd3c
Sample data loader
davidwatkins73 Jan 29, 2024
e938066
Prep 1.58
davidwatkins73 Feb 1, 2024
1658787
Merge pull request #6973 from davidwatkins73/waltz-6910-prep-158
jessica-woodland-scott-db Feb 1, 2024
b9284b7
Report grid bug with survey responses
jessica-woodland-scott-db Feb 5, 2024
ac8e54a
Transfer survey templates between environments
db-waltz Feb 5, 2024
d6221ff
Transfer survey templates between environments
db-waltz Feb 5, 2024
8ecacc7
Add default value to logical_flow external_id
jessica-woodland-scott-db Feb 6, 2024
98226e0
Transfer survey templates between environments
db-waltz Feb 6, 2024
dd9f595
Pull request #345: Report grid bug with survey responses
jessica-woodland-scott-db Feb 6, 2024
ac119d6
updated link to Docker README
TL41 Feb 7, 2024
87a5ba4
Merge pull request #6979 from deutschebank/db-contrib/waltz-6975-repo…
davidwatkins73 Feb 7, 2024
a737b8d
Pull request #346: Add default value to logical_flow external_id
jessica-woodland-scott-db Feb 7, 2024
acae423
Prep 1.58
davidwatkins73 Feb 8, 2024
e7259c2
Merge pull request #6981 from deutschebank/db-contrib/waltz-6976-lf-e…
davidwatkins73 Feb 8, 2024
dfadacc
Merge pull request #6978 from LeadingPointDev/lp-contrib/waltz-6977-f…
davidwatkins73 Feb 8, 2024
ec2c392
Pull request #347: CTCTOWALTZ-3020 survey export import 6967
db-waltz Feb 8, 2024
e76d107
Merge pull request #6982 from deutschebank/db-contrib/waltz-6967-surv…
davidwatkins73 Feb 9, 2024
7ab92ee
Add primary ratings to app overview
jessica-woodland-scott-db Feb 9, 2024
c036679
Add primary ratings to app overview
jessica-woodland-scott-db Feb 9, 2024
86b15de
Pull request #348: CTCTOWALTZ-3001 primary ratings to app overview 6820
jessica-woodland-scott-db Feb 12, 2024
833d192
Merge pull request #6983 from deutschebank/db-contrib/waltz-6820-prim…
jessica-woodland-scott-db Feb 12, 2024
90ddc69
Archunit test broken where Generic Selector Factory used in Endpoints.
jessica-woodland-scott-db Feb 12, 2024
a49990c
Pull request #349: Archunit test broken where Generic Selector Factor…
jessica-woodland-scott-db Feb 13, 2024
3e4dbbb
Merge pull request #6984 from deutschebank/db-contrib/waltz-6820-prim…
jessica-woodland-scott-db Feb 13, 2024
7dec313
Add category to the measurable ratings page
jessica-woodland-scott-db Feb 13, 2024
6a59569
allow viewing person involvements on physical flows
TL41 Feb 18, 2024
cd5102a
allow viewing person involvements on physical flows
TL41 Feb 18, 2024
7ec54d6
Upgrading postgres to 15 in build
davidwatkins73 Feb 19, 2024
5ad2542
Merge pull request #6988 from LeadingPointDev/lp-contrib/6987-physica…
davidwatkins73 Feb 19, 2024
989016a
Pull request #350: Add category to the measurable ratings page
jessica-woodland-scott-db Feb 19, 2024
19c25ee
Adding badge for Waltz Demo
maoo Feb 19, 2024
f51d4e4
Merge pull request #6989 from finos/waltz-admin-postgres-update-15
davidwatkins73 Feb 21, 2024
75564fa
Merge pull request #6992 from deutschebank/db-contrib/waltz-6985-show…
davidwatkins73 Feb 21, 2024
5014287
Prep 1.58.1
davidwatkins73 Feb 21, 2024
013316a
Merge pull request #6990 from finos/waltz-demo-badge
davidwatkins73 Feb 21, 2024
618c7fb
Merge pull request #6994 from davidwatkins73/waltz-6993-prep-15-8-1
jessica-woodland-scott-db Feb 21, 2024
7d149e8
Add provenance and additional information to the data type section on…
jessica-woodland-scott-db Feb 21, 2024
0eeb2e8
Add provenance and additional information to the data type section on…
jessica-woodland-scott-db Feb 21, 2024
7c49886
Add provenance and additional information to the data type section on…
jessica-woodland-scott-db Feb 21, 2024
581e5be
Add provenance and additional information to the data type section on…
jessica-woodland-scott-db Feb 21, 2024
441f56a
Prevent flow classification rules showing where rating for flow is 'D…
jessica-woodland-scott-db Feb 21, 2024
c63ec9d
Prevent non-concree data types from being removed where there is an u…
jessica-woodland-scott-db Feb 22, 2024
1755f57
Add assessment overview to the involvement kind page
jessica-woodland-scott-db Feb 22, 2024
e8ddcc2
Add involvement kind as an option to the def creation dropdown
jessica-woodland-scott-db Feb 22, 2024
7705bc1
Pull request #351: CTCTOWALTZ-3048 data type section improvements 6986
jessica-woodland-scott-db Feb 22, 2024
58b4d38
Add some additional InlineSelectFieldFactory name and ext id lookups
jessica-woodland-scott-db Feb 22, 2024
b9a8170
Fixing bug with assessments
db-waltz Feb 22, 2024
914e056
Waltz Svelte Component now cascades destroy events from angular to sv…
davidwatkins73 Feb 23, 2024
d1fc69f
Merge pull request #7001 from davidwatkins73/master
davidwatkins73 Feb 23, 2024
ff44a8f
Pull request #353: Fixing bug with assessments
db-waltz Feb 23, 2024
476c60a
Merge pull request #7002 from deutschebank/db-contrib/waltz-6986-data…
davidwatkins73 Feb 23, 2024
43e74f5
Pull request #354: CTCTOWALTZ-3004 add assesments involvement kinds 6908
jessica-woodland-scott-db Feb 23, 2024
44c9d09
Pull request #352: Prevent non-concree data types from being removed …
jessica-woodland-scott-db Feb 23, 2024
f5560f9
Merge pull request #7003 from deutschebank/db-contrib/waltz-6997-asse…
davidwatkins73 Feb 23, 2024
7945a1e
Merge pull request #7004 from deutschebank/db-contrib/waltz-6908-add-…
davidwatkins73 Feb 23, 2024
c44fc71
Merge pull request #7005 from deutschebank/db-contrib/waltz-6998-prev…
davidwatkins73 Feb 23, 2024
f4316cb
Update FlowClassificationRuleService.java
davidwatkins73 Feb 23, 2024
5b7a50e
Merge pull request #7006 from finos/davidwatkins73-patch-5
davidwatkins73 Feb 23, 2024
8b65327
Fixes for datatype section and involvement kind assessments
db-waltz Feb 23, 2024
ba5d99d
Clarifying text on the org unit column
davidwatkins73 Feb 24, 2024
132cf12
Merge pull request #7009 from davidwatkins73/waltz-6940-stats-col
jessica-woodland-scott-db Feb 26, 2024
0af7b9a
Pull request #355: Fixes for datatype section and involvement kind as…
db-waltz Feb 26, 2024
5c8974d
Merge pull request #7010 from deutschebank/db-contrib/waltz-7008-dt-bug
davidwatkins73 Feb 26, 2024
8404999
Add physical flow name to model and the physical flow overview
jessica-woodland-scott-db Feb 27, 2024
fedc7dd
Style physical flow section
jessica-woodland-scott-db Feb 27, 2024
6d2a890
Add phys flow name to table in logical flow view
jessica-woodland-scott-db Feb 27, 2024
f5c5352
Default when no value provided on link cell to '-' for clickable link
jessica-woodland-scott-db Feb 27, 2024
40ecd6e
Default when no value provided on link cell to '-' for clickable link
jessica-woodland-scott-db Feb 27, 2024
3c4e0f5
Pull request #356: CTCTOWALTZ-3073 phys flow name 6159
jessica-woodland-scott-db Feb 28, 2024
81acced
Delete .github/workflows/meetings.yml since deprecated
maoo Feb 28, 2024
254a234
Merge pull request #7020 from deutschebank/db-contrib/waltz-6159-phys…
jessica-woodland-scott-db Feb 29, 2024
3376b2e
Sample data loader
davidwatkins73 Jan 28, 2024
a8072b8
Sample data loader
davidwatkins73 Jan 29, 2024
17665aa
Make name nullable and add to the flow registration screen
jessica-woodland-scott-db Mar 4, 2024
e8614a5
Pull request #357: Make name nullable and add to the flow registratio…
jessica-woodland-scott-db Mar 8, 2024
ab3b04a
Merge pull request #7026 from deutschebank/db-contrib/waltz-7022-phys…
davidwatkins73 Mar 8, 2024
e2dd622
Update versions
jessica-woodland-scott-db Mar 11, 2024
1ddd016
Pull request #358: Update versions
jessica-woodland-scott-db Mar 13, 2024
531f6ac
Merge pull request #7029 from deutschebank/db-contrib/waltz-7027-upda…
jessica-woodland-scott-db Mar 14, 2024
0bfc1a6
Update versions
jessica-woodland-scott-db Mar 15, 2024
1e290b8
Update versions
jessica-woodland-scott-db Mar 15, 2024
04b690d
Add directionality to flow classification rules
jessica-woodland-scott-db Mar 15, 2024
34c7ff6
Survey instance shows the contact email
davidwatkins73 Mar 16, 2024
57de732
wip
davidwatkins73 Mar 17, 2024
9ccbc97
Merge remote-tracking branch 'origin/waltz-6948-test-data' into waltz…
davidwatkins73 Mar 17, 2024
5635408
Pull request #359: CTCTOWALTZ-3090 ddl for fcr directionality 7032
jessica-woodland-scott-db Mar 19, 2024
74949f6
Merge pull request #7033 from davidwatkins73/waltz-7030-survey-contact
davidwatkins73 Mar 19, 2024
c49a2c2
Merge pull request #7035 from deutschebank/db-contrib/waltz-7032-flow…
davidwatkins73 Mar 19, 2024
2c73f8a
Merge pull request #7016 from finos/delete-meeting-action-deprecated
davidwatkins73 Mar 20, 2024
8278ce7
Report Grids: entity stats have view options
davidwatkins73 Mar 20, 2024
1c4781b
Merge pull request #7038 from davidwatkins73/waltz-7037-grid-stat-vals
kamransaleem Mar 21, 2024
a40efb6
Sample data loader
davidwatkins73 Jan 28, 2024
b609117
Sample data loader
davidwatkins73 Jan 29, 2024
9f9a9be
wip
davidwatkins73 Mar 17, 2024
da12c0e
Sample data loader
davidwatkins73 Jan 28, 2024
14d7d45
Sample data loader
davidwatkins73 Jan 29, 2024
c674ad6
wip
davidwatkins73 Apr 14, 2024
564a9f3
Merge remote-tracking branch 'origin/waltz-6948-test-data' into waltz…
davidwatkins73 Apr 14, 2024
1543663
wip
davidwatkins73 May 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

services:
postgres:
image: postgres:11
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_DB: waltz
Expand Down
88 changes: 0 additions & 88 deletions .github/workflows/meetings.yml

This file was deleted.

11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ Learn more
Getting started
- [Building](docs/development/build.md)
- [Running](waltz-web/README.md)
- [Docker](docker/DOCKER.md)
- [Docker](docker/README.md)

---
[![FINOS Hosted Platform - Waltz Demo](https://img.shields.io/badge/FINOS%20Hosted%20Platform-Waltz%20Demo-blue)](https://demo.waltz.finos.org/)
[![postgres build](https://github.com/finos/waltz/actions/workflows/maven.yml/badge.svg)](https://github.com/finos/waltz/actions)
[![Latest Version](https://badgers.space/github/release/finos/waltz)](https://github.com/finos/waltz/releases)
[![Language Grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/khartec/waltz.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/khartec/waltz/context:javascript)
Expand Down Expand Up @@ -67,10 +68,10 @@ progress and done issues.

**Provisional** dates for upcoming releases:

| Release | Date | Provisional Change Summary |
|---------|---------------|-------------------------------------------------------|
| 1.57 | Jan 16th 2024 | Primary Ratings, Entity Stats, Measurable Rating page |
| 1.58 | Feb 13th 2024 | tbd |
| Release | Date | Provisional Change Summary |
|---------|---------------|-----------------------------------------------------------------------|
| 1.58.1 | Feb 27th 2024 | Minor fixes |
| 1.59 | Mar 26th 2024 | Flow classification rules for aggregator apps (not just distributors) |

See the [releases](https://github.com/finos/waltz/releases) page for historic versions.

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<groupId>org.finos</groupId>
<artifactId>waltz</artifactId>
<version>1.57-SNAPSHOT</version>
<version>1.59-SNAPSHOT</version>
<modules>
<module>waltz-common</module>
<module>waltz-model</module>
Expand Down
2 changes: 1 addition & 1 deletion waltz-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<artifactId>waltz</artifactId>
<groupId>org.finos</groupId>
<version>1.57-SNAPSHOT</version>
<version>1.59-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion waltz-data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<artifactId>waltz</artifactId>
<groupId>org.finos</groupId>
<version>1.57-SNAPSHOT</version>
<version>1.59-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,27 @@ private static Map<EntityKind, Tuple3<Table, Field<Long>, Field<String>>> mkName
mappings.put(EntityKind.APPLICATION, tuple(APPLICATION, APPLICATION.ID, APPLICATION.NAME));
mappings.put(EntityKind.APP_GROUP, tuple(APPLICATION_GROUP, APPLICATION_GROUP.ID, APPLICATION_GROUP.NAME));
mappings.put(EntityKind.CHANGE_INITIATIVE, tuple(CHANGE_INITIATIVE, CHANGE_INITIATIVE.ID, CHANGE_INITIATIVE.NAME));
mappings.put(EntityKind.CHANGE_SET, tuple(CHANGE_SET, CHANGE_SET.ID, CHANGE_SET.NAME));
mappings.put(EntityKind.DATA_TYPE, tuple(DATA_TYPE, DATA_TYPE.ID, DATA_TYPE.NAME));
mappings.put(EntityKind.FLOW_DIAGRAM, tuple(FLOW_DIAGRAM, FLOW_DIAGRAM.ID, FLOW_DIAGRAM.NAME));
mappings.put(EntityKind.END_USER_APPLICATION, tuple(END_USER_APPLICATION, END_USER_APPLICATION.ID, END_USER_APPLICATION.NAME));
mappings.put(EntityKind.ENTITY_RELATIONSHIP, tuple(ENTITY_RELATIONSHIP, ENTITY_RELATIONSHIP.ID, DSL.val("Entity Relationship")));
mappings.put(EntityKind.ENTITY_STATISTIC, tuple(ENTITY_STATISTIC_DEFINITION, ENTITY_STATISTIC_DEFINITION.ID, ENTITY_STATISTIC_DEFINITION.NAME));
mappings.put(EntityKind.FLOW_CLASSIFICATION_RULE, tuple(FLOW_CLASSIFICATION_RULE, FLOW_CLASSIFICATION_RULE.ID, DSL.val("Flow Classification Rule")));
mappings.put(EntityKind.FLOW_DIAGRAM, tuple(FLOW_DIAGRAM, FLOW_DIAGRAM.ID, FLOW_DIAGRAM.NAME));
mappings.put(EntityKind.INVOLVEMENT_KIND, tuple(INVOLVEMENT_KIND, INVOLVEMENT_KIND.ID, INVOLVEMENT_KIND.NAME));
mappings.put(EntityKind.LEGAL_ENTITY, tuple(LEGAL_ENTITY, LEGAL_ENTITY.ID, LEGAL_ENTITY.NAME));
mappings.put(EntityKind.LEGAL_ENTITY_RELATIONSHIP, tuple(LEGAL_ENTITY_RELATIONSHIP, LEGAL_ENTITY_RELATIONSHIP.ID, DSL.val("Legal Entity Relationship")));
mappings.put(EntityKind.LICENCE, tuple(LICENCE, LICENCE.ID, LICENCE.NAME));
mappings.put(EntityKind.LOGICAL_DATA_FLOW, tuple(LOGICAL_FLOW, LOGICAL_FLOW.ID, DSL.val("Logical Flow")));
mappings.put(EntityKind.MEASURABLE, tuple(MEASURABLE, MEASURABLE.ID, MEASURABLE.NAME));
mappings.put(EntityKind.MEASURABLE_RATING, tuple(MEASURABLE_RATING, MEASURABLE_RATING.ID, DSL.val("Measurable Rating")));
mappings.put(EntityKind.MEASURABLE_CATEGORY, tuple(MEASURABLE_CATEGORY, MEASURABLE_CATEGORY.ID, MEASURABLE_CATEGORY.NAME));
mappings.put(EntityKind.ORG_UNIT, tuple(ORGANISATIONAL_UNIT, ORGANISATIONAL_UNIT.ID, ORGANISATIONAL_UNIT.NAME));
mappings.put(EntityKind.PERSON, tuple(PERSON, PERSON.ID, PERSON.DISPLAY_NAME));
mappings.put(EntityKind.PHYSICAL_FLOW, tuple(PHYSICAL_FLOW, PHYSICAL_FLOW.ID, DSL.val("Physical Flow")));
mappings.put(EntityKind.PHYSICAL_SPECIFICATION, tuple(PHYSICAL_SPECIFICATION, PHYSICAL_SPECIFICATION.ID, PHYSICAL_SPECIFICATION.NAME));
mappings.put(EntityKind.SERVER, tuple(SERVER_INFORMATION, SERVER_INFORMATION.ID, SERVER_INFORMATION.HOSTNAME));
mappings.put(EntityKind.LICENCE, tuple(LICENCE, LICENCE.ID, LICENCE.NAME));
mappings.put(EntityKind.SOFTWARE, tuple(SOFTWARE_PACKAGE, SOFTWARE_PACKAGE.ID, SOFTWARE_PACKAGE.NAME));
return mappings;
}

Expand All @@ -142,15 +149,18 @@ private static Map<EntityKind,Tuple3<Table,Field<Long>,Field<String>>> mkExterna
mappings.put(EntityKind.ACTOR, tuple(ACTOR, ACTOR.ID, ACTOR.EXTERNAL_ID));
mappings.put(EntityKind.APPLICATION, tuple(APPLICATION, APPLICATION.ID, APPLICATION.ASSET_CODE));
mappings.put(EntityKind.CHANGE_INITIATIVE, tuple(CHANGE_INITIATIVE, CHANGE_INITIATIVE.ID, CHANGE_INITIATIVE.EXTERNAL_ID));
mappings.put(EntityKind.CHANGE_SET, tuple(CHANGE_SET, CHANGE_SET.ID, CHANGE_SET.EXTERNAL_ID));
mappings.put(EntityKind.DATA_TYPE, tuple(DATA_TYPE, DATA_TYPE.ID, DATA_TYPE.CODE));
mappings.put(EntityKind.END_USER_APPLICATION, tuple(END_USER_APPLICATION, END_USER_APPLICATION.ID, END_USER_APPLICATION.EXTERNAL_ID));
mappings.put(EntityKind.LOGICAL_DATA_FLOW, tuple(LOGICAL_FLOW, LOGICAL_FLOW.ID, LOGICAL_FLOW.EXTERNAL_ID));
mappings.put(EntityKind.LEGAL_ENTITY, tuple(LEGAL_ENTITY, LEGAL_ENTITY.ID, LEGAL_ENTITY.EXTERNAL_ID));
mappings.put(EntityKind.MEASURABLE, tuple(MEASURABLE, MEASURABLE.ID, MEASURABLE.EXTERNAL_ID));
mappings.put(EntityKind.MEASURABLE_CATEGORY, tuple(MEASURABLE_CATEGORY, MEASURABLE_CATEGORY.ID, MEASURABLE_CATEGORY.EXTERNAL_ID));
mappings.put(EntityKind.PERSON, tuple(PERSON, PERSON.ID, PERSON.EMPLOYEE_ID));
mappings.put(EntityKind.PHYSICAL_FLOW, tuple(PHYSICAL_FLOW, PHYSICAL_FLOW.ID, PHYSICAL_FLOW.EXTERNAL_ID));
mappings.put(EntityKind.PHYSICAL_SPECIFICATION, tuple(PHYSICAL_SPECIFICATION, PHYSICAL_SPECIFICATION.ID, PHYSICAL_SPECIFICATION.EXTERNAL_ID));
mappings.put(EntityKind.SERVER, tuple(SERVER_INFORMATION, SERVER_INFORMATION.ID, SERVER_INFORMATION.EXTERNAL_ID));
mappings.put(EntityKind.SOFTWARE, tuple(SOFTWARE_PACKAGE, SOFTWARE_PACKAGE.ID, SOFTWARE_PACKAGE.EXTERNAL_ID));
return mappings;
}

Expand Down
39 changes: 39 additions & 0 deletions waltz-data/src/main/java/org/finos/waltz/data/JooqUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@
import org.finos.waltz.schema.tables.CostKind;
import org.finos.waltz.schema.tables.DataType;
import org.finos.waltz.schema.tables.EntityStatisticDefinition;
import org.finos.waltz.schema.tables.FlowClassification;
import org.finos.waltz.schema.tables.FlowClassificationRule;
import org.finos.waltz.schema.tables.InvolvementKind;
import org.finos.waltz.schema.tables.Measurable;
import org.finos.waltz.schema.tables.MeasurableCategory;
import org.finos.waltz.schema.tables.MeasurableRating;
import org.finos.waltz.schema.tables.OrganisationalUnit;
import org.finos.waltz.schema.tables.PhysicalFlow;
import org.finos.waltz.schema.tables.SurveyQuestion;
import org.finos.waltz.schema.tables.SurveyTemplate;
import org.finos.waltz.schema.tables.records.ChangeLogRecord;
Expand Down Expand Up @@ -537,6 +540,30 @@ public static CommonTableFields<?> determineCommonTableFields(EntityKind kind, S
.descriptionField(esd.DESCRIPTION)
.externalIdField(esd.EXTERNAL_ID)
.build();
case FLOW_CLASSIFICATION_RULE:
FlowClassificationRule fcr = alias == null ? Tables.FLOW_CLASSIFICATION_RULE : Tables.FLOW_CLASSIFICATION_RULE.as(alias);
return ImmutableCommonTableFields
.builder()
.entityKind(EntityKind.FLOW_CLASSIFICATION_RULE)
.table(fcr)
.idField(fcr.ID)
.parentIdField(null)
.nameField(null)
.descriptionField(null)
.externalIdField(null)
.build();
case FLOW_CLASSIFICATION:
FlowClassification fc = alias == null ? Tables.FLOW_CLASSIFICATION : Tables.FLOW_CLASSIFICATION.as(alias);
return ImmutableCommonTableFields
.builder()
.entityKind(EntityKind.FLOW_CLASSIFICATION)
.table(fc)
.idField(fc.ID)
.parentIdField(null)
.nameField(fc.NAME)
.descriptionField(fc.DESCRIPTION)
.externalIdField(fc.CODE)
.build();
case INVOLVEMENT_KIND:
InvolvementKind ik = alias == null ? Tables.INVOLVEMENT_KIND : Tables.INVOLVEMENT_KIND.as(alias);
return ImmutableCommonTableFields
Expand Down Expand Up @@ -621,6 +648,18 @@ public static CommonTableFields<?> determineCommonTableFields(EntityKind kind, S
.descriptionField(st.DESCRIPTION)
.externalIdField(st.EXTERNAL_ID)
.build();
case PHYSICAL_FLOW:
PhysicalFlow pf = alias == null ? Tables.PHYSICAL_FLOW : Tables.PHYSICAL_FLOW.as(alias);
return ImmutableCommonTableFields
.builder()
.entityKind(EntityKind.PHYSICAL_FLOW)
.table(pf)
.idField(pf.ID)
.parentIdField(null)
.nameField(pf.NAME)
.descriptionField(pf.DESCRIPTION)
.externalIdField(pf.EXTERNAL_ID)
.build();
default:
throw new UnsupportedOperationException("Cannot determine table fields for entity kind:" + kind);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,17 @@ public List<EntityReference> findByIdSelectorAsEntityReference(Select<Record1<Lo
}


public Set<DataType> findByIdSelector(Select<Record1<Long>> selector) {
checkNotNull(selector, "selector cannot be null");

return dsl
.select(DATA_TYPE.asterisk())
.from(DATA_TYPE)
.where(DATA_TYPE.ID.in(selector))
.fetchSet(TO_DOMAIN);
}


public DataType getByCode(String code) {
checkNotEmpty(code, "Code cannot be null/empty");
return dsl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

package org.finos.waltz.data.flow_classification_rule;

import org.finos.waltz.model.FlowDirection;
import org.finos.waltz.model.Severity;
import org.finos.waltz.schema.tables.records.FlowClassificationRecord;
import org.finos.waltz.model.flow_classification.FlowClassification;
import org.finos.waltz.model.flow_classification.ImmutableFlowClassification;
Expand Down Expand Up @@ -49,6 +51,9 @@ public class FlowClassificationDao {
.position(record.getPosition())
.isCustom(record.getIsCustom())
.userSelectable(record.getUserSelectable())
.direction(FlowDirection.valueOf(record.getDirection()))
.defaultMessage(record.getDefaultMessage())
.messageSeverity(Severity.valueOf(record.getMessageSeverity()))
.build();
};

Expand Down Expand Up @@ -77,6 +82,15 @@ public FlowClassification getById(long id) {
}


public Set<FlowClassification> findByIds(Set<Long> classificationRuleIds) {
return dsl
.select(FLOW_CLASSIFICATION.fields())
.from(FLOW_CLASSIFICATION)
.where(FLOW_CLASSIFICATION.ID.in(classificationRuleIds))
.fetchSet(TO_DOMAIN_MAPPER);
}


public int remove(long id) {
return dsl
.delete(FLOW_CLASSIFICATION)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.finos.waltz.model.EntityKind;
import org.finos.waltz.model.EntityReference;
import org.finos.waltz.model.ImmutableEntityReference;
import org.finos.waltz.model.Severity;
import org.finos.waltz.model.flow_classification_rule.DiscouragedSource;
import org.finos.waltz.model.flow_classification_rule.FlowClassificationRule;
import org.finos.waltz.model.flow_classification_rule.FlowClassificationRuleCreateCommand;
Expand Down Expand Up @@ -160,6 +161,8 @@ public class FlowClassificationRuleDao {
.lastUpdatedBy(record.getLastUpdatedBy())
.externalId(Optional.ofNullable(record.getExternalId()))
.isReadonly(record.getIsReadonly())
.message(record.getMessage())
.messageSeverity(Severity.valueOf(record.getMessageSeverity()))
.build();
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public class PhysicalFlowDao {
PhysicalFlowRecord record = r.into(PHYSICAL_FLOW);
return ImmutablePhysicalFlow.builder()
.id(record.getId())
.name(record.getName())
.provenance(record.getProvenance())
.specificationId(record.getSpecificationId())
.basisOffset(record.getBasisOffset())
Expand Down Expand Up @@ -196,7 +197,12 @@ public List<PhysicalFlow> findBySelector(Select<Record1<Long>> selector) {

public List<PhysicalFlow> findByAttributesAndSpecification(PhysicalFlow flow) {

Condition nameCondition = flow.name() == null
? PHYSICAL_FLOW.NAME.isNull()
:PHYSICAL_FLOW.NAME.eq(flow.name());

Condition sameFlow = PHYSICAL_FLOW.SPECIFICATION_ID.eq(flow.specificationId())
.and(nameCondition)
.and(PHYSICAL_FLOW.BASIS_OFFSET.eq(flow.basisOffset()))
.and(PHYSICAL_FLOW.FREQUENCY.eq(flow.frequency().value()))
.and(PHYSICAL_FLOW.TRANSPORT.eq(flow.transport().value()))
Expand Down Expand Up @@ -301,6 +307,7 @@ public long create(PhysicalFlow flow) {
PhysicalFlowRecord record = dsl.newRecord(PHYSICAL_FLOW);
record.setLogicalFlowId(flow.logicalFlowId());

record.setName(flow.name());
record.setFrequency(flow.frequency().value());
record.setTransport(flow.transport().value());
record.setBasisOffset(flow.basisOffset());
Expand Down
Loading
Loading