posit-dev / posit-dev/connectapi

Create a data.frame representation from remote users.

Open
#279 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
54
Forks
27
Avg merge
1d 3m
Merged PRs (30d)
1

Description

We need to do slightly more than simply making a data.frame from the results:

remote_users <- client$users_remote(user_prefix)
tibble(
  username = map_chr(remote_users$results, ~.$username),
  fist_name = map_chr(remote_users$results, ~.$first_name),
  last_name = map_chr(remote_users$results, ~.$last_name),
  guid = map_chr(remote_users$results,  ~ifelse(is.null(.$guid), NA, .$guid)),
  temp_ticket = map_chr(remote_users$results, ~.$temp_ticket)
)

https://github.com/posit-dev/connect-cookbook/pull/72/files#r1640289734

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the users_remote(user_prefix) entry point and the remote_users$results structure shown in the issue, then review the referenced Connect Cookbook pull request for context. Done means exposing remote users as a data.frame with username, first_name, last_name, guid, and temp_ticket columns, including missing guid values as NA.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.