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/ps/backend #259

Merged
merged 8 commits into from
Jul 30, 2024
Merged

Feat/ps/backend #259

merged 8 commits into from
Jul 30, 2024

Conversation

aliassan
Copy link
Contributor

Description

Backend for the permissioning system.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist:

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added / updated (for bug fixes / features)

@aliassan aliassan marked this pull request as ready for review July 19, 2024 10:44
</template>
<script setup lang="ts">
import { ref, computed } from 'vue'
import IconPlus from '@/components/icons/IconPlus.vue'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import IconPlus from '@/components/icons/IconPlus.vue'
import { PlusCircleIcon } from '@heroicons/vue/24/outline'

:key="index"
class="collapse collapse-plus bg-base-200 border mt-2"
>
<input type="radio" name="my-accordion-3" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The accordions do not have the right behavior. (Does not toggle)
Use the AccordionComponent.vue component instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I'll effect on a new request for the front-end

…system

Merge "feature/permissioning-system" in "feat/PS/backend"
Copy link
Contributor

@hermannleboss hermannleboss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Formatting
  • Uitls

You are just doing the crud with no check if the user have the right to do it.
I think you will handle if the user can do somes stuff or not.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you don't have the same formatting. Try to uniform the formatting.

import { prisma, errorResponse } from "../../utils";
import { Request, Response } from "express";

const initEntTypes = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const initEntTypes = [
const initEntitlementTypes = [

You should name it in a way it's easy to understand.

backend/src/utils/roleUtil.ts Outdated Show resolved Hide resolved
backend/src/routes/roleRoutes.ts Outdated Show resolved Hide resolved
@aliassan
Copy link
Contributor Author

Okay lemme work on implementing your reviews, I just wanted to get the functionality working first and then I'll handle authentication and securing the routes

Copy link
Contributor

@hermannleboss hermannleboss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aliassan aliassan merged commit 0ac8f37 into feature/permissioning-system Jul 30, 2024
@hermannleboss hermannleboss deleted the feat/PS/backend branch August 12, 2024 07:13
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.

3 participants