mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-22 11:18:20 +02:00
This PR fixes an issue where trying to use an admin token to import features via the API resulted in a 500 (due to missing properties). The solution is to catch when the user is using and admin token in the controller, throw a 400, and tell them to use personal access tokens or service accounts. The PR includes a new test file for this specific use case. We don't really test these cases many other places, so it seemed the logical choice. |
||
|---|---|---|
| .. | ||
| createExportImportService.ts | ||
| export-import-api-usage.test.ts | ||
| export-import-controller.ts | ||
| export-import-permissions.e2e.test.ts | ||
| export-import-service.ts | ||
| export-import.e2e.test.ts | ||
| import-context-validation.test.ts | ||
| import-context-validation.ts | ||
| import-permissions-service.ts | ||
| import-toggles-store-type.ts | ||
| import-toggles-store.ts | ||
| import-validation-messages.ts | ||