Skip to content

Commit 8aa4f0a

Browse files
committed
lint and snapshot update
1 parent 10199e4 commit 8aa4f0a

8 files changed

+61
-10
lines changed

api/migrations/schema/Version20250811195334.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,17 @@
1010
/**
1111
* Auto-generated Migration: Please modify to your needs!
1212
*/
13-
final class Version20250811195334 extends AbstractMigration
14-
{
15-
public function getDescription(): string
16-
{
17-
return '';
13+
final class Version20250811195334 extends AbstractMigration {
14+
public function getDescription(): string {
15+
return 'Done-Column for MaterialItem';
1816
}
1917

20-
public function up(Schema $schema): void
21-
{
18+
public function up(Schema $schema): void {
2219
// this up() migration is auto-generated, please modify it to your needs
2320
$this->addSql('ALTER TABLE material_item ADD done BOOLEAN DEFAULT false NOT NULL');
2421
}
2522

26-
public function down(Schema $schema): void
27-
{
23+
public function down(Schema $schema): void {
2824
// this down() migration is auto-generated, please modify it to your needs
2925
$this->addSql('ALTER TABLE material_item DROP done');
3026
}

api/tests/Api/SnapshotTests/__snapshots__/ResponseSnapshotTest__testGetCollectionMatchesStructure with data set content_nodematerial_nodes__1.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
}
5151
},
5252
"article": "escaped_value",
53+
"done": "escaped_value",
5354
"id": "escaped_value",
5455
"quantity": "escaped_value",
5556
"unit": "escaped_value"

api/tests/Api/SnapshotTests/__snapshots__/ResponseSnapshotTest__testGetCollectionMatchesStructure with data set content_nodes__1.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
}
5151
},
5252
"article": "escaped_value",
53+
"done": "escaped_value",
5354
"id": "escaped_value",
5455
"quantity": "escaped_value",
5556
"unit": "escaped_value"

api/tests/Api/SnapshotTests/__snapshots__/ResponseSnapshotTest__testGetCollectionMatchesStructure with data set material_items__1.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
}
1919
},
2020
"article": "escaped_value",
21+
"done": "escaped_value",
2122
"id": "escaped_value",
2223
"quantity": "escaped_value",
2324
"unit": "escaped_value"
@@ -39,6 +40,7 @@
3940
}
4041
},
4142
"article": "escaped_value",
43+
"done": "escaped_value",
4244
"id": "escaped_value",
4345
"quantity": "escaped_value",
4446
"unit": "escaped_value"
@@ -60,6 +62,7 @@
6062
}
6163
},
6264
"article": "escaped_value",
65+
"done": "escaped_value",
6366
"id": "escaped_value",
6467
"quantity": "escaped_value",
6568
"unit": "escaped_value"
@@ -81,6 +84,7 @@
8184
}
8285
},
8386
"article": "escaped_value",
87+
"done": "escaped_value",
8488
"id": "escaped_value",
8589
"quantity": "escaped_value",
8690
"unit": "escaped_value"

api/tests/Api/SnapshotTests/__snapshots__/ResponseSnapshotTest__testGetItemMatchesStructure with data set activities__1.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
}
6262
},
6363
"article": "escaped_value",
64+
"done": "escaped_value",
6465
"id": "escaped_value",
6566
"quantity": "escaped_value",
6667
"unit": "escaped_value"

api/tests/Api/SnapshotTests/__snapshots__/ResponseSnapshotTest__testGetItemMatchesStructure with data set material_items__1.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
}
1616
},
1717
"article": "escaped_value",
18+
"done": "escaped_value",
1819
"id": "escaped_value",
1920
"quantity": "escaped_value",
2021
"unit": "escaped_value"

api/tests/Api/SnapshotTests/__snapshots__/ResponseSnapshotTest__testOpenApiSpecMatchesSnapshot__1.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13806,6 +13806,11 @@ components:
1380613806
format: iri-reference
1380713807
readOnly: true
1380813808
type: string
13809+
done:
13810+
default: false
13811+
description: 'Whether the item has been prepared and is ready to be brought to the camp.'
13812+
example: true
13813+
type: boolean
1380913814
id:
1381013815
description: 'An internal, unique, randomly generated identifier of this entity.'
1381113816
example: 1a2b3c4d
@@ -13851,6 +13856,7 @@ components:
1385113856
- string
1385213857
required:
1385313858
- article
13859+
- done
1385413860
- materialList
1385513861
type: object
1385613862
MaterialItem-write:
@@ -13861,6 +13867,11 @@ components:
1386113867
description: 'The name of the item that is required.'
1386213868
example: Volleyball
1386313869
type: string
13870+
done:
13871+
default: false
13872+
description: 'Whether the item has been prepared and is ready to be brought to the camp.'
13873+
example: true
13874+
type: boolean
1386413875
materialList:
1386513876
description: |-
1386613877
The list to which this item belongs. Lists are used to keep track of who is
@@ -13906,6 +13917,11 @@ components:
1390613917
example: Volleyball
1390713918
maxLength: 64
1390813919
type: string
13920+
done:
13921+
default: false
13922+
description: 'Whether the item has been prepared and is ready to be brought to the camp.'
13923+
example: true
13924+
type: boolean
1390913925
materialList:
1391013926
description: |-
1391113927
The list to which this item belongs. Lists are used to keep track of who is
@@ -13945,6 +13961,7 @@ components:
1394513961
- string
1394613962
required:
1394713963
- article
13964+
- done
1394813965
- materialList
1394913966
type: object
1395013967
MaterialItem.jsonapi:
@@ -13966,6 +13983,11 @@ components:
1396613983
example: Volleyball
1396713984
maxLength: 64
1396813985
type: string
13986+
done:
13987+
default: false
13988+
description: 'Whether the item has been prepared and is ready to be brought to the camp.'
13989+
example: true
13990+
type: boolean
1396913991
quantity:
1397013992
description: 'The number of items or the amount in the unit of items that are required.'
1397113993
example: 1.5
@@ -13978,6 +14000,7 @@ components:
1397814000
type: ['null', string]
1397914001
required:
1398014002
- article
14003+
- done
1398114004
type: object
1398214005
id:
1398314006
type: string
@@ -14041,6 +14064,11 @@ components:
1404114064
format: iri-reference
1404214065
readOnly: true
1404314066
type: string
14067+
done:
14068+
default: false
14069+
description: 'Whether the item has been prepared and is ready to be brought to the camp.'
14070+
example: true
14071+
type: boolean
1404414072
id:
1404514073
description: 'An internal, unique, randomly generated identifier of this entity.'
1404614074
example: 1a2b3c4d
@@ -14086,6 +14114,7 @@ components:
1408614114
- string
1408714115
required:
1408814116
- article
14117+
- done
1408914118
- materialList
1409014119
type: object
1409114120
MaterialItem.jsonhal-write_create:
@@ -14106,6 +14135,11 @@ components:
1410614135
example: Volleyball
1410714136
maxLength: 64
1410814137
type: string
14138+
done:
14139+
default: false
14140+
description: 'Whether the item has been prepared and is ready to be brought to the camp.'
14141+
example: true
14142+
type: boolean
1410914143
materialList:
1411014144
description: |-
1411114145
The list to which this item belongs. Lists are used to keep track of who is
@@ -14145,6 +14179,7 @@ components:
1414514179
- string
1414614180
required:
1414714181
- article
14182+
- done
1414814183
- materialList
1414914184
type: object
1415014185
MaterialItem.jsonld-read:
@@ -14185,6 +14220,11 @@ components:
1418514220
format: iri-reference
1418614221
readOnly: true
1418714222
type: string
14223+
done:
14224+
default: false
14225+
description: 'Whether the item has been prepared and is ready to be brought to the camp.'
14226+
example: true
14227+
type: boolean
1418814228
id:
1418914229
description: 'An internal, unique, randomly generated identifier of this entity.'
1419014230
example: 1a2b3c4d
@@ -14230,6 +14270,7 @@ components:
1423014270
- string
1423114271
required:
1423214272
- article
14273+
- done
1423314274
- materialList
1423414275
type: object
1423514276
MaterialItem.jsonld-write_create:
@@ -14241,6 +14282,11 @@ components:
1424114282
example: Volleyball
1424214283
maxLength: 64
1424314284
type: string
14285+
done:
14286+
default: false
14287+
description: 'Whether the item has been prepared and is ready to be brought to the camp.'
14288+
example: true
14289+
type: boolean
1424414290
materialList:
1424514291
description: |-
1424614292
The list to which this item belongs. Lists are used to keep track of who is
@@ -14280,6 +14326,7 @@ components:
1428014326
- string
1428114327
required:
1428214328
- article
14329+
- done
1428314330
- materialList
1428414331
type: object
1428514332
MaterialList-read:

frontend/src/components/material/MaterialTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
:disabled="layoutMode || doneChecklistDisabled || disabled"
3333
:uri="item.uri"
3434
path="done"
35-
/>
35+
/>
3636
</template>
3737

3838
<template #[`item.quantity`]="{ item }">

0 commit comments

Comments
 (0)