Add support for binary data in plugin descriptor and details #2244
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.
This pull request refactors the plugin management system by replacing the
PluginDetails
class with aMap<String, Object>
structure for plugin details, introducing binary data support, and streamlining the handling of metadata and properties. These changes simplify the codebase and enhance extensibility.Refactoring Plugin Details
Removed the
PluginDetails
class and replaced it with aMap<String, Object>
structure for plugin details inPluginInfo
and related classes. This change simplifies the data model and reduces the need for custom serialization logic. ([[1]](https://github.com/reportportal/service-api/pull/2244/files#diff-b8b6253e3c35ad584e72c1fa8ad347333daf14ef1dfb257fd9dcf77611dc2bffL1-L309)
,[[2]](https://github.com/reportportal/service-api/pull/2244/files#diff-076a276362564365859786ff4a0eca95b49165c50fb32d5ae81f910e8ee0d10fL42-R43)
,[[3]](https://github.com/reportportal/service-api/pull/2244/files#diff-076a276362564365859786ff4a0eca95b49165c50fb32d5ae81f910e8ee0d10fL62-R63)
,[[4]](https://github.com/reportportal/service-api/pull/2244/files#diff-5f61342761b599a9496cb199ad40426c77b79ade6134cc564979f3e09a3c18e9L93-R98)
)Added the
convertToDetails
method inPluginLoaderImpl
to construct theMap<String, Object>
representation of plugin details. ([src/main/java/com/epam/ta/reportportal/core/integration/plugin/impl/PluginLoaderImpl.javaR200-R215](https://github.com/reportportal/service-api/pull/2244/files#diff-5f61342761b599a9496cb199ad40426c77b79ade6134cc564979f3e09a3c18e9R200-R215)
)Binary Data Support
binaryData
field toDetailPluginDescriptor
and processing attributes with thePlugin-Binary-Data-
prefix. ([[1]](https://github.com/reportportal/service-api/pull/2244/files#diff-9918090035b03a1044c433ea0dcb9c06f4702264ffe3e5e06281d5dbbcb215f1L58-R66)
,[[2]](https://github.com/reportportal/service-api/pull/2244/files#diff-c0cadfc9e974d981d98af446c5cd43260972c4687292987c93afb18b6c59bda9R63)
,[[3]](https://github.com/reportportal/service-api/pull/2244/files#diff-c0cadfc9e974d981d98af446c5cd43260972c4687292987c93afb18b6c59bda9L114-R115)
)Metadata and Properties Handling
processAttributesByPrefix
method inDetailManifestPluginDescriptorFinder
. This improves maintainability and reduces code duplication. ([src/main/java/com/epam/ta/reportportal/plugin/DetailManifestPluginDescriptorFinder.javaL114-R115](https://github.com/reportportal/service-api/pull/2244/files#diff-c0cadfc9e974d981d98af446c5cd43260972c4687292987c93afb18b6c59bda9L114-R115)
)Dependency Updates
[[1]](https://github.com/reportportal/service-api/pull/2244/files#diff-9918090035b03a1044c433ea0dcb9c06f4702264ffe3e5e06281d5dbbcb215f1L76-R82)
,[[2]](https://github.com/reportportal/service-api/pull/2244/files#diff-9918090035b03a1044c433ea0dcb9c06f4702264ffe3e5e06281d5dbbcb215f1L91-R95)
)Cleanup and Imports
[[1]](https://github.com/reportportal/service-api/pull/2244/files#diff-5f61342761b599a9496cb199ad40426c77b79ade6134cc564979f3e09a3c18e9L28)
,[[2]](https://github.com/reportportal/service-api/pull/2244/files#diff-5f61342761b599a9496cb199ad40426c77b79ade6134cc564979f3e09a3c18e9R44-R45)
,[[3]](https://github.com/reportportal/service-api/pull/2244/files#diff-c0cadfc9e974d981d98af446c5cd43260972c4687292987c93afb18b6c59bda9R25)
,[[4]](https://github.com/reportportal/service-api/pull/2244/files#diff-c0cadfc9e974d981d98af446c5cd43260972c4687292987c93afb18b6c59bda9R35)
)