Skip to content
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

Move ReservedFieldNames to type configuration endpoints #16735

Merged
merged 3 commits into from
Jul 5, 2024

Conversation

nikolajlauridsen
Copy link
Contributor

Moves the ReservedFIeldNames property into configuration endpoints for Document, Media, and Member, since these are required when creating the type, not the entity.

Testing

Request the endpoints and ensure they work

Copy link
Member

@elit0451 elit0451 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, left a few comments for you to fix 💪

DataTypesCanBeChanged = _dataTypesSettings.CanBeChanged,
DisableTemplates = _umbracoFeatures.Disabled.DisableTemplates,
UseSegments = _segmentSettings.Enabled,
ReservedFieldNames = _reservedFieldNamesService.GetDocumentReservedFieldNames(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to rename IReservedFieldNamesService.GetDocumentReservedFieldNames() to GetDocumentTypeReservedFieldNames, etc.?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opted not to, since it seemed like a lot of extra obsolete methods and stuff for not a lot of gain 😄

nikolajlauridsen and others added 2 commits July 5, 2024 08:57
…ationMemberTypeController.cs

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
@elit0451 elit0451 merged commit 8681a4e into v14/dev Jul 5, 2024
16 checks passed
@elit0451 elit0451 deleted the v14/fix/move-reserved-field-names branch July 5, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants