Skip to content

Make MaterialPackage uuid optional#21

Merged
ondratu merged 1 commit into
mainfrom
make-material-package-uuid-optional
May 6, 2026
Merged

Make MaterialPackage uuid optional#21
ondratu merged 1 commit into
mainfrom
make-material-package-uuid-optional

Conversation

@ddx32

@ddx32 ddx32 commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

GTINs cannot be reliably sourced for all brands, so UUID derivation (which depends on brand UUID + GTIN) is not always possible. Remove uuid from the required fields so material packages without GTINs can be added to the database without a UUID.

https://prusa3d.slack.com/archives/C08K3FW5X8A/p1769500810184589

GTINs cannot be reliably sourced for all brands, so UUID derivation
(which depends on brand UUID + GTIN) is not always possible. Remove
uuid from the required fields so material packages without GTINs can
be added to the database without a UUID.
@ddx32 ddx32 requested a review from CZDanol April 21, 2026 13:34
@CZDanol

CZDanol commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Hmm, if a package doesn't have an UUID, how would you want to reference it from outside the DB?

I'm thinking whether it wouldn't be more practical to just assign it a randomly generated UUID in this case. We were hinting a multi-UUID support some time ago.

I am not sure myself though atm, would probably welcome a bit of a discussion

@CZDanol

CZDanol commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Okay, seems like I've forgotten about the contents of the talk already, sorry

@ondratu ondratu merged commit 8e7f1de into main May 6, 2026
4 checks passed
@ondratu ondratu deleted the make-material-package-uuid-optional branch May 6, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants