Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: CASL permission voyage sprints #193

Merged
merged 27 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
113a927
added ability for sprint meetings
Ajen07 Aug 26, 2024
999244b
added permissions for GET /voyages/sprint and /voyages/sprint/teams/:…
Ajen07 Aug 30, 2024
fffc725
added swagger responses
Ajen07 Aug 30, 2024
115ecf5
added permissions for GET /voyages/sprints/meetins/:meetingId
Ajen07 Aug 30, 2024
ae690f1
added permissions for PATCH /voyages/sprints/meetins/:meetingId
Ajen07 Aug 30, 2024
8e4986c
added permissions for PATCH /voyages/sprints/:sprintNumber/teams/:te…
Ajen07 Aug 30, 2024
2c65d8e
added permissions for POST /voyages/sprints/meetings/:meetingId/agendas
Ajen07 Aug 30, 2024
023d446
Merge branch 'dev' of https://github.com/chingu-x/chingu-dashboard-be…
Ajen07 Aug 30, 2024
33a5629
added permissions for PATCH and DELETE /voyages/sprints/agendas/:age…
Ajen07 Aug 31, 2024
db78309
added permissions for PATCH POST GET /voyages/sprints/meetings/:meet…
Ajen07 Aug 31, 2024
2214db7
added swagger responses
Ajen07 Aug 31, 2024
bf079cd
refractored test
Ajen07 Aug 31, 2024
1784e18
updated changelog.md
Ajen07 Aug 31, 2024
8379de3
Merge branch 'dev' into feature/casl-permission-voyage-sprints
cherylli Sep 1, 2024
e687ebc
Merge branch 'dev' into feature/casl-permission-voyage-sprints
cherylli Sep 1, 2024
61af2dd
added new ability for meetings and agenda
Ajen07 Sep 1, 2024
a9142c4
added new action for sprint meeting forms and updated swagger descrip…
Ajen07 Sep 1, 2024
24d24ff
Merge branch 'feature/casl-permission-voyage-sprints' of https://gith…
Ajen07 Sep 1, 2024
1e7f49f
Merge branch 'dev' into feature/casl-permission-voyage-sprints
Ajen07 Sep 3, 2024
dfd9ea3
removed redundant variables
Ajen07 Sep 4, 2024
55ccc91
updated changelog.md
Ajen07 Sep 4, 2024
468207d
Merge branch 'dev' into feature/casl-permission-voyage-sprints
Ajen07 Sep 6, 2024
68bc1b4
Merge branch 'dev' of https://github.com/chingu-x/chingu-dashboard-be…
Ajen07 Sep 9, 2024
ad2cc7c
removed redundant swagger response and added chech for voyage roles
Ajen07 Sep 9, 2024
57cd687
refractored checks on user roles
Ajen07 Sep 9, 2024
5a11d57
Merge branch 'dev' into feature/casl-permission-voyage-sprints
cherylli Sep 10, 2024
6df8faa
Merge branch 'dev' into feature/casl-permission-voyage-sprints
cherylli Sep 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Another example [here](https://co-pilot.dev/changelog)
## [Unreleased]

### Added
- Add CASL permissions for Team Sprint endpoint ([#193](https://github.com/chingu-x/chingu-dashboard-be/pull/193))
cherylli marked this conversation as resolved.
Show resolved Hide resolved

### Changed

Expand Down
1 change: 1 addition & 0 deletions src/ability/ability.factory/ability.factory.ts
Ajen07 marked this conversation as resolved.
Show resolved Hide resolved
Ajen07 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class AbilityFactory {
in: user.voyageTeams.map((vt) => vt.memberId),
},
});
can([Action.Manage], "Sprint");
cherylli marked this conversation as resolved.
Show resolved Hide resolved
} else {
// all other users
can([Action.Submit, Action.Read], "Form", {
Expand Down
2 changes: 2 additions & 0 deletions src/ability/prisma-generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
TeamTechStackItem,
TeamResource,
ProjectFeature,
Sprint,
} from "@prisma/client";

export type PrismaSubjects = Subjects<{
Expand All @@ -20,4 +21,5 @@ export type PrismaSubjects = Subjects<{
TeamTechStackItem: TeamTechStackItem;
Resource: TeamResource;
Feature: ProjectFeature;
Sprint: Sprint;
}>;
Loading
Loading