adding both a user and group to content requires two different functions
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by comparing content_add_user and content_add_group and reviewing the linked connect-cookbook pull request for the two existing recipes. Determine how content_add_permission can accept either a user or group GUID and identify the relevant tests or examples to update; done means one function supports mixed principals without requiring separate lists.
Written by the indexing model from the issue text.
Description
To add a user or group to content, two different functions are required Examples:
Add user:
content_add_user(content, user_guid, role = access_type)
Add a group:
content_add_group(content, group_guid, role = access_type)
A common use case may be to have a list of users and groups to add to content, however, the current implementation requires that list to be segregated by users and groups. A cleaner implementation would allow content_add_permission to take either a user or a group guid and then sort out internally what type of principal it is.
See https://github.com/posit-dev/connect-cookbook/pull/65 for how this requires two different recipes to do more or less the same thing.
- Dominant language
- R
- Stars
- 54
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/connectapi
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
posit-dev/connectapi#249 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
posit-dev/connectapi#527 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
posit-dev/connectapi#526 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
posit-dev/connectapi#506 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
posit-dev/connectapi#486 ·
All issues in posit-dev/connectapi
Similar issues
-
Component: R Type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
apache/arrow#51695 · 1 comment ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nflverse/nflverse-rosters#102 ·
-
bug priority: should
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
The-Strategy-Unit/nhp_outputs#477 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
InseeFrLab/melodi#27 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100