feat(web/server): Add options to rerun job on all assets (#1422)

This commit is contained in:
Alex
2023-01-26 22:50:22 -06:00
committed by GitHub
parent 6ea91b2dde
commit 788b435f9b
17 changed files with 234 additions and 185 deletions

View File

@@ -9,6 +9,7 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**command** | [**JobCommand**](JobCommand.md) | |
**includeAllAssets** | **bool** | |
[[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

@@ -14,25 +14,31 @@ class JobCommandDto {
/// Returns a new [JobCommandDto] instance.
JobCommandDto({
required this.command,
required this.includeAllAssets,
});
JobCommand command;
bool includeAllAssets;
@override
bool operator ==(Object other) => identical(this, other) || other is JobCommandDto &&
other.command == command;
other.command == command &&
other.includeAllAssets == includeAllAssets;
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(command.hashCode);
(command.hashCode) +
(includeAllAssets.hashCode);
@override
String toString() => 'JobCommandDto[command=$command]';
String toString() => 'JobCommandDto[command=$command, includeAllAssets=$includeAllAssets]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'command'] = this.command;
json[r'includeAllAssets'] = this.includeAllAssets;
return json;
}
@@ -56,6 +62,7 @@ class JobCommandDto {
return JobCommandDto(
command: JobCommand.fromJson(json[r'command'])!,
includeAllAssets: mapValueOfType<bool>(json, r'includeAllAssets')!,
);
}
return null;
@@ -106,6 +113,7 @@ class JobCommandDto {
/// The list of required keys that must be present in a JSON.
static const requiredKeys = <String>{
'command',
'includeAllAssets',
};
}

View File

@@ -21,6 +21,11 @@ void main() {
// TODO
});
// bool includeAllAssets
test('to test the property `includeAllAssets`', () async {
// TODO
});
});