Skip to content

Fix admin crud row error - #27

Closed
zZedix wants to merge 3 commits into
PasarGuard:nextfrom
zZedix:fix-admin-crud-row-error
Closed

zZedix wants to merge 3 commits into
PasarGuard:nextfrom
zZedix:fix-admin-crud-row-error

Conversation

@zZedix

@zZedix zZedix commented Oct 5, 2025

Copy link
Copy Markdown
Contributor

Both get_admin_by_id and get_admin_by_discord_id were using Result.first(), which returns a plain SQLAlchemy Row object.
Passing that row into load_admin_attrs caused an AttributeError ('Row' object has no attribute 'awaitable_attrs').
This update changes those functions to return proper ORM instances, fixing the error and making the admin lookup helpers usable again

Free-Guy-IR added a commit to Free-Guy-IR/panel that referenced this pull request Nov 2, 2026
…rd main's decisions

B7-ADV2 B2-3, B2-4, B2-6, B2-10 and main's rulings of 2026-10-28.

Decisions (Owner decisions):
- 2026-10-28-main-reclassified, until 2026-11-08: the entries now
  classified security: yes where the fork is affected, each ported as
  the fork's own increment: PasarGuard#1053 59c3b62 (format_map; the fork's
  address allowlist also passes width specs), PasarGuard#947 eb30578
  (webhook URLs logged at app/jobs/send_notifications.py:45 and :47),
  PasarGuard#1052 da27446 (inbound finalmask filter lists reach clients),
  e538dc1 (removes upstream's address check; the fork keeps its
  own and caps format specs with PasarGuard#1053), PasarGuard#1060 e0bb112 (HWID
  registered before the 406), e6ca015 (certifi 2026.10.19,
  already on main as 1c20204), PasarGuard#1065 80d855f (bridge 0.9.4: a
  rejected user stalled the node queue, so removals never arrived),
  PasarGuard#1059 0155c0e (MySQL DATEDIFF ends reset cycles a day early),
  and [email protected].
- 2026-10-28-main-hint-waivers, until 2026-11-27: the nine Waived
  entries the keyword hint flags, now security: yes; the seven
  notifier-workflow commits are covered only while they touch nothing
  but .github/workflows/github-notifications-bot.yml (deleted by the
  fork in 535c1aa), and the two UNMERGED-WIP entries keep failing at
  once if upstream merges them.

Classifications (B2-4): every port-queue security: no reason was
re-read against its diff by six non-author readers (233 entries) and
rewritten to say why the change has no security effect instead of
paraphrasing the subject; 64 readers' flags were adjudicated: the
held telemt entries 0373f09, 35b493c and 84e5416, the
AmneziaWG branch (unchecked fields rendered into subscriber .conf
files), certifi 2026.10.19 and 2026.10.23, docker/login-action 4.7.0
and the telemt link and validation commits are security: yes; the
rest are no with a reason. 0097556 stays no with its reason.

Reasons (B2-10): every Held and Waived security: no entry gives its
reason; the gate's unreasoned count is 0.

aiohttp (B2-6): 3.14.4 fixes eight advisories against 3.14.3 (OSV
2026-10-29): three high, four moderate, one low; item 0b ports aiohttp
3.14.5 and yarl 1.25.1 with trailers.

Bridge waiver: PasarGuard#27 is a security fix, so the 0.9.4 waiver is
security = "yes" under 2026-10-28-main-reclassified, until unchanged.

Held: PasarGuard#1120 8e92a12 (sse-starlette 3.5.1, upstream dev head) and
the new upstream branch feat/gzip-compression (8f48cd7,
769c296, 420d094); .upstream-refs records both heads.

Gate at HEAD with --today 2026-10-29: OK, not at parity, 181 owed.
Free-Guy-IR added a commit to Free-Guy-IR/panel that referenced this pull request Nov 3, 2026
Bridge 6116922 waits only the node default timeout for update_node, update_core
and update_geofiles, so a node-serviced update taking longer than a few seconds
failed as -5 while it kept running, and one user a node rejects stalled every
user batched with it. f213a50 waits MAINTENANCE_TIMEOUTS (330 s) for those
calls, isolates rejected users (PasarGuard#27) and refreshes them through the NATS store.
The guard now refuses a bridge without MAINTENANCE_TIMEOUTS, and the 0.6.20
reject test that waited for this isolation is a plain test.
Free-Guy-IR added a commit to Free-Guy-IR/panel that referenced this pull request Nov 4, 2026
…ck mtg fork main

node_bridge_py PasarGuard#21 27be206 and PasarGuard#27 a01bdbb are security design ports now:
PasarGuard#27 kept a disabled, expired or deleted user active while the node
rejected another user, and PasarGuard#21's fence keeps a stale queued state from
overwriting a newer change. Each names the fork commits that carry it,
PasarGuard#27 as the chain of its three port commits, and every hunk of its own
change that is not on fork main as one block, with the later fork fix or
upstream commit that changed it.

mtg is tracked against fork main, the fork's default branch, where the
MTG lane merged upstream v2.3.0 as 06a89488146c, so the v2.3.0 commits
of the port queue, the accept-error security pair among them, are merged
with every line present. Fork master and the node's go.mod pin are
still 7d0f004a01dd. The branch-only upstream race fix 00a27e407da4
(PasarGuard#588) is recorded as superseded by fork commits 6e378787be50 and
e3e9542730f6, and its branch head is in the refs snapshot.

The subscription-template gap list says the fork page's one link, the
announcement link, is labelled Support.
Free-Guy-IR added a commit to Free-Guy-IR/panel that referenced this pull request Nov 4, 2026
…the commits behind the bridge exceptions

Scripts fork main 66bbbd553ce5 carries upstream PasarGuard#41 4d481a8efd3c as a port
with changes (5d28a2b0afa2 through 0e02f9923f8f), so nothing of v0.1.10 or
v0.1.11 is owed. The PasarGuard#35 and bridge PasarGuard#21/PasarGuard#27 exceptions name, in full, the
fork commit that first broke each block, counts say they ignore indentation,
and the mtg v2.3.0 line says every hunk is present as it stands in v2.3.0.
Free-Guy-IR added a commit to Free-Guy-IR/panel that referenced this pull request Nov 7, 2026
…k main 8cf768bfb6dd

The node_bridge_py ledger is re-checked against fork main 8cf768bfb6dd and upstream
main c5632b65a10a (tag v0.10.0). The PasarGuard#21 and PasarGuard#27 security rows name every hunk
the fork's later sync fixes changed, with today's counts; 0b3de16 gets its row;
779f9b9, 80f81ad, 9cac8cd and c5632b6 are owed to round 11 lane BRIDGE-PORT;
cited line numbers and the fork label follow fork main; the refs snapshot records
upstream main, v0.9.5 and v0.10.0.
Free-Guy-IR added a commit to Free-Guy-IR/panel that referenced this pull request Nov 7, 2026
… 2026-11-03-main-spec005-lanes, same 2026-11-20 date

Upstream node_bridge_py released v0.9.5 (9cac8cd) and v0.10.0 (c5632b6) and PyPI serves 0.10.0, so the 0.9.4 waiver is stale. The panel pins 0.9.2+singbox.3 at rev 9619f473923d, which has none of a01bdbb (PasarGuard#27), 779f9b9 (PasarGuard#26) or 80f81ad (PasarGuard#32) as an ancestor. The owed bump stays 80d855f in batch B-INFRA; the decision record now also lists [email protected] with its until unchanged. Main keeps or drops this commit.
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