Repository navigation
Conversation
Irozuku
marked this pull request as draft
November 25, 2026 21:53
4 of 6 tasks
Irozuku
marked this pull request as ready for review
November 27, 2026 14:12
Irozuku
force-pushed
the
refactor/dead-code
branch
from
November 27, 2026 16:48
8cfdf96 to
d789911
Compare
This branch has not been deployed
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.
Summary
Removes code that nothing in the application reaches, in the frontend and in the backend. No behaviour change is intended: every removed file, function or method was proven unreferenced before it was deleted.
How the dead code was found:
src. A file that is not bundled and is not imported, even as a type, by a bundled file was removed.DashAI/__main__.py,back/app.py,webview.py, the alembic scripts, the PyInstaller spec and hooks), including modules named in strings. Modules outside the graph were removed.vulturecandidates were kept only when the name appears exactly once in the whole repository, tests and frontend included, and the definition has no decorator.Lazy imports were taken into account:
TYPE_CHECKING, count as edges of the graph. Everyimportstatement of every file was walked, not only the ones at module level."DashAI.back.x.y") count as references, in Python files and inpyproject.toml,dashai.specand the PyInstaller hooks.model_package/load.pyimports the module named inside a saved model package;models/lazy_llm.pyis a__getattr__proxy over a loaded model, not a module loader; the ones inunstructured_document_dataloader.pyandhyperopt_optimizer.pyload third party modules. None scans a directory or builds DashAI module names from short strings.Type of Change
Changes (by file)
Frontend, 145 files under
DashAI/front/src:components/explorations/and its API client and types: the legacy explorations UI, replaced by the notebook explorers.pages/results/andcomponents/results/: the legacy results page.components/datasets/: dataset modals and converter tables no page opens.components/models/,components/predictions/,components/explainers/: session, prediction and explainer dialogs no page opens.components/configurableObject/, part ofcomponents/shared/: the form renderer thatFormSchema*replaced.dataloader,task,values,oldEndpoints), types, hooks, helpers, example data and the schema fixtures the removed jest tests used.styles/fonts/Quicksand-*: font files no stylesheet references.Backend:
api/api_v1/schemas/: six request schema modules and two schema classes no endpoint uses.converters/scikit_learn/cca.py,sklearn_like_converter.py,dataloaders/classes/audio_dataloader.py,tabular_dataloader.py,models/dummy_text_classification_model.py: components that were never registered.models/RAG/retrievers/dense/_hf_language_utils.py,_hf_metadata_utils.py: helpers with no caller.core/enums/squema_types.py,PipelineRunStatus, and the empty packagescore/exceptionsandmodels/remote_models.types/utils.py,types/type_validation.py,tasks/utils.pyanddataloaders/classes/dashai_dataset_utils.py.services/RAG/retriever_db_service.py,services/RAG/embedding_storage_service.py,models/RAG/RAG_models_factory.pyandmodels/RAG/prompts/base_prompt.py.Repository:
DashAI/back.rarandDashAI/front/src.rar: old source archives.Testing (optional)
yarn buildinDashAI/front. The set of bundled modules is identical before and after (657).pytest tests/back/types tests/back/tasks tests/back/dataloaders tests/back/RAG tests/back/services tests/back/api/test_components_api.py: 2205 passed.Notes (optional)
metrics/forecasting/mase.py: not registered, but left to be added later.credentials/github_credential.pyandmodels/pymc/bart_regression.py: not registered, but both have tests.components/datasets/SelectDataloaderStep.jsxand the two selectors it imports: unreachable, kept as legacy.__fixtures__andutils/ruleConformance.fixture.json: not bundled, but backend tests read them.