use latest arena-core (UserGroup type)#162
Conversation
|
There was a problem hiding this comment.
Pull request overview
This PR updates Arena Server to use the latest @openforis/arena-core dependency and adopts the UserGroup type (and related props) from arena-core instead of maintaining a duplicated local definition.
Changes:
- Bump
@openforis/arena-corefrom^1.3.8to^1.3.10(and update lockfile accordingly). - Replace local
UserGroup/UserGroupPropstype usage with@openforis/arena-coreexports across service, API, and repository layers. - Remove the local
src/repository/userGroup/types.tstype definitions and stop exporting them from repository barrels.
Reviewed changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Updates resolved @openforis/arena-core version to 1.3.10. |
| package.json | Bumps @openforis/arena-core dependency to ^1.3.10. |
| src/service/userGroup/index.ts | Switches UserGroup/UserGroupProps imports to come from arena-core. |
| src/api/userGroup/common.ts | Switches UserGroup type import to come from arena-core. |
| src/repository/userGroup/update.ts | Uses arena-core UserGroup type for repository function typing. |
| src/repository/userGroup/read.ts | Uses arena-core UserGroup type for repository function typing. |
| src/repository/userGroup/insert.ts | Uses arena-core UserGroup type for repository function typing. |
| src/repository/userGroup/delete.ts | Uses arena-core UserGroup type for repository function typing. |
| src/repository/userGroup/getUserGroupsByUser.ts | Uses arena-core UserGroup type for repository function typing. |
| src/repository/userGroup/index.ts | Removes re-export of local UserGroup types from the userGroup repository barrel. |
| src/repository/userGroup/types.ts | Deletes the local UserGroup type definitions. |
| src/repository/index.ts | Removes re-export of UserGroup types from the top-level repository barrel. |
Comments suppressed due to low confidence (1)
src/repository/userGroup/index.ts:23
- This module no longer re-exports
UserGroup/UserGroupProps, which can break consumers that import these types from../../repository/userGroup.
If the goal is to use the canonical types from @openforis/arena-core, consider re-exporting them from here (type-only) to preserve the existing public surface area.
export type { UserGroupMember } from './members'
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



No description provided.