v1.2.0 - Custodians
DonKoko
released this
25 Jul 08:29
·
4167 commits
to main
since this release
This release introduces the custodian's functionality as well as prepares the DB an app for the future development of the Organizations module.
New Features
- Each user now has a
PERSONAL
organization. This sets up the base for teams and organizations - You can now create Team members within your personal organization. Those team members are not linked to actual users(coming soon) but are meant more for having an overview of which asset is in the custody of which team member.
- Give custody of an asset to a team member
- Release custody of an asset from a team member
- Asset status - we currently have 2 options: Available & In custody. Those statuses are managed automatically by shelf, depending on weather the asset has a custodian or not.
Database changes
- Added a few new models to database:
TeamMember
,Custody
&Organization
including anOrganizationType
enum. - When a new user is created, we create a
PERSONAL
organization for that user
How to update
Due to some changes in the database you if you are upgrading from v1.1.x
you need to run the database manual migration from the relationship-data-updates
folder.
npx @digitak/esrun app/database/manual-migrations/relationship-data-updates/add-organizations-to-existing-users.server.ts
I personally use @digitak/esrun
to run the typescript file but you can use any other tool. This migration create a PERSONAL
organization for all users who don't have one. Users that already have it will be skipped.
What's Changed
- Custodies backend by @DonKoko in #232
- Custodies backend by @DonKoko in #233
- populating workspace view with data from backend by @DonKoko in #234
- Custodies by @DonKoko in #243
- tests for giving and releasing custody by @DonKoko in #247
- Custodies by @DonKoko in #251
- making tests run in serial by @DonKoko in #253
- Custodies by @DonKoko in #256
Full Changelog: https://github.com/Shelf-nu/shelf.nu/compare/[email protected]@1.2.0