Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / function

_filters

modules.code.router._filters

PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.

PHAROS at 975a38dMIT license

Around this symbol

Search all symbols

Loading

Calls (2)
SymbolFileResolved by
resolve_repositoriescontext.pythrough an import
Filtersretrieval.pythrough an import
Called by (2)
SymbolFileResolved by
lookup_symbolrouter.pysame file
search_coderouter.pysame file
Inside (1)
SymbolFileResolved by
routerrouter.pysame file
modules.code.router._filtersbackend/app/modules/code/router.py, lines 207–217Open source
def _filters(db: Session, repository: str | None, languages, kinds, path_prefix) -> Filters:    try:        repos = resolve_repositories(db, repository)    except RepositoryNotFound as exc:        raise HTTPException(status_code=404, detail={"error": "repository_not_found", "detail": str(exc)}) from exc    return Filters(        repository_ids=[r.id for r in repos] or None,        languages=languages,        kinds=kinds,        path_prefix=path_prefix,    )

What the index recorded

Signature
def _filters(db: Session, repository: str | None, languages, kinds, path_prefix) -> Filters:
File
backend/app/modules/code/router.py
Lines
207–217
Parser
python-ast
Git blob
d914024790aaafe7234adda557677b76e4ad73d5
Call sites
4 named, 2 resolved, 2 left unlinked

Read it on GitHub at this commit