feat: support project level custom fields#6736
Conversation
…ed-metadata-validation
…th/flagsmith into feat/support-project-level-custom-fields
…th/flagsmith into feat/support-project-level-custom-fields
…ed-metadata-validation
…th/flagsmith into feat/support-project-level-custom-fields
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Docker builds report
|
…:Flagsmith/flagsmith into feat/support-project-level-custom-fields
Wouldn't it be less confusing to not allow conflicts? |
I do remember asking the question while grooming and we agreed on allowing re-creating the custom fields at project level. What Gagan suggests is to simply forbid and return an error if the name already exists in the organisation (be it project/org level) |

Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
Closes #6620
Support project scoped custom fields which could only be defined at organisation levels
MetadataFieldunique_togetherwith conditionalUniqueConstraints_validate_required_metadataaccepts project paramis_required_forfetched and included in responses directly (replacing 2 different requests made in the frontend => coming in next branch)New endpoint
?include_organisationto include inherited org-level fields (calculates the precedence for project in case of conflicts)?entity=feature|segment|environmentto only return fields of the given identity (simplifies the creation of the identity)In case of conflicting name, project custom fields takes precedence and org ones are skipped
How did you test this code?