Issue 26001 implement sync feature for content types #26312
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.
Improving the push command for content types. Now the push command for content types can handle, new content types, editing of existing content types, and removals.
🤖 Generated by Copilot at 8fffb85
Refactored the
Field
andContentType
models to use default values and annotations, improved the test coverage and output of the content type, language, and site commands, and added new classes and mixins to support the content type push command with pagination, folders, workspaces, and removal options.🤖 Generated by Copilot at 8fffb85
getContentTypes
method in theContentTypeAPI
interface to useper_page
instead ofperPage
as the query parameter name (link)ContentTypeComparator
,ContentTypeFetcher
, andContentTypePushHandler
classes to implement the logic for comparing, fetching, and pushing content types to the server (link, link, link)ContentTypePush
class to extend theDotPush
interface and use the new classes and mixins to support pushing a folder of content types and removing content types on the server (link, link, link)ContentTypePushMixin
class to define the--removeContentTypes
option for theContentTypePush
command (link)Field
andContentType
classes to use@Value.Default
and@Value.Auxiliary
annotations to provide default values and avoid null values (link, link, link, link, link, link, link, link, link, link)Workflow
interface to use@Value.Default
annotations to provide default values and avoid null values (link, link, link)Test_Command_Content_Type_Folder_Push
method to test the functionality of the content type push command when pushing a folder of content types (link)ContentTypeCommandIntegrationTest
class to create a temporary folder for the workspace, use the--fail-fast
and-e
options for the push command, and use theRestClientFactory
,MapperService
, andResponseEntityView
classes for the API calls (link, link, link, link, link, link, link, link, link, link, link, link, link, link)LanguagePush
andSitePush
commands to use plural instead of singular (link, link)Test_Command_Language_Pull_Then_Push_YML
method (link, link, link, link, link)Test_Command_Site_Pull_Then_Push_YML
method (link)