Skip to content

Conversation

@derklaro
Copy link
Member

Motivation

At the moment there are different types of document properties. A DocProperty which can be appended and read from everything that implements DocPropertyHolder and a ServiceProperty which is exclusive to services. This means that we're basically maintaining two different document property apis, with the service property one having some more methods that were missing in the DocProperty api.

Modification

Removed the service property implementation completely and improved the doc property api to allow for everything that the current service property api allowed. Furthermore, the api was expanded and better integrated into the cloudnet system, to match the design of existing api classes.

Result

One general and now unified api to read and write doc properties.

Other context

Fixes #1072

@derklaro derklaro added v: 4.X This pull should be included in the 4.0 release in: driver An issue/pull request releated to the driver module code t: improvement The pull request improves existing code in: common An issue/pull request releated to the common module code labels Feb 24, 2023
@derklaro derklaro added this to the 4.0.0-RC8 milestone Feb 24, 2023
@derklaro derklaro requested a review from 0utplay February 24, 2023 17:05
@derklaro derklaro self-assigned this Feb 24, 2023
@0utplay 0utplay merged commit 4825dda into nightly Feb 24, 2023
@0utplay 0utplay deleted the doc-property-unify branch February 24, 2023 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: common An issue/pull request releated to the common module code in: driver An issue/pull request releated to the driver module code t: improvement The pull request improves existing code v: 4.X This pull should be included in the 4.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove ServiceProperty API and replace it by expanding the existing DocProperty classes

3 participants