feat(entrypoints): project the report to Neo4j, count what never resolved, detect odoo - #182
Merged
Conversation
…lved, detect odoo Three gaps from one Odoo run (#177): - :PyApplication now carries `entrypoint_frameworks` and `entrypoint_report_json`, always present, so a graph consumer can tell "no entrypoints" from "the pass found nothing". Additive catalog change. - `PyEntrypointReport.unresolved` had no writer and read `{}` on every run. It now counts, per written spelling, the decorators and base classes that neither Jedi nor the module's import table could name. - Decorator matching falls back to the module's import table when Jedi cannot resolve the decorator, the way base-class matching already did, so `from odoo import http` plus `@http.route` matches `odoo.http.route` with odoo not importable (every --no-venv run). `odoo` joins the shipped rules: `@http.route` methods and `http.Controller` subclasses. Closes #177
rahlk
force-pushed
the
fix/issue-177-entrypoints
branch
from
September 5, 2026 23:02
6c34120 to
f9e810d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #177. Three gaps from one Odoo run:
:PyApplicationcarriesentrypoint_frameworks(string[]) andentrypoint_report_json(the wholePyEntrypointReport), always present, so a graph consumer can tell "no entrypoints" from "the pass found nothing". Additive graph-catalog change;schema.neo4j.jsonregenerated.PyEntrypointReport.unresolvedhad no writer and read{}on every run. It now counts, per written spelling, the decorators and base classes that neither Jedi nor the module's import table could name.from odoo import httpplus@http.routematchesodoo.http.routewith odoo not importable, which is every--no-venvrun.odoojoins the shipped rules:@http.routemethods (route from the first positional, one or a list; methods frommethods=, defaultGET) andhttp.Controllersubclasses.Verified on a fixture under
--no-venv:Ctl.indexdetected asodoo.routewith route/x,Ctlasodoo.controller, report listsodoo.Gates:
pytest474 passed, 8 skipped.