-
Notifications
You must be signed in to change notification settings - Fork 470
feat: support project level custom fields #6736
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
Merged
+1,051
−26
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
5ac05e2
feat: calculate-has-metadata-required-based-on-all-entities
Zaimwa9 e895451
fix: calculate-has-metadata-required-based-on-all-entities
Zaimwa9 b81f1d6
fix: calculate-has-metadata-required-based-on-all-entities
Zaimwa9 1305509
feat: refactor-metadata-with-hooks
Zaimwa9 9f65d7c
feat: consolidated-requests-and-merged-strategy-in-rtk
Zaimwa9 242cc97
Merge branch 'main' of github.com:Flagsmith/flagsmith into fix/requir…
Zaimwa9 6f8c33f
feat: resolved-review-comments
Zaimwa9 79771ed
feat: added-project-support-for-custom-fields
Zaimwa9 2c39ce8
feat: reworked-comments
Zaimwa9 7057609
feat: project-custom-fields-override-org-ones
Zaimwa9 2c6cf8b
fix: skip-feature-metadata-fetch-when-creating-feature
Zaimwa9 e2dc65a
Merge branch 'fix/required-metadata-validation' of github.com:Flagsmi…
Zaimwa9 463d388
fix: fixed-parsing-error
Zaimwa9 0503ad3
feat: invalidate-tags-on-delete-metadata
Zaimwa9 aad191d
Merge branch 'fix/required-metadata-validation' of github.com:Flagsmi…
Zaimwa9 cd7b03c
feat: reviewed-query-params-and-filtering
Zaimwa9 4fea476
feat: fetch-metadata-model-in-api-and-separate-custom-fields-project-…
Zaimwa9 790ff64
feat: added-pagination-and-filtering-by-entity-to-custom-fields
Zaimwa9 81f4323
Merge branch 'main' of github.com:Flagsmith/flagsmith into fix/requir…
Zaimwa9 3cc20aa
feat: fixed-use-effect-on-entity-id-switch
Zaimwa9 6d3bb18
Merge branch 'fix/required-metadata-validation' of github.com:Flagsmi…
Zaimwa9 ce1522a
feat: fixed-edit-delete-project-permissions-for-custom-fields
Zaimwa9 733ece1
feat: refactored-validated-required-metadata
Zaimwa9 0161047
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 986df6a
feat: removed-unused-variable
Zaimwa9 936dee9
Merge branch 'feat/support-project-level-custom-fields' of github.com…
Zaimwa9 40c5620
feat: added-pagination-to-org-metadata-fields
Zaimwa9 59b9278
feat: reviewed-misleading-comment
Zaimwa9 28cc97d
feat: rebased-main
Zaimwa9 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
api/metadata/migrations/0002_add_project_to_metadata_field.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # Generated by Django 5.2.11 on 2026-02-16 10:22 | ||
|
|
||
| import django.db.models.deletion | ||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ("metadata", "0001_initial"), | ||
| ("organisations", "0058_update_audit_and_history_limits_in_sub_cache"), | ||
| ("projects", "0027_add_create_project_level_change_requests_permission"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AlterUniqueTogether( | ||
| name="metadatafield", | ||
| unique_together=set(), | ||
| ), | ||
| migrations.AddField( | ||
| model_name="metadatafield", | ||
| name="project", | ||
| field=models.ForeignKey( | ||
| blank=True, | ||
| null=True, | ||
| on_delete=django.db.models.deletion.CASCADE, | ||
| to="projects.project", | ||
| ), | ||
| ), | ||
| migrations.AddConstraint( | ||
| model_name="metadatafield", | ||
| constraint=models.UniqueConstraint( | ||
| condition=models.Q(("project__isnull", True)), | ||
| fields=("name", "organisation"), | ||
| name="unique_org_level_metadata_field", | ||
| ), | ||
| ), | ||
| migrations.AddConstraint( | ||
| model_name="metadatafield", | ||
| constraint=models.UniqueConstraint( | ||
| condition=models.Q(("project__isnull", False)), | ||
| fields=("name", "organisation", "project"), | ||
| name="unique_project_level_metadata_field", | ||
| ), | ||
| ), | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.