Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
478 stars 306 forks source link

Feature Request: Ability to show/hide widgets based on associated product published state #2418

Open bendixon-zelis opened 4 months ago

bendixon-zelis commented 4 months ago

The homepage of our developer portal displays an array of cards advertising our various API products. Currently these cards are created manually in the Developer Portal editor. One problem we face is we cannot control the display of the card based on the published status of its associated product so we cannot release Dev Portal changes with cards until we are ready to publish the product and we cannot unpublish a product that has a card without deploying Dev Portal again.

We have considered introducing a custom widget display the cards based on the published state, but it would be nice if there was a built-in feature, similar to the access control by group feature, that would display or not display a widget based on the published state of a selected product or products.

malincrist commented 4 months ago

hello @bendixon-zelis , thanks for requesting this feature! In the meantime, there is also the default widget List of products (tiles) that may be helpful for your situation (similar to list of products, it will display only the published products).

bendixon-zelis commented 4 months ago

@malincrist, thank for the pointer. I was guessing we might not be able to use it because of the way we display our tiles depending on whether the user is logged in or not, but I thought I would give it a shot. Maybe I'm doing something wrong but I can't get it display any products as tiles. I tried adding it to the front page and the products page but it only displays "No products found" whereas the products list on the same page displays the products as expected. Included an image below showing the two widgets on the same page.

image

malincrist commented 4 months ago

@bendixon-zelis , that is weird.. do you have any errors in the console? if so, can you please share them here as well? Also, can you please make sure you used the widget List of Products (tiles) not another widget? (for example like API: Products (tiles) - which needs an API in order to display the associated products)

bendixon-zelis commented 3 months ago

@malincrist, thanks for the help. I had selected the wrong tiling widget. "List of Products (tiles)" displays the products as expected. Unfortunately, I can't swap our current tiles out for this widget because of the differences in UI and limitations in its configuration.

sthirthala commented 3 months ago

Is this a managed portal or self hosted portal issue?

sthirthala commented 3 months ago

For managed portal, please log support tickets in Azure help+support center

https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request