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

ACS-5506 Add description and hasSubgroups to groups API #2035

Conversation

MichalKinas
Copy link
Contributor

@MichalKinas MichalKinas force-pushed the feature/ACS-5506-be-handling-a-description-of-the-group-and-flag-for-subgroups branch from 6c09f8e to e3c18b3 Compare July 4, 2023 09:04
Copy link
Contributor

@mpichura mpichura left a comment

Choose a reason for hiding this comment

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

I've had some remarks and thin the code needs some changes.

@MichalKinas MichalKinas force-pushed the feature/ACS-5506-be-handling-a-description-of-the-group-and-flag-for-subgroups branch from 353b18d to e0e2f74 Compare January 17, 2024 08:16
Copy link
Member

@tpage-alfresco tpage-alfresco left a comment

Choose a reason for hiding this comment

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

I don't like the asymmetry of this solution. We are relying on the AuthorityDAO to persist the group description, but I think the only way to retrieve it is with the NodeService. I think description is a reasonable field to add to the group object AuthorityInfo (providing it can continue to be unset) or alternatively we could just use the NodeService to set and retrieve it? (within a single transaction) Nb. AuthorityInfo is part of the @AlfrescoPublicApi and so we need to preserve the existing constructor.

The hasSubgroups flag requires extra service calls to populate and so should be an include parameter in the API.

@MichalKinas MichalKinas force-pushed the feature/ACS-5506-be-handling-a-description-of-the-group-and-flag-for-subgroups branch from 9e43682 to d3c7342 Compare January 30, 2024 23:09
Copy link
Member

@tpage-alfresco tpage-alfresco left a comment

Choose a reason for hiding this comment

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

This looks much better now and I don't think it should have any performance implications for existing integrations (since both new fields are behind include flags). You mentioned looking at canned queries, which could improve the performance when loading both the description and display name.

LGTM 👍

Copy link
Member

@tpage-alfresco tpage-alfresco left a comment

Choose a reason for hiding this comment

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

LGTM

@MichalKinas MichalKinas merged commit 3d1cc09 into master Feb 8, 2024
81 checks passed
@MichalKinas MichalKinas deleted the feature/ACS-5506-be-handling-a-description-of-the-group-and-flag-for-subgroups branch February 8, 2024 12:35
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