Skip to content

Conversation

@tlaverdure
Copy link
Contributor

This pull request introduces support for new database export and import APIs, expands privilege management, and updates several API response models for consistency. It also includes minor workflow and test improvements. The most important changes are grouped below.

API Client Enhancements:

  • Added support for new database export (DatabaseExportApi, DatabaseExportEndApi, DatabaseExportPartApi) and import (ImportApi, ImportChunkApi) APIs in ApiClient, including corresponding accessor methods. [1] [2] [3]

Privilege Management:

  • Introduced new privilege constants DATABASE_EXPORT and DATABASE_IMPORT in Privilege.php, and included them in the list of allowable enum values. [1] [2]

API Response Model Consistency:

  • Standardized the data property types in user and token response models to use UserStoreResponse, UserShowResponse, UserUpdateResponse, and TokenShowResponse instead of controller-specific response types, updating both type hints and docblocks in the relevant model files. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]

Test and Workflow Improvements:

  • Updated the Docker image and environment variables for integration tests to use the latest image and new storage path variables.
  • Fixed minor issues in test runner argument preparation and improved request object handling. [1] [2]
  • Corrected the documentation in the OpenAPI generator workflow to reference the right composer script.

Introduces new API classes for database export, export part, import, and import chunk operations, along with their corresponding model classes. Also updates the OpenAPI generator workflow to use the correct composer script name.
Introduces methods and imports for DatabaseExportApi, DatabaseExportPartApi, ImportApi, and ImportChunkApi in the ApiClient class, enabling access to new export and import functionalities.
Introduces DatabaseExportEndApi and related response models for handling database export completion. Updates ImportApi and ImportChunkApi to use new ImportStoreRequest and ImportChunkStoreRequest models, and refines response types for database export and import operations. Also updates openapi_config.yaml and integration tests to reflect these changes.
@tlaverdure tlaverdure self-assigned this Jan 6, 2026
@tlaverdure tlaverdure merged commit 14f5a90 into main Jan 6, 2026
3 checks passed
@tlaverdure tlaverdure deleted the add-database-import-export-apis branch January 6, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants