Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tidy(mm): ModelSearch cleanup #5912

Merged
merged 5 commits into from Mar 10, 2024
Merged

Conversation

psychedelicious
Copy link
Collaborator

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Community Node Submission

Description

  • No need for it to by a pydantic model. Just a class now.
  • Remove ABC, it made it hard to understand what was going on as attributes were spread across the ABC and implementation. Also, there is no other implementation.
  • Add tests

QA Instructions, Screenshots, Recordings

You should have the same models imported at startup as on main (using a memory db).

Tests offer solid coverage, too.

Merge Plan

This PR can be merged when approved

Added/updated tests?

  • Yes
  • No : please replace this line with details on why tests
    have not been included

@github-actions github-actions bot added python PRs that change python files backend PRs that change backend files python-tests PRs that change python tests labels Mar 9, 2024
@github-actions github-actions bot added the services PRs that change app services label Mar 10, 2024
- No need for it to by a pydantic model. Just a class now.
- Remove ABC, it made it hard to understand what was going on as attributes were spread across the ABC and implementation. Also, there is no other implementation.
- Add tests
- `config` is unused
- `stats` is created on instantiation
- `logger` uses the app logger
- Use `set` instead of `Set`
- Methods accept only `Path`s
@psychedelicious psychedelicious enabled auto-merge (rebase) March 10, 2024 01:03
@psychedelicious psychedelicious merged commit c47dbf7 into main Mar 10, 2024
14 checks passed
@psychedelicious psychedelicious deleted the psyche/tidy/tidy-model-search branch March 10, 2024 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend PRs that change backend files python PRs that change python files python-tests PRs that change python tests services PRs that change app services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants