Skip to content

fix(telegram): stop reading the audit log's legacy admin_id - #135

Merged
toto04 merged 2 commits into
mainfrom
chore/remove-legacy-backend-fallbacks
Oct 27, 2026
Merged

toto04 merged 2 commits into
mainfrom
chore/remove-legacy-backend-fallbacks

Conversation

@BIA3IA

@BIA3IA BIA3IA commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Dashboard side of the post-Phase 6 cleanup in PoliNetworkOrg/backend#97.

  • Audit log: the Telegram profile no longer falls back to audit.adminId. The backend drops tg_audit_log.admin_id after copying it into actor_tg_id, so actorTgId covers every row.
  • Agent mode: the backend no longer has an anonymous path, so agent mode (no access token) gets UNAUTHORIZED from it. Comments, AGENTS.md and the README now say so: pages that read the backend show their error state, People serves its sample data, and real data needs a normal IdP sign-in.
  • Drops a stale comment about "legacy callers" on grant writes.

Order

Merge before backend#97. It works with the current backend too.

Verification

  • pnpm run typecheck: OK.
  • vp check: 0 errors (28 warnings already on main).
  • pnpm run test: 203 passed.

PoliNetworkOrg/backend#97 drops tg_audit_log.admin_id, after copying it into actor_tg_id, and the anonymous path agent mode relied on. The audit actor now comes from actorTgId only, and the agent-mode docs say the backend refuses its calls.
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e970d247-f0bb-4735-8a83-e8266c4795ad
  • 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

Comment @coderabbitai help to get the list of available commands.

@toto04
toto04 merged commit c4b5abf into main Oct 27, 2026
2 checks passed
@toto04
toto04 deleted the chore/remove-legacy-backend-fallbacks branch October 27, 2026 23:10
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