1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

chore: remove unused SCIM setting - assumeControlOfExisting (#8101)

This property is unused and should be removed.

This fixes a logged schema error:

```
Invalid response: {
    "schema": "#/components/schemas/scimSettingsSchema",
    "errors": [
        {
            "instancePath": "",
            "schemaPath": "#/required",
            "keyword": "required",
            "params": {
                "missingProperty": "assumeControlOfExisting"
            },
            "message": "must have required property 'assumeControlOfExisting'"
        }
    ]
}
```
This commit is contained in:
Nuno Góis 2024-09-05 13:45:20 +01:00 committed by GitHub
parent 2daa0cd8ca
commit 355b3eb58a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View File

@ -50,7 +50,7 @@ export const ScimSettings = () => {
const saveScimSettings = async (enabled: boolean) => {
try {
setEnabled(enabled);
await saveSettings({ enabled, assumeControlOfExisting: false });
await saveSettings({ enabled });
if (enabled && !settings.hasToken) {
const token = await generateNewToken();
setNewToken(token);

View File

@ -9,13 +9,11 @@ const ENDPOINT = 'api/admin/scim-settings';
export type ScimSettings = {
enabled: boolean;
hasToken: boolean;
assumeControlOfExisting: boolean;
};
const DEFAULT_DATA: ScimSettings = {
enabled: false,
hasToken: false,
assumeControlOfExisting: false,
};
export const useScimSettings = () => {