Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-36299

Align Resource ID Definitions Between Eventing API and Inventory API

XMLWordPrintable

    • Major

      While attempting to decode events by the [eventing api](https://github.com/project-kessel/inventory-api/blob/main/internal/eventing/api/event.go#L23), I encountered the following error

      `json: cannot unmarshal number into Go struct field ResourceMetadata.metadata.id of type string`

      This issue arises because the [resource ID in the eventing API](https://github.com/project-kessel/inventory-api/blob/main/internal/eventing/api/event.go#L23) differs from the [resource ID in the inventory API](https://github.com/project-kessel/inventory-api/blob/main/api/kessel/inventory/v1beta1/resources/metadata.pb.go#L31)

      This PR aligns the definitions of `resource ID` in both APIs to ensure compatibility and resolve the encoding/decoding issue

       

      Acceptance criteria

      • I can use the data schema to decode the event defined from the kafka event

              rhn-it-akoserwa Abhishek Koserwal
              rh-ee-myan Meng Yan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: