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

DataType page: App Id selector for data types #414

Merged

Conversation

kamransaleem
Copy link
Contributor

.selectDistinct(dataTypeUsage.ENTITY_ID)
.from(dataTypeUsage)
.join(dataType).on(dataType.CODE.eq(dataTypeUsage.DATA_TYPE_CODE))
.where(dsl.renderInlined(dataTypeUsage.ENTITY_KIND.eq(EntityKind.APPLICATION.name())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps pull the condition out so the code will be more like:


Condition condition = dataTypeUsage.ENTITY_KIND.eq(EntityKind.APPLICATION.name())
    .and(....);

....
dsl.select(....)
    ...
    .where(dsl.renderInlined(condition))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion. Will do it in the morning.

On 9 Aug 2016 18:32, "David Watkins" notifications@github.com wrote:

In waltz-data/src/main/java/com/khartec/waltz/data/application/
ApplicationIdSelectorFactory.java
#414 (comment):

@@ -205,4 +217,21 @@ private String findEmployeeId(EntityReference ref) {
.where(dsl.renderInlined(appCapability.CAPABILITY_ID.in(capabilitySelector)));
}

  • private Select<Record1> mkForDataType(EntityReference ref, HierarchyQueryScope scope) {
  •    ImmutableIdSelectionOptions dtSelectorOptions = ImmutableIdSelectionOptions.builder()
    
  •            .entityReference(ref)
    
  •            .scope(scope)
    
  •            .build();
    
  •    Select<Record1<Long>> dtSelector = dataTypeIdSelectorFactory.apply(dtSelectorOptions);
    
  •    return dsl
    
  •            .selectDistinct(dataTypeUsage.ENTITY_ID)
    
  •            .from(dataTypeUsage)
    
  •            .join(dataType).on(dataType.CODE.eq(dataTypeUsage.DATA_TYPE_CODE))
    
  •            .where(dsl.renderInlined(dataTypeUsage.ENTITY_KIND.eq(EntityKind.APPLICATION.name())
    

Perhaps pull the condition out so the code will be more like:

Condition condition = dataTypeUsage.ENTITY_KIND.eq(EntityKind.APPLICATION.name())
.and(....);

....
dsl.select(....)
...
.where(dsl.renderInlined(condition))


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/khartec/waltz/pull/414/files/7ee6b61311f55943bb2ea3c6b92851fc8b8e11f1#r74105415,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC452_vH2eYByyf087FTdYni1rS-b1hPks5qeLm9gaJpZM4JgTQJ
.

@davidwatkins73 davidwatkins73 merged commit fe1ab8d into finos:master Aug 10, 2016
@kamransaleem kamransaleem deleted the waltz-386-data-type-id-selector branch October 10, 2016 12:40
plexus-user pushed a commit to deutschebank/waltz that referenced this pull request May 26, 2020
…tz-jws:CTCTOWALTZ-1598-multiple-relationships-naming-directions-4852 to waltz-4852-multi-relationships-naming-directions

* commit 'a61feb3bc344f1d09ec289b9d92680ea52843101':
  Multiple relationship types between entities
  Multiple relationship types between entities
  Multiple relationship types between entities
deutschebank-sync pushed a commit to deutschebank/waltz that referenced this pull request Nov 13, 2024
…t readonly flags on logical flows to false

Merge in WALTZ/waltz from WALTZ/waltz-sj:db-feature/CTCTOWALTZ-3438-2-admin-view-to-set-readonly-flags-on-logical-flows-to-false to db-feature/7182-admin-toggle-read-only-on-logical-flows

* commit '2d94f01c79d7c096a765333b9025fbd80881a69e':
  update tests to accomodate new logic
  remove user service dependency
  changes on pr comments
  remove redundant info from changelog
  add removals to bulk taxonomy change service
  reformat the changelog + update the command
  toggle on the ui for readonly
  create service component
  refactor imports
  tests for the changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants