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

fix(mm): only move model files if necessary #5911

Merged
merged 1 commit into from
Mar 9, 2024

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

The old logic to check if a model needed to be moved relied on the model path being a relative path. Paths are now absolute, causing this check to fail. We then assumed the paths were different and moved the model from its current location to, well, its current location.

Use more resilient method to check if a model should be moved.

QA Instructions, Screenshots, Recordings

  • Start the app on main with memory db, note that it moves all your models on startup
  • Try this PR - no extra moves.

Merge Plan

This PR can be merged when approved

The old logic to check if a model needed to be moved relied on the model path being a relative path. Paths are now absolute, causing this check to fail. We then assumed the paths were different and moved the model from its current location to, well, its current location.

Use more resilient method to check if a model should be moved.
@github-actions github-actions bot added python PRs that change python files services PRs that change app services labels Mar 9, 2024
@psychedelicious psychedelicious merged commit 67163c2 into main Mar 9, 2024
14 checks passed
@psychedelicious psychedelicious deleted the psyche/fix/extra-model-move branch March 9, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python PRs that change python files services PRs that change app services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants