-
-
Notifications
You must be signed in to change notification settings - Fork 745
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
chore: remove deprecated method from project-service #9498
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
); | ||
|
||
const result = await projectService.getStatusUpdates(project.id); | ||
expect(result.updates.projectMembersAddedCurrentWindow).toBe(6); // 5 members + 1 owner | ||
expect(result.updates.projectActivityCurrentWindow).toBe(6); | ||
expect(result.updates.projectActivityCurrentWindow).toBe(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FredrikOseberg @kwasniew this one caught my attention. Instead of adding 5 users in 5 independent operations, we could add all of them in one operation. I'm just curious what we use this projectActivityCurrentWindow for, because if it's intended to count 5 in a bulk update instead of 1, maybe it's not counting as it's supposed to.
@@ -944,7 +934,7 @@ test('should add admin users to the project', async () => { | |||
await isProjectUser(adminUsers[2].id, project.id, true); | |||
}); | |||
|
|||
test('add user should fail if user already have access', async () => { | |||
test('add user do nothing if user already has access', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Highlighting this change in behaviour
Depends on https://github.com/bricks-software/unleash-enterprise/pull/137
This method has been deprecated and has an alternative. Migrating to that alternative