Skip to content

Conversation

@JammingBen
Copy link
Contributor

Follow-up for #812.

Needs opencloud-eu/opencloud#996 to work properly, although it doesn't destroy anything without, so it can be merged independently.

@JammingBen JammingBen self-assigned this Jun 10, 2025
Copilot AI review requested due to automatic review settings June 10, 2025 13:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the space member count logic to exclude public links by adding a filter to the API call.

  • Added a filter condition to the API call to ignore entries with an empty "grantedToV2" field.
  • Maintained the fallback member count value at 1 if the count is missing.

space.id,
sharesStore.graphRoles,
{ count: true }
{ count: true, filter: "grantedToV2 ne ''" }
Copy link

Copilot AI Jun 10, 2025

Choose a reason for hiding this comment

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

Consider extracting the filter criteria into a named constant or adding an inline comment to explain why 'grantedToV2 ne ""' is used. This can improve clarity and maintainability by avoiding the use of a magic string.

Suggested change
{ count: true, filter: "grantedToV2 ne ''" }
{ count: true, filter: GRANTED_TO_FILTER }

Copilot uses AI. Check for mistakes.
@JammingBen JammingBen merged commit 77c80d0 into main Jun 11, 2025
19 checks passed
@JammingBen JammingBen deleted the fix/space-header-member-count-exclude-links branch June 11, 2025 06:43
@openclouders openclouders mentioned this pull request Jun 11, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants