posit-dev / posit-dev/connect-extensions

Usage Metrics Dashboard: Admin user receives All Content option when using Publisher-limited integration

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

Nobody has claimed this yet.

Dominant language
R
Stars
10
Forks
8
Avg merge
5d 18h
Merged PRs (30d)
1

Description

When an Admin user is using the Usage Metrics Dashboard with a Publisher-capped integration, they should only receive Owned + Collaborating and Owned in the Included Content dropdown. However, they see "All Content" as an option too (it just displays owned + collaborating).

We get the active user's role here: https://github.com/posit-dev/connect-extensions/blob/fa66b79d4ceb37bb4d480dbbe8025f669f3b98c2/extensions/usage-metrics-dashboard/app.R#L554-L567

We may need to do something trickier to get their effective role.

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 by reading extensions/usage-metrics-dashboard/app.R at lines 554-567, then run the Usage Metrics Dashboard with an Admin user and a Publisher-capped integration. Trace how the active user's role controls the Included Content dropdown. Done means the dropdown offers only Owned + Collaborating and Owned, without All Content.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
analytics, authorization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.