Skip to content

Document version endpoints#15946

Merged
Migaroez merged 15 commits intov14/devfrom
v14/feature/document-version
Apr 2, 2024
Merged

Document version endpoints#15946
Migaroez merged 15 commits intov14/devfrom
v14/feature/document-version

Conversation

@Migaroez
Copy link
Copy Markdown
Contributor

@Migaroez Migaroez commented Mar 26, 2024

Prerequisites

  • I have added steps to test this contribution in the description below

Description

Adds management API endpoints for

  • getting a list of version for a given document
  • get details about a version with a specific id
  • toggle the preventCleanup for a specific version
  • rollback to a specific version

Testing

  • Publish a document
  • Update the document and publish again (repeat a few times)
  • Make sure the relevant get endpoints reflect the changed data
  • Make sure the toggle and rollback endpoints work as expected
  • Nothing else breaks

Breaking changes

  • IContentVersionService methods have been brought into the async age
  • IContentVersionService default constructor has been changed

…er to the data layer

Duplication is because of internal modifier as we don't want to expose these temporary classes
Updated used services to use async methods
…e/document-version

# Conflicts:
#	src/Umbraco.Cms.Api.Management/Controllers/Dictionary/Tree/ChildrenDictionaryTreeController.cs
#	src/Umbraco.Cms.Api.Management/Controllers/Dictionary/Tree/RootDictionaryTreeController.cs
#	src/Umbraco.Cms.Api.Management/Controllers/RecycleBin/RecycleBinControllerBase.cs
#	src/Umbraco.Cms.Api.Management/Controllers/RedirectUrlManagement/GetAllRedirectUrlManagementController.cs
#	src/Umbraco.Cms.Api.Management/Controllers/Tree/EntityTreeControllerBase.cs
#	src/Umbraco.Cms.Api.Management/Controllers/Tree/FileSystemTreeControllerBase.cs
#	src/Umbraco.Cms.Api.Management/DependencyInjection/DocumentBuilderExtensions.cs
#	src/Umbraco.Core/Services/Pagination/PaginationConverter.cs
@Migaroez Migaroez changed the title Ddocument version endpoints Document version endpoints Mar 26, 2024
Copy link
Copy Markdown
Contributor

@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.

There are a lot of minor things to fix, I haven't been through all files. Can you please double-check with our other controllers/implementations to make sure we don't have to circle back to fix misalignments later 😉

Copy link
Copy Markdown
Contributor

@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.

Hey, I still have a few comments before I get to testing 👀

Comment thread src/Umbraco.Cms.Api.Management/Mapping/Document/DocumentVersionMapDefinition.cs Outdated
Comment thread src/Umbraco.Core/Services/ContentVersionService.cs Outdated
Comment thread src/Umbraco.Core/Services/IContentVersionService.cs
Comment thread src/Umbraco.Core/Services/IContentVersionService.cs
Migaroez and others added 2 commits March 27, 2024 13:15
- Move endpoints into their own structural section as they are also in a different swagger section
- Naming improvements
- Allign PresentationFactories with similar classes
- Cleanup unused assignments
- Cleanup refactoring comments
- Improve obsoletion remarks
@elit0451 elit0451 added the project/bellissima AKA "the new backoffice" label Mar 27, 2024
Copy link
Copy Markdown
Contributor

@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 💪

@Migaroez Migaroez merged commit 95849c2 into v14/dev Apr 2, 2024
@Migaroez Migaroez deleted the v14/feature/document-version branch April 2, 2024 10:12
kjac added a commit that referenced this pull request Apr 2, 2024
@kjac kjac mentioned this pull request Apr 2, 2024
1 task
Migaroez pushed a commit that referenced this pull request Apr 3, 2024
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.

3 participants