cvium
0b871505a6
Remove stray datamember
3 years ago
cvium
69df004b9f
Migrate network configuration safely
3 years ago
Cody Robibero
3de86ffdb4
Fix nullability on DisplayPreferencesDto
...
Remove duplicate, fix namespace
3 years ago
KonH
6cbfdea4c0
Fix warning: Type cast is redundant ( #2149 )
3 years ago
Bond_009
65665de660
Fix user DB migration
3 years ago
Patrick Barron
45f478f63e
Merge branch 'master' into authenticationdb-efcore
...
# Conflicts:
# Jellyfin.Server.Implementations/Security/AuthorizationContext.cs
# MediaBrowser.Controller/Library/IUserManager.cs
# MediaBrowser.Controller/Security/IAuthenticationRepository.cs
# MediaBrowser.Controller/Session/ISessionManager.cs
4 years ago
Bond_009
f1f72c3060
Minor improvements
4 years ago
Patrick Barron
dbfd30ec4c
Migrate DeviceOptions
4 years ago
Patrick Barron
ae878fa051
Merge branch 'master' into authenticationdb-efcore
...
# Conflicts:
# Emby.Server.Implementations/QuickConnect/QuickConnectManager.cs
# Emby.Server.Implementations/Session/SessionManager.cs
# Jellyfin.Server.Implementations/Security/AuthorizationContext.cs
4 years ago
Patrick Barron
f96722fa74
Fix migration
4 years ago
Bond_009
6f8ccab788
Move non-jellyfin extensions to separate project
4 years ago
Patrick Barron
be88efce3c
Merge branch 'master' into authenticationdb-efcore
...
# Conflicts:
# Emby.Server.Implementations/Devices/DeviceManager.cs
# Emby.Server.Implementations/HttpServer/Security/SessionContext.cs
# Emby.Server.Implementations/Security/AuthenticationRepository.cs
# Emby.Server.Implementations/Session/SessionManager.cs
# Jellyfin.Server.Implementations/Security/AuthorizationContext.cs
# MediaBrowser.Controller/Library/IUserManager.cs
# MediaBrowser.Controller/Net/ISessionContext.cs
4 years ago
Patrick Barron
336ba2879f
Re-add support for API keys
4 years ago
Patrick Barron
3264575047
Add data migration
4 years ago
Bond_009
7e8428e588
Enable nullable reference types for Emby.Server.Implementations
4 years ago
Bond-009
eeb5d4bd1e
Merge pull request #5842 from BaronGreenback/optimization
...
Code Clean up: Group Methods
4 years ago
Bond-009
233900401e
Merge pull request #5873 from cvium/fix-displaypref-migration
4 years ago
cvium
4d7c1fbdca
use int.Parse
4 years ago
cvium
cbb855e65f
Check for empty string when migrating displaypreferences
4 years ago
cvium
586e1fc58a
use IF NOT EXISTS in migration
4 years ago
BaronGreenback
bc1cc2d04a
Remove unused using directives
4 years ago
BaronGreenback
bb6fddde9a
Group Methods
4 years ago
Bond_009
a4ffc7a813
Fix random failing of tests
...
Fully initialize the configuration manager at the init stage
```
Failed Jellyfin.Server.Integration.Tests.Controllers.ActivityLogControllerTests.ActivityLog_GetEntries_Ok [2 s]
Error Message:
MediaBrowser.Common.Extensions.ResourceNotFoundException : Configuration with key metadata not found.
Stack Trace:
at Emby.Server.Implementations.AppBase.BaseConfigurationManager.<>c__DisplayClass43_0.<GetConfiguration>b__0(String k) in D:\a\1\s\Emby.Server.Implementations\AppBase\BaseConfigurationManager.cs:line 309
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Emby.Server.Implementations.AppBase.BaseConfigurationManager.GetConfiguration(String key) in D:\a\1\s\Emby.Server.Implementations\AppBase\BaseConfigurationManager.cs:line 300
at MediaBrowser.Common.Configuration.ConfigurationManagerExtensions.GetConfiguration[T](IConfigurationManager manager, String key) in D:\a\1\s\MediaBrowser.Common\Configuration\IConfigurationManager.cs:line 88
at MediaBrowser.Controller.Library.MetadataConfigurationExtensions.GetMetadataConfiguration(IConfigurationManager config) in D:\a\1\s\MediaBrowser.Controller\Library\MetadataConfigurationStore.cs:line 28
at Emby.Server.Implementations.Library.ResolverHelper.SetDateCreated(BaseItem item, IFileSystem fileSystem, FileSystemMetadata info) in D:\a\1\s\Emby.Server.Implementations\Library\ResolverHelper.cs:line 159
at Emby.Server.Implementations.Library.ResolverHelper.EnsureDates(IFileSystem fileSystem, BaseItem item, ItemResolveArgs args) in D:\a\1\s\Emby.Server.Implementations\Library\ResolverHelper.cs:line 153
at Emby.Server.Implementations.Library.ResolverHelper.SetInitialItemValues(BaseItem item, ItemResolveArgs args, IFileSystem fileSystem, ILibraryManager libraryManager) in D:\a\1\s\Emby.Server.Implementations\Library\ResolverHelper.cs:line 81
at Emby.Server.Implementations.Library.LibraryManager.ResolveItem(ItemResolveArgs args, IItemResolver[] resolvers) in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 480
at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, IDirectoryService directoryService, IItemResolver[] resolvers, Folder parent, String collectionType, LibraryOptions libraryOptions) in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 618
at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, Folder parent) in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 536
at Emby.Server.Implementations.Library.LibraryManager.CreateRootFolder() in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 732
at Emby.Server.Implementations.Library.LibraryManager.get_RootFolder() in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 180
at Emby.Server.Implementations.IO.LibraryMonitor.Start() in D:\a\1\s\Emby.Server.Implementations\IO\LibraryMonitor.cs:line 135
at Emby.Server.Implementations.IO.LibraryMonitorStartup.RunAsync() in D:\a\1\s\Emby.Server.Implementations\IO\LibraryMonitorStartup.cs:line 26
at Emby.Server.Implementations.ApplicationHost.StartEntryPoints(IEnumerable`1 entryPoints, Boolean isBeforeStartup)+MoveNext() in D:\a\1\s\Emby.Server.Implementations\ApplicationHost.cs:line 541
at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks)
at Emby.Server.Implementations.ApplicationHost.RunStartupTasksAsync(CancellationToken cancellationToken) in D:\a\1\s\Emby.Server.Implementations\ApplicationHost.cs:line 525
at Jellyfin.Server.Integration.Tests.JellyfinApplicationFactory.CreateServer(IWebHostBuilder builder) in D:\a\1\s\tests\Jellyfin.Server.Integration.Tests\JellyfinApplicationFactory.cs:line 101
at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(Uri baseAddress, DelegatingHandler[] handlers)
at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient(WebApplicationFactoryClientOptions options)
at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient()
at Jellyfin.Server.Integration.Tests.Controllers.ActivityLogControllerTests.ActivityLog_GetEntries_Ok() in D:\a\1\s\tests\Jellyfin.Server.Integration.Tests\Controllers\ActivityLogControllerTests.cs:line 21
--- End of stack trace from previous location ---
```
4 years ago
Patrick Barron
e5380c653b
Merge branch 'master' into ef-cleanup
...
# Conflicts:
# Jellyfin.Data/Entities/Libraries/MediaFileStream.cs
# Jellyfin.Data/Jellyfin.Data.csproj
4 years ago
Bond_009
a8ed753f6c
FxCop -> Net Analyzers (part 2)
4 years ago
Patrick Barron
f638ee6b09
Enable nullable for Jellyfin.Data and remove unnecessary attributes
4 years ago
Bond_009
b1fe28d0a6
Use GetEncodingOptions where possible
4 years ago
Bond_009
1ea2b200c0
JsonSerializer deserialize from bytes where possible
...
This is faster and uses way less memory
```
BenchmarkDotNet=v0.12.1, OS=fedora 32
Intel Core i7-6700HQ CPU 2.60GHz (Skylake), 1 CPU, 8 logical and 4 physical cores
.NET Core SDK=5.0.100
[Host] : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT
DefaultJob : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT
| Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|------- |---------:|--------:|--------:|--------:|------:|------:|----------:|
| Bytes | 158.4 us | 2.56 us | 2.14 us | 16.8457 | - | - | 52.08 KB |
| String | 172.8 us | 0.78 us | 0.70 us | 41.5039 | - | - | 127.82 KB |
| Custom | 155.5 us | 2.95 us | 2.76 us | 10.0098 | - | - | 31.27 KB |
```
4 years ago
crobibero
3a6501abe0
Fix another key collision in MigrateDisplayPreferencesDatabase
4 years ago
Claus Vium
21d2e9ff0c
Merge pull request #4771 from crobibero/typed-get-preference
...
Use typed UserManager GetPreference
4 years ago
crobibero
b670937c3d
Use typed UserManager GetPreference
4 years ago
crobibero
eefe87f537
Remove CustomItemDisplayPreferences unique key collision
4 years ago
Joshua M. Boniface
b96d4ef0e8
Merge pull request #4653 from crobibero/favorite-persons
...
Optimize FavoritePersons query
4 years ago
Joshua M. Boniface
4e6584c345
Merge pull request #4652 from crobibero/display-preferences
...
Add support for custom item display preferences
4 years ago
crobibero
76250a8895
Use md5 Guid for legacy compat
4 years ago
crobibero
3db6ae91f6
Add ItemId to all display preferences
4 years ago
crobibero
60b7e49a7f
Suggestions from code review
4 years ago
crobibero
e765184afa
Fix existing DisplayPreferences migration
4 years ago
crobibero
589625a349
Don't die if folder doesn't have id
4 years ago
Greenback
14fc7e6408
revert changes.
4 years ago
Greenback
18855a7884
Initialial upload
4 years ago
Cody Robibero
1d059bc76b
Update Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs
4 years ago
crobibero
7375d70396
Skip migration if user doesn't exist
4 years ago
Fernando Fernández
27a1337cf3
Remove underscore
...
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
4 years ago
Fernando Fernández
d6a04fd406
Remove setting from existing libraries with a migration
4 years ago
crobibero
ec8967b8e6
Fix partial library and channel access
5 years ago
crobibero
de4cfa2234
Apply suggestions from code review
5 years ago
crobibero
78ae86b86a
Apply suggestions from code review
5 years ago
crobibero
5f64ab02a0
bump System.Text.Json
5 years ago
Patrick Barron
ad32800504
Switch to unstable chromecast version.
5 years ago
Patrick Barron
a6bc4c688d
Add using statement to DisplayPreferences migration
5 years ago
Patrick Barron
c094916df0
Migrate default library display preferences.
5 years ago
Patrick Barron
4b8ab1a803
Set default value of SortBy during migrations.
5 years ago
Patrick Barron
754837f16f
Add tv home.
5 years ago
Patrick Barron
68a185fd02
Serialize/deserialize new entities properly.
5 years ago
Patrick Barron
9fcf23bd21
Migrate EnableNextVideoInfoOverlay
5 years ago
Patrick Barron
0d13d830bb
Migrate skip lengths.
5 years ago
Patrick Barron
629ffe395f
Fixed build errors.
5 years ago
Patrick Barron
3d69cea1c9
Merge branch 'master' into displaypreferences-efcore
5 years ago
Patrick Barron
9f323e5579
Add missing chromecast version serialization/deserialization.
5 years ago
crobibero
6c076b2162
Try adding plugin repository again
5 years ago
crobibero
9343e73b26
Allow migration to optionally run on fresh install
5 years ago
Patrick Barron
ab396225ea
Migrate Display Preferences to EF Core
5 years ago
dkanada
3d65cbdf07
apply suggestions from code review
...
Co-authored-by: Vasily <JustAMan@users.noreply.github.com>
5 years ago
dkanada
e77f6194f2
add missing comma in array
5 years ago
dkanada
f5d82441a4
Merge branch 'master' into custom-repos
5 years ago
Patrick Barron
42b4f0aa2e
Merge branch 'master' into userdb-efcore
...
# Conflicts:
# Emby.Server.Implementations/Library/UserManager.cs
# Jellyfin.Data/Jellyfin.Data.csproj
5 years ago
dkanada
403cd3205f
Merge pull request #3254 from crobibero/ilogger
...
Use typed logger where possible
5 years ago
Patrick Barron
7a115024aa
Merge branch 'master' into userdb-efcore
...
# Conflicts:
# MediaBrowser.Controller/Library/ILibraryManager.cs
# MediaBrowser.Providers/Users/UserMetadataService.cs
5 years ago
dkanada
5cdf951643
Merge pull request #3222 from barronpm/activitylog-migration-fix
...
Fix Activity Log Migrations for Very Old Databases
5 years ago
dkanada
8ac2f1bb8b
simplify the custom repository feature for now
5 years ago
dkanada
d6184dbadd
remove unnecessary property for repository object
5 years ago
crobibero
44957c5a9a
Use typed logger where possible
5 years ago
crobibero
340624c54b
Move default repo addition to migration
5 years ago
Patrick Barron
06f9cde22f
Merge branch 'master' into userdb-efcore
...
# Conflicts:
# Emby.Server.Implementations/EntryPoints/ServerEventNotifier.cs
# Emby.Server.Implementations/Library/UserManager.cs
# Emby.Server.Implementations/Sorting/IsFavoriteOrLikeComparer.cs
# Emby.Server.Implementations/Sorting/IsPlayedComparer.cs
# Emby.Server.Implementations/Sorting/IsUnplayedComparer.cs
# Emby.Server.Implementations/TV/TVSeriesManager.cs
# Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs
5 years ago
Patrick Barron
ef7bbb3b84
Use data binding instead of raw SQL
5 years ago
Patrick Barron
b0281b79fd
Fix a bug where very old Emby databases didn't use proper Guid's
5 years ago
Bond_009
4748105dce
Enable TreatWarningsAsErrors for Jellyfin.Server.Implementations in Release mode
5 years ago
Patrick Barron
8ca78f33e9
Fix bug when migrating user db with users that have never logged in.
5 years ago
Patrick Barron
fefb282137
Fixed issue when LastLoginDate or LastActivityDate were null
5 years ago
Patrick Barron
46a0a2a601
Update migrations and fix a few bugs
5 years ago
Patrick Barron
e052128c52
Cleanup and fix more bugs
5 years ago
Patrick Barron
e8173df9dc
Cleanup
5 years ago
Patrick Barron
7d9d54d2ec
Fix profile images.
5 years ago
Patrick Barron
1d1a145ad4
Fix issues and add profile image support
5 years ago
Patrick Barron
e7b297c67b
Add some missing properties
5 years ago
Patrick Barron
3eeb6576d8
Migrate User DB to EF Core
5 years ago
Patrick Barron
aca7e221d8
Merge branch 'master' into userdb-efcore
...
# Conflicts:
# Emby.Server.Implementations/Activity/ActivityLogEntryPoint.cs
# Emby.Server.Implementations/ApplicationHost.cs
# Emby.Server.Implementations/Devices/DeviceManager.cs
# Jellyfin.Server/Jellyfin.Server.csproj
# Jellyfin.Server/Migrations/MigrationRunner.cs
# MediaBrowser.Controller/Devices/IDeviceManager.cs
5 years ago
Mark Monteiro
757643e326
Merge remote-tracking branch 'upstream/master' into no-more-doppelgangers
5 years ago
Mark Monteiro
6e68702799
Do not run DELETE command if no extras are detected
...
Also log a message if no extras were detected
Also log the path used for the database backup
Also add some comments to explain the migration
5 years ago
Vasily
43dc604e87
Fixed compilation, added backing db before removing extras
5 years ago
Patrick Barron
79dee27299
Fixed indentation
5 years ago
Vasily
034fe97eeb
Apply suggestions from code review
...
Co-authored-by: Mark Monteiro <marknr.monteiro@protonmail.com>
5 years ago
Patrick Barron
a7c2e524a9
Apply more review suggestions
5 years ago
Patrick Barron
a5dee36808
Apply more review suggestions
5 years ago
Vasily
7c57134535
Implement a cleanup migration
5 years ago
Patrick Barron
9925742918
Implement more review suggestions
5 years ago
Patrick Barron
511d20a100
Apply review suggestions
5 years ago
Patrick Barron
b7621d762c
2nd half of changes
5 years ago
Patrick Barron
c1360a1dc3
Merge branch 'master' into userdb-efcore
...
# Conflicts:
# Emby.Server.Implementations/Data/SqliteUserDataRepository.cs
# Emby.Server.Implementations/Library/UserManager.cs
# Jellyfin.Data/Entities/User.cs
# Jellyfin.Data/ISavingChanges.cs
# Jellyfin.Server.Implementations/Jellyfin.Server.Implementations.csproj
# Jellyfin.Server.Implementations/JellyfinDb.cs
# Jellyfin.Server/Migrations/MigrationRunner.cs
# MediaBrowser.Model/Notifications/NotificationOptions.cs
# MediaBrowser.sln
5 years ago
Patrick Barron
9ad839c776
Initial migration code
5 years ago
Patrick Barron
bac4bf96a0
Fix build errors
5 years ago
Patrick Barron
6379391f87
Merge branch 'master' into activitydb-efcore
5 years ago
Patrick Barron
032de931b1
Migrate activity db to EF Core
5 years ago
Mark Monteiro
1666f3ca14
Use dependency injection to construct migration routines
5 years ago
Bond_009
e9d1eabd53
Remove unused usings
5 years ago
Mark Monteiro
9e89cbbc3a
Store migration names alongside Ids in configuration in order to assist with development/debugging
5 years ago
Mark Monteiro
72bf920291
Use a Guid to uniquely identify migrations instead of a string name
...
Also use a list instead of an array to store executed migrations in the configuration class
5 years ago
Mark Monteiro
8dbb1c9257
Use logging.json instead of logging.user.json for override settings
5 years ago
Mark Monteiro
2f0b4cc24c
Clean up migration logging messages
5 years ago
Mark Monteiro
a0fdceb4bc
Throw exception on migration failure to halt application
...
Also save migration configuration after each migration instead of at the end in case an exception is thrown part way through the list
5 years ago
Joshua M. Boniface
ae9948ce04
Merge branch 'master' into logging-migration
5 years ago
Mark Monteiro
1295f6c79b
Documentation and log message cleanup
5 years ago
Mark Monteiro
7ecb16a46e
do not ignore exceptions during migration execution
5 years ago
Mark Monteiro
4c2b543b30
Rename IUpdater to IMigrationRoutine
5 years ago
Mark Monteiro
1a9908d094
Add migration to create "logging.user.json"
5 years ago
Vasily
5a0f1fe848
Implement review suggestion
5 years ago
Vasily
098d3538e3
Disable logging.json migration as it is not ready yet
5 years ago
Vasily
d4564d8e29
More logging, mark all migrations as applied if setup wizard is not complete
5 years ago
Vasily
216e425cc5
Fix comment
5 years ago
Vasily
55b429e5e8
Moved migration routines to their own directory
5 years ago
Vasily
ccafebca68
Extract "migrations" config name to a proper constant
5 years ago
Vasily
ecaa7f8014
Improve migration logic
5 years ago
Vasily
66e11879ef
Shuffle migrations in a more manageable structure
5 years ago