-
Notifications
You must be signed in to change notification settings - Fork 4
Package versions list
Design Item ID: DI-Portal-PS-002
Design Item Name: Package versions list
Related Design Items: -
Related API:
- Get package versions list (GET /api/v2/packages/{packageId}/versions)
- Update package version (PATCH /api/v2/packages/{packageId}/versions/{version})
- Delete package version (DELETE /api/v2/packages/{packageId}/versions/{version})
Revision History:
| Date | Description |
|---|---|
The functionality provides a user with the ability to view information about all versions published in the current package/dashboard. User can change version meta or delete version.
- User navigates to APIHUB Portal → specific workspace → specific group → specific package/dashboard settings.
-
User clicks Versions tab.
-
The system opens Versions page and displays the list of all versions published in the current package.
- API to show list of versions – GET /api/v2/packages/{packageId}/versions
- packageId = current package Id
- For each version, the system shows the following information:
- Version – name of the version. The value is a link to the appropriate package version.
- Status – status for the version. Available values are draft, release, and archived.
- Labels – version labels.
- Publication Date – date when the version was published.
- Published by – user who published the version.
- Previous Version – name of the previous release version.
- API to show list of versions – GET /api/v2/packages/{packageId}/versions
The system allows searching versions by version name and labels:
- User fills Search field in versions page.
- The system searches versions according to user input by version name/labels.
- API to search versions – GET /api/v2/packages/{packageId}/versions
- packageId = current package Id
- textFilter = user's input in Search field
- API to search versions – GET /api/v2/packages/{packageId}/versions
The system allows filtering versions by status:
-
The system displays the following options for filtering:
- All (selected by default)
- Draft
- Release
- Archived
-
User selects one option in the filter by status.
-
The system filters versions according to the selected option.
- API to filter versions - GET /api/v2/packages/{packageId}/versions.
- packageId = current package Id
- status = status selected by the user
- API to filter versions - GET /api/v2/packages/{packageId}/versions.
The system allows changing status and label of the version:
- User hovers over the row with the required version and clicks Edit button.
- The system opens Edit Version popup with the following fields:
- Version – current version name. The field is disabled.
- Status
- Labels
- User makes required changes and clicks Save button.
- API to edit version – PATCH /api/v2/packages/{packageId}/versions/{version}
- packageId = current package Id
- version = current package version
- status = value from Status field
- versionLabels = value from Labels field
- API to edit version – PATCH /api/v2/packages/{packageId}/versions/{version}
To delete a version:
- User hovers over the row with the required version and clicks Delete button.
- The system shows a confirmation window with the following text: "Are you sure, you want to delete version ?"
- User clicks Yes, delete.
- The system deletes the version.
- API to delete version – DELETE /api/v2/packages/{packageId}/versions/{version}
- packageId = current package Id
- version = current package version
- API to delete version – DELETE /api/v2/packages/{packageId}/versions/{version}
⚠ If the user does not have permission to manage a version in a specific status (i.e. the user does not have manage status permission) in the package/dashboard, then the edit or delete button will be disabled with a tooltip.
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