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

Support duplicated property mapping for property type other than class #1504

Merged
merged 3 commits into from
Oct 8, 2022

Conversation

irisyngao
Copy link
Contributor

@irisyngao irisyngao commented Sep 26, 2022

Summary

Fixes #1461

How did you test this change?

  • Test(s) added
  • Manual testing (please provide screenshots/recordings)
  • No testing (please provide an explanation)
Screen.Recording.2022-09-27.at.5.50.30.PM.mov

@changeset-bot
Copy link

changeset-bot bot commented Sep 26, 2022

🦋 Changeset detected

Latest commit: 29272c0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 20 packages
Name Type
@finos/legend-application-studio Patch
@finos/legend-application-studio-bootstrap Patch
@finos/legend-extension-dsl-data-space Patch
@finos/legend-extension-dsl-diagram Patch
@finos/legend-extension-dsl-mastery Patch
@finos/legend-extension-dsl-persistence-cloud Patch
@finos/legend-extension-dsl-persistence Patch
@finos/legend-extension-dsl-service Patch
@finos/legend-extension-dsl-text Patch
@finos/legend-extension-format-morphir Patch
@finos/legend-extension-store-flat-data Patch
@finos/legend-extension-store-relational Patch
@finos/legend-extension-store-service-store Patch
@finos/legend-application-studio-deployment Patch
@finos/legend-application-query-bootstrap Patch
@finos/legend-application-taxonomy-bootstrap Patch
@finos/legend-application-taxonomy Patch
@finos/legend-manual-tests Patch
@finos/legend-application-query-deployment Patch
@finos/legend-application-taxonomy-deployment Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@finos-cla-bot finos-cla-bot bot added the cla-present CLA Signed label Sep 26, 2022
@irisyngao irisyngao self-assigned this Sep 26, 2022
@irisyngao irisyngao force-pushed the mappingEditor branch 2 times, most recently from 1dad91b to 5e8fc00 Compare September 26, 2022 16:12
@irisyngao irisyngao changed the title support duplicated property mapping for primitive or Enumeration type property Support duplicated property mapping for property type other than class Sep 26, 2022
@codecov
Copy link

codecov bot commented Sep 26, 2022

Codecov Report

Merging #1504 (29272c0) into master (f3007ac) will decrease coverage by 0.01%.
The diff coverage is 4.54%.

@@            Coverage Diff             @@
##           master    #1504      +/-   ##
==========================================
- Coverage   40.58%   40.57%   -0.02%     
==========================================
  Files        1264     1264              
  Lines       56277    56294      +17     
  Branches    12708    12718      +10     
==========================================
+ Hits        22842    22843       +1     
- Misses      33353    33369      +16     
  Partials       82       82              
Impacted Files Coverage Δ
...nt-editor-state/mapping/MappingElementDecorator.ts 22.07% <0.00%> (+0.82%) ⬆️
...it-panel/mapping-editor/PropertyMappingsEditor.tsx 15.00% <2.32%> (-4.24%) ⬇️
...s/graphModifier/DSL_Mapping_GraphModifierHelper.ts 35.53% <40.00%> (-0.22%) ⬇️

@irisyngao irisyngao force-pushed the mappingEditor branch 5 times, most recently from f1acaa5 to a0e31a5 Compare September 28, 2022 15:38
@irisyngao irisyngao force-pushed the mappingEditor branch 3 times, most recently from 0208c12 to 8e125dd Compare October 5, 2022 21:14
@irisyngao irisyngao marked this pull request as draft October 7, 2022 18:33
@@ -96,6 +112,29 @@
color: var(--color-light-grey-100);
}

&__entries {
&__entry {
Copy link
Contributor

Choose a reason for hiding this comment

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

move this style out. Also, use @include flexVCenter here

setImplementationHasParserError
}
/>
{propertyMappingStates.length > 1 &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Could propbably create a component to wrap thi and make this less duplicated I think. Something like:

<GenericPropertyMappingEditor><SomePropertyMappingEditor /></GenericPropertyMappingEditor>

@akphi akphi marked this pull request as ready for review October 8, 2022 05:43
@akphi akphi merged commit 02703fe into finos:master Oct 8, 2022
@akphi akphi deleted the mappingEditor branch October 8, 2022 05:44
akphi added a commit to akphi/legend-studio that referenced this pull request Oct 9, 2022
akphi added a commit to akphi/legend-studio that referenced this pull request Oct 11, 2022
akphi added a commit to akphi/legend-studio that referenced this pull request Oct 11, 2022
akphi added a commit that referenced this pull request Oct 11, 2022
* remove @types/lossless-json

* remove ReactMarkdownMocker.jsx

* minor styling fix for custom date picker

* minor cleanups

* cleanups post #1521

* cleanups

* rework ApplicationNavigator and support platform navigation blocking

* support application backdrop

* cleanup after #1504

* minor cleanups

* rework application navigator to support blocking

* minor cleanups post #1541

* minor cleanups post #1507

* move value-specification editor logic from @finos/legend-application to @finos/legend-query-builder

* minor fixes

* query builder: properly use modifier for modification of value specification tree

* query builder: fix minor bug when building query value specification

* value-spec: fix minor typings error in metamodels

* bump dependencies

* add changeset

* improve documentations on ESM workarounds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-present CLA Signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Duplicated property mapping for property type other than class should be handled properly
3 participants