-
Notifications
You must be signed in to change notification settings - Fork 7
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
New boolean marker for attribute representative
#281
Comments
Yeah, thats correct. Especially, I like the idea of using these attributes for rendering default grid view. |
For better orientation in evitaLab it would be nice to be able to mark one or more attributes as representative attributes of the entity. Values of those attributes will be used in evitaLab instead of primary key when displaying value of the reference in the table cell. Representative attributes will be also automatically displayed along with entity data in the default entity listing view. If there are more of such attributes they will be rendered next to each other joined by comma. If the attribute is localized, it will be displayed in the cell only if the language is selected. The order of the representative attributes will be driven by the order of the attribute in the entity schema.
It turned out to be quite a challenge. I had to split the AttributeSchema into two different schemas:
This led to an abstraction changes and generics tweaks along the codebase. Can you @Khertys check how much work will it take to adapt C# client and the schema builders? @lukashornych there are a few TODOs for you in the codebase where I wasn't sure with the refactor in APIs. Also can you alter the evitaLab to take the representative flag into an account? I'll provide you with an example index in follow-up comment. |
The new data set is available at:
|
@novoj GQL/REST APIs are finished. I'll try to quickly implement it in the evitaLab and let you know. |
…e a version tag of the latest published release
Merged into |
For better orientation in evitaLab it would be nice to be able to mark one or more attributes as
representative
attributes of the entity. Values of those attributes will be used in evitaLab instead of primary key when displaying value of the reference in the table cell. Representative attributes will be also automatically displayed along with entity data in the default entity listing view.If there are more of such attributes they will be rendered next to each other joined by comma. If the attribute is localized, it will be displayed in the cell only if the language is selected. The order of the representative attributes will be driven by the order of the attribute in the entity schema.
Is it correct @lukashornych?
The text was updated successfully, but these errors were encountered: