feat(server,web): add force delete to immediately remove user (#7681)

* feat(server,web): add force delete to immediately remove user

* update wording on force delete confirmation

* fix force delete css

* PR feedback

* cleanup user service delete for force

* adding user status column

* some cleanup and tests

* more test fixes

* run npm run sql:generate

* chore: cleanup and websocket

* chore: linting

* userRepository.restore

* removed bad color class from delete-confirm-dialoge

* additional confirmation for user force delete

* shorten confirmation message

---------

Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
Sam Holton
2024-03-08 17:49:39 -05:00
committed by GitHub
parent 9cb0a1ffbf
commit 7a4ae7d142
47 changed files with 628 additions and 97 deletions

15
mobile/openapi/doc/DeleteUserDto.md generated Normal file
View File

@@ -0,0 +1,15 @@
# openapi.model.DeleteUserDto
## Load the model package
```dart
import 'package:openapi/api.dart';
```
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**force** | **bool** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -22,6 +22,7 @@ Name | Type | Description | Notes
**quotaSizeInBytes** | **int** | |
**quotaUsageInBytes** | **int** | |
**shouldChangePassword** | **bool** | |
**status** | [**UserStatus**](UserStatus.md) | |
**storageLabel** | **String** | |
**updatedAt** | [**DateTime**](DateTime.md) | |

View File

@@ -182,7 +182,7 @@ void (empty response body)
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **deleteUser**
> UserResponseDto deleteUser(id)
> UserResponseDto deleteUser(id, deleteUserDto)
@@ -206,9 +206,10 @@ import 'package:openapi/api.dart';
final api_instance = UserApi();
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
final deleteUserDto = DeleteUserDto(); // DeleteUserDto |
try {
final result = api_instance.deleteUser(id);
final result = api_instance.deleteUser(id, deleteUserDto);
print(result);
} catch (e) {
print('Exception when calling UserApi->deleteUser: $e\n');
@@ -220,6 +221,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| |
**deleteUserDto** | [**DeleteUserDto**](DeleteUserDto.md)| |
### Return type
@@ -231,7 +233,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

View File

@@ -21,6 +21,7 @@ Name | Type | Description | Notes
**quotaSizeInBytes** | **int** | |
**quotaUsageInBytes** | **int** | |
**shouldChangePassword** | **bool** | |
**status** | [**UserStatus**](UserStatus.md) | |
**storageLabel** | **String** | |
**updatedAt** | [**DateTime**](DateTime.md) | |

14
mobile/openapi/doc/UserStatus.md generated Normal file
View File

@@ -0,0 +1,14 @@
# openapi.model.UserStatus
## Load the model package
```dart
import 'package:openapi/api.dart';
```
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)