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

chore: remove deprecated method from project-service #9498

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gastonfournier
Copy link
Contributor

Depends on https://github.com/bricks-software/unleash-enterprise/pull/137

This method has been deprecated and has an alternative. Migrating to that alternative

Copy link

vercel bot commented Mar 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Mar 10, 2025 4:37pm
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Mar 10, 2025 4:37pm

Copy link
Contributor

github-actions bot commented Mar 10, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

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);
Copy link
Contributor Author

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 () => {
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant