-
Notifications
You must be signed in to change notification settings - Fork 4
Configure dashboard version from scratch
Design Item ID: DI-Portal-DSHVER-001
Design Item Name: Configure dashboard version from scratch
Related Design Items:
Related API:
- Get packages list (GET /api/v2/packages)
- Get packages versions list (GET /api/v2/packages/{packageId}/versions)
Revision History:
| Date | Description |
|---|---|
Portal supports virtual packages named as dashboard. Unlike regular packages, dashboard versions do not contain API data; instead, they provide links to published packages or other dashboards. This level of abstraction allows for a more streamlined and organized view of APIs within the portal.
- User navigates to APIHUB Portal → workspace → group → empty dashboard
- User navigates to APIHUB Portal → workspace → group → dashboard version
- User opens empty dashboard and clicks [Create Version]; or user opens dashboard version and cliks + button in the subheader
- The system opens Configure Dashboard page and shows 'No included packages or dashboards'.
- User clicks [Add Package].
- The system shows Add Package popup with the following fields\
- Workspace - required field. Field shows list of existing workspaces. By default, the current workspace is selected.
- API to show list of workspaces - GET /api/v2/packages:
- kind = workspace
- textFilter = 'user input' if user searches workspace
- API to show list of workspaces - GET /api/v2/packages:
- Package / Dashboard - required field. Field shows list of packages and dashboards (title and id) under selected workspace. If package/dashboard has been already added to the current dashboard, then it will not be displayed in Package / Dashboard field.
- API to show list of packages/dashboards - GET /api/v2/packages:
- kind = package, dashboard
- parentId = id of selected workspace
- showAllDescendants = true
- textFilter = 'user input' if user searches package/dashboard
- API to show list of packages/dashboards - GET /api/v2/packages:
- Version - required field. Field is disabled if 'Package / Dashboard' field is disabled. Field shows versions list of selected package/dashboard.
- API to show list of versions - GET /api/v2/packages/{packageId}/versions:
- packageId = Id of selected package/dashboard
- textFilter = 'user input' if user searches version
- API to show list of versions - GET /api/v2/packages/{packageId}/versions:
- Workspace - required field. Field shows list of existing workspaces. By default, the current workspace is selected.
- User fills the fields and clicks [Add].
- The system adds selected package/dashboard version and show this package/dashboard on the 'Configure Dashboard' page.
The system prohibits adding the same package/dashboard twice to the dashboard directly, but there are cases when a user can add a package/dashboard twice indirectly. For example, there is a dashboard D1 containing links to packages P1 and P2. The user configures dashboard D2 and adds package P2 and dashboard D1 to dashboard D2. Since D1 contains references to P2, this causes D2 to reference P2's package twice.

If such situation occurs, then:
- The system shows warning icon (with tooltip 'There are conflicts in dashboard configuration') in the left sidebar near Packages menu item.
- The system shows warning icon (with tooltip 'There is a conflict because this package is included in the dashboard multiple times. The conflict will be resolved automatically after version publication and out of all identical packages only one package will be included in the dashboard') near duplicated packages/dashboards on Configure Dashboard page.
- If duplicated package/dashboard placed under dashboard, then the system shows special mark (yellow circle with tooltip 'One of the child package/dashboard has conflict') near such dashboard.
The user can remove previously added package/dashboard from the dashboard configuration.
- User hovers overs a row with the required package/dashboard.
- The system shows 'Delete' icon.
⚠ It is not possible to remove package that included into another dashboard. In this case only dashboard itself can be deleted.
- User clicks Delete.
- The system shows confirmation popup with the following message: 'Remove 'package kind' 'package name' from the dashboard?'
- The user clicks [Remove]
- The system removes package/dashboard from the dashboard configuration (in case of removing dashboard, the system removes all child packages too)
After user adds required packages/dashboards, user can publish dashboard version:
- User clicks [Publish].
- The system opens Publish popup with the following fields:
- Version - required field.
- Status - required field. Default value - draft
- Labels - multiple value can be specified in the field. The user needs to click 'Enter' to finish adding label.
- Previous release version - required field.
- The user fills all required fields and clicks Publish.
- The system publishes version and opens this dashboard version.
If user did not include any package/dashboard to dashboard configuration, then [Publish] button is disabled (with tooltip 'Add at least one package/dashboard to publish dashboard version.').
If user clicks [Exit] button, the system opens previous page from which user navigated to the current one. No changes in this case will be saved.
Processes description
Technical articles
Design Items
- Navigation to APIHUB (log in / log out)
- Create Workspace
- Create Group
- Create Package
- Favorite packages, dashboards, groups, workspaces
- Shared Packages
- Activity History in Main Page
- Personal private workspace
- Version summary
- Revision History
- Package Activity History
- Manage Manual Operations Group
- Export Operations Group (reduced source specifications)
- Export Operations Group (combined specification)
- Export List of Operations in Excel
- Search and Filter Operations
- List of Operations
- List of Operations Groups
- Manage REST Path Prefix Group
- Activity History
- List of Deprecated Operations
- Export List of Changes in Excel
- Human‐readable description for deprecated items for OpenAPI 3.0
- List of Documents
- OpenAPI Document Overview
- Copy Package Version
- Export Package Version
- Export Document from Package Version
- Export List of Deprecated Operations in Excel
- API Quality Validation Result
- Export of discrepancy analysis results for arbitrary package versions in Excel
- AI Recommendations Tab
- General Settings
- Package versions list
- Access Tokens Management
- Delete Package
- Default Release Version
- Define Release Version Pattern