Skip to content

Dev#7

Merged
dabick14 merged 6 commits intomainfrom
dev
Feb 19, 2026
Merged

Dev#7
dabick14 merged 6 commits intomainfrom
dev

Conversation

@dabick14
Copy link
Copy Markdown
Contributor

Title
Auth Service: full role whitelist + shared flags query (SYN-47)

Summary

Add authoritative role whitelist + helpers in permission-utils.ts (39 roles).
Centralize MEMBER_FLAGS_QUERY used by login + refresh token.
Update role derivation to use constants + validation; add isFisher.
Fix isArrivalsPayerCouncil mapping and Neo4j relationship names.
Add role derivation tests covering all categories.
Testing

npm test -- role-derivation.test.ts
Issue
Closes SYN-47

dabick14 and others added 6 commits February 18, 2026 23:29
- Create permission-utils.ts with authoritative role whitelist (39 roles)
- Add MEMBER_FLAGS_QUERY to queries.ts for DRY principle
- Update roles.ts with isFisher support and role constant references
- Fix isArrivalsPayerCouncil mapping (was incorrectly 'tellerCouncil')
- Update login.ts and refreshToken.ts to use MEMBER_FLAGS_QUERY
- Add comprehensive role derivation tests
- Ensure all supported roles from permission-utils are properly returned
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ecognize-and-return-the-full-set-of-roles-from-permission-utils.ts

Syn 47 auth service must recognize and return the full set of roles from permission utils.ts
- Remove isSheepSeekerForStream flag from RoleFlags interface
- isSheepSeekerForStream was not in ticket requirements for supported roles
- Fixes TypeScript error in role-derivation.test.ts
- All 27 tests passing
…ecognize-and-return-the-full-set-of-roles-from-permission-utils.ts

fix: remove unsupported isSheepSeekerForStream from RoleFlags
@dabick14 dabick14 merged commit 1613ef2 into main Feb 19, 2026
1 check passed
@dabick14 dabick14 deleted the dev branch February 19, 2026 00:28
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.

1 participant