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

fix: 🧪 owner permission level should be 2 #1255

Closed
wants to merge 1 commit into from

Conversation

clairenollet
Copy link
Collaborator

Issues liées

Issues numéro:


Quel est le comportement actuel ?

Quel est le nouveau comportement ?

Cette PR introduit-elle un breaking change ?

Autres informations

@clairenollet clairenollet self-assigned this Jul 10, 2024
@cloud-pi-native-sonarqube
Copy link

Passed

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage No coverage information (78.30% Estimated after merge)
  • Duplications 0.00% Duplicated Code (4.90% Estimated after merge)

Project ID: cloud-pi-native_console_AYsa46O31ebDtzs-pYyZ

View in SonarQube

@@ -36,8 +36,7 @@ export const createRandomDbSetup = ({ nbUsers = 1, nbRepo = 3, envs = basicStage
project.roles[0].role = projectRoles[0]
const ownerId = project.roles.find(role => role.role === 'owner')?.userId

// @ts-ignore
project.members = project.roles.map(({ userId, user: { id: _, ...user }, role }) => {
project.members = project.roles.map(({ userId, user, role }) => {
Copy link
Member

Choose a reason for hiding this comment

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

On ne se retrouve pas avec 2 fois l'id de l'utilisateur avec cette modification ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sous forme d'id et de userId oui

Copy link
Member

Choose a reason for hiding this comment

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

C'est ce que renvoie notre API ? Si c'est le cas c'est bizarre non ? Et si ça n'est pas le cas est-ce qu'on ne devrait pas plutôt essayer de s'aligner sur le comportement de l'api ?

@clairenollet clairenollet deleted the fix/flaky-test-owner branch July 11, 2024 11:27
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.

None yet

2 participants