sonatype-nexus-community / nexus-iq-chrome-extension

Chrome extension for use with Sonatype Nexus Lifecycle - IQ server
https://sonatype-nexus-community.github.io/nexus-iq-chrome-extension/
Apache License 2.0
20 stars 12 forks source link

[BUG] Component Details call to IQ is not returning data #282

Closed madpah closed 1 year ago

madpah commented 1 year ago

This breaks Hygiene and other meta data about the Component.

Also causing fix for #112 to be broken on v2.x.x branch.

madpah commented 1 year ago

Call is being made by the extension (successfully) to get Component Details, and a response is being returned by IQ Server, but the data is not being seen in the extension:

Making API Call ComponentsApi::getComponentDetails() DEBUG Array(1)0: Configuration {configuration: {…}}length: 1[[Prototype]]: Array(0)
Logger.ts:17 getComponentDetails response DEBUG [{…}]0: componentDetails: Array(0)length: 0[[Prototype]]: Array(0)[[Prototype]]: Objectlength: 1[[Prototype]]: Array(0)

Data doesn't seem to be coming back from the API Client (in @sonatype/nexus-iq-api-client).

madpah commented 1 year ago

The response coming from IQ does not conform to the OpenAPI Spec - and thus response data is failing to deserialize to the Object Model.

0: "[Path '/componentDetails/0/hygieneRating'] Instance type (null) does not match any allowed primitive type (allowed: ["string"])"
1: "[Path '/componentDetails/0/relativePopularity'] Instance type (null) does not match any allowed primitive type (allowed: ["integer"])"

Fix required in @sonatype/nexus-iq-api-client

madpah commented 1 year ago

Confirmed as implemented/fixed in v2.x.x. Screenshot 2023-06-29 at 10 58 13 Screenshot 2023-06-29 at 10 58 20

madpah commented 1 year ago

Also affects integrityRating...

madpah commented 1 year ago

Screenshot 2023-06-29 at 11 18 27

Fixed for Integrity Rating now too.