Separate graphql API from rest of the system (#2503)

* Move graphql generated files to api
* Refactor identify options
* Remove models.StashBoxes
* Move ScraperSource to scraper package
* Rename field strategy enums
* Rename identify.TaskOptions to Options
This commit is contained in:
WithoutPants
2022-04-25 15:55:05 +10:00
parent 9dcf03eb70
commit 7b5bd80515
109 changed files with 2684 additions and 791 deletions

View File

@@ -19,7 +19,7 @@ import (
type cleanJob struct {
txnManager models.TransactionManager
input models.CleanMetadataInput
input CleanMetadataInput
scanSubs *subscriptionManager
}
@@ -488,7 +488,7 @@ func (j *cleanJob) deleteImage(ctx context.Context, imageID int) {
}, nil)
}
func getStashFromPath(pathToCheck string) *models.StashConfig {
func getStashFromPath(pathToCheck string) *config.StashConfig {
for _, s := range config.GetInstance().GetStashPaths() {
if fsutil.IsPathInDir(s.Path, filepath.Dir(pathToCheck)) {
return s
@@ -497,7 +497,7 @@ func getStashFromPath(pathToCheck string) *models.StashConfig {
return nil
}
func getStashFromDirPath(pathToCheck string) *models.StashConfig {
func getStashFromDirPath(pathToCheck string) *config.StashConfig {
for _, s := range config.GetInstance().GetStashPaths() {
if fsutil.IsPathInDir(s.Path, pathToCheck) {
return s