Ability to use custom field property in UniqueField constraint

Created on 20 June 2022, about 2 years ago
Updated 13 September 2023, 10 months ago

Problem/Motivation

Now UniqueField constraint works only for "value" property, that is hard-coded, but some fields, even including system ones (eg Link field type), use another properties than "value", and sometimes even more than one property.

So users can't add the UniqueField constraint to such fields because of missing ability to pass the custom property name to it.

Steps to reproduce

Try to add the UniqueField constraint to the "Link" field type by "url" property - it will not work without any errors or warnings.

Proposed resolution

Add ability to pass the property name to the UniqueField constraint, and throw the error if the default "value" property (or custom one) is missing.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Feature request
Status

Needs work

Version

10.0

Component
Field 

Last updated about 10 hours ago

Created by

🇦🇲Armenia Murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024