-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat: 🍰 Implement Group Profile – Visibility #5332
feat: 🍰 Implement Group Profile – Visibility #5332
Conversation
…e-or-pending-members' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-groups/5318-group-profile-second
…/Ocelot-Social into 5059-groups/5318-group-profile-second
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.
Looks like it works fine. Sorry for the drastic words, but the code to handle the params in the group resolver is a nightmare that nobody can read. It will be impossible to work on this code as it is in the future.
groupMatchParamsCypher += index === 0 ? ' {' : '' | ||
groupMatchParamsCypher += `${ele[0]}: "${ele[1]}"` | ||
groupMatchParamsCypher += index < matchParamsEntries.length - 1 ? ', ' : '}' | ||
}) |
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.
Can this be done in some human readable way? Am I right, that we receive an ID, a slug, both or none from the params. So I suggest, if both (ID and slug) are undefined, return empty array or throw an error. We could say, that ID goes over slug if both are present.
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.
I couldn't find a working solution in Cypher.
What I have found was not working. So I spent a bit more then an hour. @Mogge
I created two hopefully well named and therefore descriptive helper functions instead. Hope that satisfies you …
…cial into 5059-groups/5318-group-profile-second
…/Ocelot-Social into 5059-groups/5318-group-profile-second
… by making a resolver helper function
🍰 Pull Request
Implement group profile – second step.
Issues
Todo
hidden
groups can only be seen by members that are notpending
Wolle