fest(server): Entity field custom attribute #6065
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part of: #5989
PR Details
The third PR for the epic - add the server-side functionality for EntityField.CustomAttrbute
π€ Generated by Copilot at efba08e
Summary
πποΈπ§ͺ
This pull request adds a new field
customAttributes
to the entity field model, database, and GraphQL schema. This field can be used to store any custom attributes for the entity field, such as validation rules, UI hints, or other metadata. The pull request also updates the relevant tests and migrations to include the new field.Walkthrough
customAttributes
to theEntityField
table in the database to store custom attributes for entity fields (link)customAttributes
to theEntityField
model in the Prisma schema with a type ofString
and optional (link)customAttributes
to theEntityFieldCreateInput
,EntityFieldUpdateInput
,EntityFieldWhereInput
, andEntityFieldOrderByInput
classes in the entity module with a type ofString
and optional and nullable (link, link, link, link)customAttributes
to theEntityField
class in the models module with a type ofstring
andString
respectively and nullable and optional (link)customAttributes
to theEXAMPLE_ENTITY_FIELD
constant in the entity resolver and service test files and the resource service test file (link, link, link)customAttributes
to theEXAMPLE_ENTITY_FIELD_DATA
and related constants in the entity service test file (link, link, link, link)customAttributes
to the GraphQL queries and mutations for entity fields in the entity resolver test file (link, link, link, link, link, link, link, link, link, link, link)customAttributes
to the GraphQL mutation for creating an entity field in the entity resolver test file (link, link)customAttributes
to the expected object for thecreateEntityField
mutation in the entity resolver test file (link)PR Checklist
npm test
doesn't throw any errorIMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.