Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discoverability of YAML config files in the manager Activity log #1196

Open
2 of 3 tasks
timng-bcgov opened this issue Dec 19, 2024 · 1 comment
Open
2 of 3 tasks

Comments

@timng-bcgov
Copy link

API Services Portal Issue

User Story

As an API provider,

I want to reference Gateway configuration files in the API Services Portal

so that I know which files were applied to any given Gateway.

Test Case

ENV

  • DEV
  • TEST
  • PROD

TESTCASE

Navigate to the Activity log for a specific gateway https://api.gov.bc.ca/manager/activity

It's possible to reference the YAML file that was used for Gateway config by selecting the More details action on a " published gateway configuration" item:
Image

A modal dialog will open upon interaction to show the contents of the config file:
Image

EXPECTED

I'm concerned about the usability of the modal, specifically the call to action for the interaction (More details) and the modal title (Activity Details). I'm wondering if the modal component is used for any other purpose on the Activity page. If not, then we should consider renaming both items. It may also be helpful to include a modal description. I will also note that no reference is made in the DevHub documentation that the config file can be surfaced in this manner.

ACTUAL

As described above.

ERROR

Notes

This is an observation I made after discussion with a client in which we were trying to locate a Gateway configuration file and the Activity log was brought up as a possible source.

@rustyjux
Copy link
Contributor

I have been thinking about this user story as well. One could approach this on an slightly more fundamental level which is to say there should be an API endpoint for retrieving gateway configuration (most recent, or potentially also historical). Then we could also integrate this function into the gwa-cli.

One unfortunate aspect of the current way gw config is provided from the /activity endpoint is that it is in Kong format, rather than the resource-based format we recommend and use in our tutorials (see docs for more on formats), regardless of the format the config was sent in. It isn't overly difficult for a user to do the conversion, but it would be nice to save them the effort.

So IMO, the acceptance criteria for work on providing access to current config would be to give an option to get gw config in Kong or resource-based format (if plan to continue supporting both).

We might also consider supporting the export of other resources (Products, Datasets, etc) in the Gateway, alongside the gw config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants