[hermes] bstein_home: python:S2208 #141
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SonarQube reports python:S2208 in
backend/atlas_portal/routes/access_requests.py. The build is green; this is a standing finding, not a failure.What is wrong
The wildcard import obscures which names access_request_state exposes through this facade. Those names must remain bound on the facade itself because register() passes that module as deps and callers may patch its attributes; simply passing the state module instead would change behavior.
Ariadne opened no pull request for it: no automated patch was possible for this finding.
Facts
backend/atlas_portal/routes/access_requests.py:8)Suggested fix (not applied)
Hermes could not open a pull request for this, so the change below was not written, validated, or pushed anywhere. It is a starting point for whoever picks this up, not a reviewed patch.
backend/atlas_portal/routes/access_requests.py— Replace the wildcard import with explicit imports of exactly the names it currently exports, preserving aliases and the existing register() implementation. The state module was not supplied, so its export names cannot safely be invented. The following maintainer helper prints the proposed complete file without writing it; run it from the repository root in the backend's configured Python environment, review the generated imports against access_request_state.all (or its public names when all is absent), then make the edit by hand. This preserves the facade's existing patch surface rathe... (truncated)
Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_453e4c49d31d4aae9e77f0bd94078817). Hermes has no write access to this repository; no files or infrastructure were changed.