Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

Commit 04864ea

Browse files
Merge pull request #22 from solace-iot-team/feature-api-product-versions
Bug fix for viewing api products
2 parents c8bf309 + 2b9c190 commit 04864ea

File tree

4 files changed

+27
-14
lines changed

4 files changed

+27
-14
lines changed

ReleaseNotes.md

+12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
Solace Async API Management.
44

5+
## Version 0.1.2
6+
* [API-M Admin & Developer Portal](https://github.com/solace-iot-team/async-apim/tree/main/apim-portal): 0.1.2
7+
* [API-M Server OpenAPI](https://github.com/solace-iot-team/async-apim/blob/main/apim-server/server/common/api.yml): 0.1.0
8+
* [API-M Server](https://github.com/solace-iot-team/async-apim/tree/main/apim-server): 0.1.0
9+
* [API-M Connector OpenAPI](https://github.com/solace-iot-team/platform-api): 0.6.5
10+
11+
#### API-M Admin & Developer Portal
12+
13+
**Fixes:**
14+
- **API Products**
15+
- fixed error when displaying an API Product
16+
517
## Version 0.1.1
618
* [API-M Admin & Developer Portal](https://github.com/solace-iot-team/async-apim/tree/main/apim-portal): 0.1.1
719
* [API-M Server OpenAPI](https://github.com/solace-iot-team/async-apim/blob/main/apim-server/server/common/api.yml): 0.1.0

apim-portal/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "async-apim-portal",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Solace Async API Management Portal",
55
"repository": {
66
"type": "git",

apim-portal/src/admin-portal/components/ManageApiProducts/DisplayApiProduct.tsx

+13-12
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { Globals } from "../../../utils/Globals";
2727

2828
import '../../../components/APComponents.css';
2929
import "./ManageApiProducts.css";
30+
import { Divider } from "primereact/divider";
3031

3132
export enum E_DISPLAY_ADMIN_PORTAL_API_PRODUCT_SCOPE {
3233
REVIEW_AND_CREATE = "REVIEW_AND_CREATE",
@@ -229,6 +230,7 @@ export const DisplayAdminPortalApiProduct: React.FC<IDisplayAdminPortalApiProduc
229230
const funcName = 'renderManagedObject';
230231
const logName = `${ComponentName}.${funcName}()`;
231232
if(managedObject === undefined) throw new Error(`${logName}: managedObject === undefined`);
233+
232234
return (
233235
<React.Fragment>
234236
<div className="p-mt-2">
@@ -315,20 +317,19 @@ export const DisplayAdminPortalApiProduct: React.FC<IDisplayAdminPortalApiProduc
315317
emptyMessage="No attributes defined"
316318
className="p-ml-4"
317319
/>
320+
{Config.getUseDevelTools() &&
321+
<React.Fragment>
322+
<Divider />
323+
<div className="p-text-bold">DEVEL: All Attributes for cross checking:</div>
324+
<APDisplayApAttributeDisplayList
325+
apAttributeDisplayList={managedObject.devel_display_complete_ApAttributeList}
326+
emptyMessage="No attributes defined"
327+
className="p-ml-4"
328+
/>
329+
</React.Fragment>
330+
}
318331
</React.Fragment>
319332
</TabPanel>
320-
{Config.getUseDevelTools() &&
321-
<TabPanel header='DEVEL: Raw Attributes'>
322-
<React.Fragment>
323-
<div className="p-text-bold">All Attributes for cross checking:</div>
324-
<APDisplayApAttributeDisplayList
325-
apAttributeDisplayList={managedObject.devel_display_complete_ApAttributeList}
326-
emptyMessage="No attributes defined"
327-
className="p-ml-4"
328-
/>
329-
</React.Fragment>
330-
</TabPanel>
331-
}
332333
</TabView>
333334
</React.Fragment>
334335
);

apim-portal/src/admin-portal/components/ManageApiProducts/EditNewApiProduct/NewReviewAndCreate.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export const NewReviewAndCreate: React.FC<INewReviewAndCreateProps> = (props: IN
115115
<DisplayAdminPortalApiProduct
116116
scope={E_DISPLAY_ADMIN_PORTAL_API_PRODUCT_SCOPE.REVIEW_AND_CREATE}
117117
organizationId={props.organizationId}
118-
apAdminPortalApiProductDisplay={props.apAdminPortalApiProductDisplay}
118+
apAdminPortalApiProductDisplay={mo}
119119
onError={props.onError}
120120
onSuccess={props.onSuccessNotification}
121121
onLoadingChange={props.onLoadingChange}

0 commit comments

Comments
 (0)