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

Document version endpoints #15946

Merged
merged 15 commits into from Apr 2, 2024
Merged

Document version endpoints #15946

merged 15 commits into from Apr 2, 2024

Conversation

Migaroez
Copy link
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

Sven Geusens added 6 commits February 19, 2024 16:37
…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
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.

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

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

Sven Geusens 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
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 💪

@Migaroez Migaroez merged commit 95849c2 into v14/dev Apr 2, 2024
15 of 16 checks passed
@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.

None yet

3 participants