Skip to content

feat(report): allow daily report for frontend - #62

Closed
Gutts-n wants to merge 1 commit into
mainfrom
feat/daily-report-frontend-token
Closed

Gutts-n wants to merge 1 commit into
mainfrom
feat/daily-report-frontend-token

Conversation

@Gutts-n

@Gutts-n Gutts-n commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Lets the portal's sysadmin Daily Report page read CKAN's daily_report_activity. Refs datopian/client-sse-networks-shared#365 (assessment row 10).

What changed

token_scope.py: daily_report_activity added to the frontend token allow-list. Without it CKAN answers 403 to the portal's call. The test list in test_token_scope.py includes it.

Why it is safe

The action already refuses anyone who is not a sysadmin (is_sysadmin(context['user']) at the top of dashboard_activity_list_for_all_users), so a normal user's frontend token gets an error object, not data. The allow-list only decides which actions a frontend token may reach.

Verified / not verified

  • Verified: compiles; same pattern as the earlier PR that added the two my-* actions.
  • NOT verified: CKAN tests not run; not tested with a sysadmin token yet.

Deployment

Merging to main creates a release tag. Dev and prod pin a commit, so nothing changes until the helm repos are bumped.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5840267c-c362-45cf-9bf4-e8025f43256a
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@anuveyatsu

Copy link
Copy Markdown
Member

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@Gutts-n Gutts-n closed this Nov 27, 2026
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.

2 participants