Skip to content

fix: added optional thing_id to the BaseAsset schema. fixed sample tests to use singleton asserts instead of asserting equal dictionaries#61

Merged
jirhiker merged 2 commits into
pre-productionfrom
jir-create-asset-with-thing
Aug 5, 2025
Merged

fix: added optional thing_id to the BaseAsset schema. fixed sample tests to use singleton asserts instead of asserting equal dictionaries#61
jirhiker merged 2 commits into
pre-productionfrom
jir-create-asset-with-thing

Conversation

@jirhiker

@jirhiker jirhiker commented Aug 4, 2025

Copy link
Copy Markdown
Member

Why

This PR addresses the following problem / context:

  • Associating an asset with a thing
  • Sample tests

How

Implementation summary - the following was changed / added / removed:

  • updated the Asset schema to have optional thing_id field
  • changed sample tests to use singleton asserts

Notes

Any special considerations, workarounds, or follow-up work to note?

  • Use bullet points here

jirhiker and others added 2 commits August 4, 2025 17:24
…sts to use singleton asserts instead of asserting equal dictionaries

@chasetmartin chasetmartin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That's a much more graceful way to handle the create and update asset schemas.

@jacob-a-brown

Copy link
Copy Markdown
Contributor

This looks good. @ksmuczynski and I worked on updating the sample database models, schemas, and tests as well. After this gets merged into pre-production I'll resolve merge conflicts and open a PR for the sample endpoint.

@jirhiker jirhiker merged commit 8fce9a0 into pre-production Aug 5, 2025
1 check passed
@jirhiker jirhiker deleted the jir-create-asset-with-thing branch August 29, 2025 14:40
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