Update RescrapeButton.vue/.gitpod.yml/.gitpod.dockerfile #1802
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.
RescrapeButton.vue
Updated the Rescrape Scene function to work with scenes that have scrape_id and belong to a configured scraper. By toggling it's needs_update and running that scraper.
It can be useful in case of single scenes without images.
I've had to add a small delay (200ms) as it was not triggering the forceUpdate when making the API call, even when checking if this.item.needs_update was true.
.gitpod.yml/.gitpod.dockerfile
The repo github.com/cosmtrek/air doesn't exist anymore. When running Gitpod, it suggests using github.com/air-verse/air instead.
Edit
Has Image Filter
I added a "Has Image" filter at model_scene.go file. It was present in pkg/api/scenes.go but absent from pkg/models/model_scene.go
PS: I'm sorry that the PR got merged, I'm not versed on git, it's my second try to submit more than one PR in a single version, and I failed both times in submitting two separate PRs. But I think it's easier to submit the PRs than just open an issue with what's going on.