Skip to content

v1.2.0 - Custodians

Compare
Choose a tag to compare
@DonKoko DonKoko released this 25 Jul 08:29
· 4167 commits to main since this release
46d01a2

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 an OrganizationType 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

Full Changelog: https://github.com/Shelf-nu/shelf.nu/compare/[email protected]@1.2.0