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

MODFQMMGR-675. Add Custom Fields support for Order and Order Line entities #623

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SerhiiNosko
Copy link

…into MODFQMMGR-675

# Conflicts:
#	src/main/resources/entity-types/orders/composite_purchase_order_lines.json5
Comment on lines +15 to +23
name: 'id',
sourceAlias: 'custom_fields',
dataType: {
dataType: 'rangedUUIDType',
},
isIdColumn: true,
queryable: true,
visibleByDefault: false,
valueGetter: ':sourceAlias.id',
Copy link
Collaborator

Choose a reason for hiding this comment

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

To make this more readable, you can remove all of the sourceAlias properties and change ":sourceAlias" in the valueGetters to ":custom_fields" like this:

Suggested change
name: 'id',
sourceAlias: 'custom_fields',
dataType: {
dataType: 'rangedUUIDType',
},
isIdColumn: true,
queryable: true,
visibleByDefault: false,
valueGetter: ':sourceAlias.id',
name: 'id',
dataType: {
dataType: 'rangedUUIDType',
},
isIdColumn: true,
queryable: true,
visibleByDefault: false,
valueGetter: ':custom_fields.id',

🙂

@@ -0,0 +1,356 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this entity type necessary?

Copy link
Author

Choose a reason for hiding this comment

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

I will try with usinge simple custom field from users pacakge, because it is the same object, thanks

@@ -59,6 +59,17 @@
</createView>
</changeSet>

<changeSet id="create_view_purchase_order_custom_fields" author="[email protected]">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a runAlways="true" property to this changeSet? We'll be adding that to all of the source-view-creating changeSets very soon, so I just want to make sure this one doesn't fall through the cracks if it ends up getting merged immediately before or after that change 🙂

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