Robert Dailey
aebdb257d0
build: Upgrade FluentValidation and JetBrains.Annotations
1 year ago
Robert Dailey
7d757c0d5f
fix: Better error messages for non-existent config files
1 year ago
Robert Dailey
ea09ddfb00
fix: Markup issue when printing exception message
...
Just remove the special formatting for command runtime exception
messages.
Fixes #192
1 year ago
Robert Dailey
abcf4f7d8f
feat: api_key and base_url are now optional
...
These can be implicitly set via secrets that follow a naming convention.
1 year ago
Robert Dailey
9d085e33c2
refactor: Fix warning about unused getter
1 year ago
Robert Dailey
e47a335bb6
build: Upgrade multiple nuget packages
1 year ago
Robert Dailey
7c5da06e57
refactor: Remove instance name from cache storage path
...
This step is necessary to support merging of instance sections based on
a shared URL.
1 year ago
Robert Dailey
241eb261e9
test: Verify CF in cache but not in service
1 year ago
Robert Dailey
efd1863efd
refactor: Improve request/response body logging
1 year ago
Robert Dailey
9bdb5f364c
refactor: Improve logging for caching logic
1 year ago
Robert Dailey
67d604d8a0
refactor: Log format ID in logs
1 year ago
Robert Dailey
5a3b850f11
style: Code cleanup on CS files
1 year ago
Robert Dailey
c1b87f4b8b
fix: NRE due to null RootConfigYaml
1 year ago
Robert Dailey
58927728f8
fix: Clone/update config repo in config create command
1 year ago
Robert Dailey
7733b5e569
fix: Update default clone URL for trash guides repo
...
New URL: https://github.com/TRaSH-Guides/Guides.git
1 year ago
Robert Dailey
010c788e14
feat: Add migration step to delete old repo directory
1 year ago
Robert Dailey
406e0590a4
fix: Refactor and re-introduce capability enforcement
...
Fixes #189
1 year ago
Robert Dailey
f020459023
fix: Do not exit application when instance sync fails
1 year ago
Robert Dailey
0eb084b146
style: Code cleanup
1 year ago
Robert Dailey
f05ff6e04b
fix: Service cache now remembers CFs no longer in config
...
With `delete_old_custom_formats: false` and
`replace_existing_custom_formats: false`, if you comment out a CF in
your configuration, sync, uncomment it and sync again, you get an error
about duplicate CFs. This is because, once a CF is removed from the
configuration, it's also removed from the cache.
This change makes the cache more flexible. As long as a CF (created by
Recyclarr) exists either in the config OR in the service itself, it will
be kept in the cache. This means that temporarily disabling CFs in
configuration won't cause ownership issues.
1 year ago
Robert Dailey
f06a2c829a
refactor: Move Cache code files to Cli project
1 year ago
Robert Dailey
715d777f9e
refactor: replace morelinq with superlinq
1 year ago
Robert Dailey
2a28130599
fix: Do not unconditionally show deleted custom formats
...
When `delete_old_custom_formats` is `false`, we should not show deleted
custom formats.
1 year ago
Robert Dailey
d799da385e
fix: Regression caused reset_unmatched_scores: false to not be respected
1 year ago
Robert Dailey
fd8a2f570b
test: Add AutoFixture to global usings in Cli test project
1 year ago
Robert Dailey
11f3ab005b
feat: Continue running if git fetch fails
...
As long as there's a valid clone available and no other git commands
fail, we allow `git fetch` to fail and proceed processing commands. Even
if internet connectivity is down, that shouldn't necessarily prevent
sync from functioning.
The primary motivation for this change is that we expect the Trash
Guides repo to be relocated soon and I do not want that to cause the
program to stop working between the change and when I can update the
URL.
1 year ago
Robert Dailey
596fc72dfe
build: Remove debug option from sync run configuration
1 year ago
Robert Dailey
ee377e55fa
feat: Create configs from templates
1 year ago
Robert Dailey
ca941ac31d
refactor: Rename ConfigListCategory enum
1 year ago
Robert Dailey
d5c4a5d8ec
test: Remove unused FileSystem extension methods
1 year ago
Robert Dailey
e61a23e649
build: Upgrade all nuget packages
1 year ago
Robert Dailey
fe7773ea07
fix: Fix false-positive duplicate score warnings
...
When doing a `sync --preview`, new custom formats are not created and
thus they never get an ID greater than `0`. Because of this, a
dictionary that tracks duplicates based on ID would result in warnings
about duplicate scores that made no sense.
We now index by Trash ID instead of Format ID, which is more accurate.
1 year ago
Robert Dailey
018d5f0157
refactor: Add back ToString() overrides
...
This fixes a warning related to ToString() returning null.
1 year ago
Robert Dailey
ebdea5eabf
build: Add debug option to sync preview run config
1 year ago
Robert Dailey
6b3bf893b5
build: Use debug option with sync command
1 year ago
Robert Dailey
be7dac7e62
build: Upgrade all nuget packages
1 year ago
Robert Dailey
a8aaca42cc
feat: Support `*.yaml` extension
1 year ago
Robert Dailey
4f0e365dd5
test: Remove a few Refresh() calls no longer needed
...
Some Refresh calls happen automatically now for IFileInfo, etc. in
MockFileSystem.
2 years ago
Robert Dailey
2e1c7bff7d
build: Upgrade all nuget packages
2 years ago
Robert Dailey
9dbd0e56fa
build: Upgrade all nuget packages
2 years ago
Robert Dailey
6d90e8f293
chore: Remove attached folder from Rider project
2 years ago
Robert Dailey
deb6696622
refactor: Reorganize processor classes into subdirs
2 years ago
Robert Dailey
cdf4b27686
fix: Explicitly add System.Private.Uri package to resolve security issue
...
Resolves:
- CVE-2019-0981
- CVE-2019-0980
- CVE-2019-0657
2 years ago
Robert Dailey
cab505591f
chore: Remove unused code
2 years ago
Robert Dailey
8d2f582b38
refactor: Move all test projects under src/tests
...
This allows easier specification of test-specific msbuild properties
2 years ago
Robert Dailey
3823b0ec43
feat: Move config templates to new repository
2 years ago
Robert Dailey
7edcd77f98
fix: Use correct link in settings.yml template
2 years ago
Robert Dailey
3127ab3bb8
refactor: Delete auto-created temp dir in MockFileSystem
...
Needed because of this issue:
https://github.com/TestableIO/System.IO.Abstractions/issues/983
2 years ago
Robert Dailey
2c7f220a71
refactor: Add LeafDirectories() extension method for MockFileSystem
2 years ago
Robert Dailey
f1f9887042
refactor: Introduce config template repo settings
2 years ago