[hermes] bstein_home: python:S2208 #710
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
Line 8 uses a wildcard import (
from .access_request_state import *) to re-export that module's names onto this facade, which is what python:S2208 flags: it hides which names the facade actually provides and which names the registrars resolve viadeps.<name>. The fix is to import the same names explicitly so the module's public surface is visible, while keeping every name bound on this module sodeps = sys.modules[__name__]and existing test monkeypatching keep working unchanged.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 star import with an explicit import of every public name that access_request_state currently exports. The list must be taken from access_request_state.py itself (its all if defined, otherwise every top-level name not starting with an underscore); cross-check it against thedeps.<attribute>lookups in access_request_submission, access_request_status, and access_request_onboarding so nothing the registrars or tests rely on is dropped. Because the names are re-exported rather than used directly in this file, keep a# noqa: F401(or use theimport x as xre-export convention)... (truncated)
Links
/api/admin/audit/events, event typeshermes_autotriage_incidentandhermes_autotriage_diagnosis.Filed automatically by Ariadne from a Hermes Agent diagnosis (run run_8981fcbe243c42de94653f9c61aae4c3). Hermes has no write access to this repository; no files or infrastructure were changed.