Skip to content

Commit 14a4f1f

Browse files
webdevinitionMarcel Diegelmannjbtronics
authored
Added custom part status (#1053)
* Benutzerdefinierten Bauteilstatus einführen * PartCustomStateController hinzufügen * Umstellung Migrationen bzgl. Multi-Plattform-Support. Zunächst MySQL, SQLite Statements integrieren. * Postgre Statements integrieren * Semikolon in Migration entfernen * Migration für PartCustomState aktualisieren * Benutzerdefinierten Bauteilstatus in TableSettings aufnehmen * PartCustomStateControllerTest: Attribute für PHPUnit-Gruppen umgestellt * PartCustomState: Mapping für Parameter korrigieren * PartCustomState: Darstellung und Zuordnung von Anhängen ergänzt Die Sidebar wurde um die Anzeige des benutzerdefinierten Bauteilstatus erweitert, inklusive Vorschaubild, sofern vorhanden. * Migrationen zusammenführen * PartCustomState: Anpassungen bzgl. Tests * PartCustomStateEndpoint hinzufügen * Made custom part states plural for consistency with other entity captions * Fixed phpunit error * Fixed phpstan issues --------- Co-authored-by: Marcel Diegelmann <[email protected]> Co-authored-by: Jan Böhmer <[email protected]>
1 parent 600686c commit 14a4f1f

File tree

65 files changed

+2044
-18
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+2044
-18
lines changed

config/permissions.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ perms: # Here comes a list with all Permission names (they have a perm_[name] co
2424
label: "perm.read"
2525
# If a part can be read by a user, he can also see all the datastructures (except devices)
2626
alsoSet: ['storelocations.read', 'footprints.read', 'categories.read', 'suppliers.read', 'manufacturers.read',
27-
'currencies.read', 'attachment_types.read', 'measurement_units.read']
27+
'currencies.read', 'attachment_types.read', 'measurement_units.read', 'part_custom_states.read']
2828
apiTokenRole: ROLE_API_READ_ONLY
2929
edit:
3030
label: "perm.edit"
@@ -133,6 +133,10 @@ perms: # Here comes a list with all Permission names (they have a perm_[name] co
133133
<<: *PART_CONTAINING
134134
label: "perm.measurement_units"
135135

136+
part_custom_states:
137+
<<: *PART_CONTAINING
138+
label: "perm.part_custom_states"
139+
136140
tools:
137141
label: "perm.part.tools"
138142
operations:

docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ bundled with Part-DB. Set `DATABASE_MYSQL_SSL_VERIFY_CERT` if you want to accept
136136
* `TABLE_PARTS_DEFAULT_COLUMNS`: The columns in parts tables, which are visible by default (when loading table for first
137137
time).
138138
Also specify the default order of the columns. This is a comma separated list of column names. Available columns
139-
are: `name`, `id`, `ipn`, `description`, `category`, `footprint`, `manufacturer`, `storage_location`, `amount`, `minamount`, `partUnit`, `addedDate`, `lastModified`, `needs_review`, `favorite`, `manufacturing_status`, `manufacturer_product_number`, `mass`, `tags`, `attachments`, `edit`.
139+
are: `name`, `id`, `ipn`, `description`, `category`, `footprint`, `manufacturer`, `storage_location`, `amount`, `minamount`, `partUnit`, `partCustomState`, `addedDate`, `lastModified`, `needs_review`, `favorite`, `manufacturing_status`, `manufacturer_product_number`, `mass`, `tags`, `attachments`, `edit`.
140140

141141
### History/Eventlog-related settings
142142

0 commit comments

Comments
 (0)