Skip to content

Add nullable string _id to all BO and COMs#616

Merged
hf-kklein merged 4 commits intomainfrom
id
Oct 6, 2023
Merged

Add nullable string _id to all BO and COMs#616
hf-kklein merged 4 commits intomainfrom
id

Conversation

@hf-kklein
Copy link
Copy Markdown
Contributor

No description provided.

@hf-kklein hf-kklein marked this pull request as ready for review October 6, 2023 09:33
@hf-kklein hf-kklein linked an issue Oct 6, 2023 that may be closed by this pull request
Comment on lines +38 to +45
# Python internal: The field is not named '_id' because leading underscores are not allowed in pydantic field names.
# NameError: Fields must not use names with leading underscores; e.g., use 'id' instead of '_id'.
id: Optional[str] = Field(alias="_id", default=None)
"""
Eine generische ID, die für eigene Zwecke genutzt werden kann.
Z.B. könnten hier UUIDs aus einer Datenbank stehen oder URLs zu einem Backend-System.
"""

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

die relevante stelle für bos. der rest ist test noise

Comment on lines +29 to +36
# Python internal: The field is not named '_id' because leading underscores are not allowed in pydantic field names.
# NameError: Fields must not use names with leading underscores; e.g., use 'id' instead of '_id'.
id: Optional[str] = Field(alias="_id", default=None)
"""
Eine generische ID, die für eigene Zwecke genutzt werden kann.
Z.B. könnten hier UUIDs aus einer Datenbank stehen oder URLs zu einem Backend-System.
"""

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

die relevante stelle für coms. der rest ist test noise

@hf-kklein hf-kklein merged commit b8992eb into main Oct 6, 2023
@hf-kklein hf-kklein deleted the id branch October 6, 2023 10:05
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.

Alle BOs und COMs sollen ein Attribute/Feld _id haben.

2 participants