quintodrome/core
Kendall Garner fa85e2a781
Use userId in player, other fixes (#3182)
* [bugfix] player: use userId, other fixes

This PR primarily resolves #1928 by switching the foreign key of `player` from `user.user_name` to `user.id`.
There are also a few other fixes/changes:

- For some bizarre reason, `ip_address` is never returned from `read`/`get`. Change the field to `ip`, which works. Somehow
- Update `players_test.go` mock to also check for user agent, replicating the actual code
- Update `player_repository.go` `isPermitted` to check user id. I don't know how this worked before...
- tests!
- a few places referred to `typ`, when it is really `userAgent`. Change the field names

* baseRequest -> selectPlayer

* remove comment

* update migration, make all of persistence foreign key enabled

* maybe don't forget to save the file first
2024-08-03 13:37:21 -04:00
..
agents Fix tests expectations 2024-06-05 19:54:25 -04:00
artwork Change resized image cache key 2024-06-08 13:37:30 -04:00
auth Fix possible authentication bypass 2023-12-13 19:32:05 -05:00
ffmpeg Show taglib and ffmpeg versions in the log 2024-02-18 12:52:06 -05:00
playback fix bug in jukebox: property unavailable (#3024) 2024-05-15 09:48:09 -04:00
scrobbler Use userId in player, other fixes (#3182) 2024-08-03 13:37:21 -04:00
archiver.go Add log.IsGreaterOrEqualTo, that take into consideration path-scoped log levels 2023-12-25 16:35:16 -05:00
archiver_test.go Add support for timeOffset in /stream endpoint 2023-12-02 13:10:36 -05:00
common.go Move project to Navidrome GitHub organization 2021-02-06 21:46:35 -05:00
core_suite_test.go Rename log.LevelCritical to log.LevelFatal 2022-12-21 14:53:36 -05:00
external_metadata.go Fix race condition in external metadata retrieval 2024-06-06 21:01:35 -04:00
media_streamer.go Add support for timeOffset in /stream endpoint 2023-12-02 13:10:36 -05:00
media_streamer_Internal_test.go Allow configuring cache folder (#2357) 2023-06-02 17:14:11 -04:00
media_streamer_test.go Add support for timeOffset in /stream endpoint 2023-12-02 13:10:36 -05:00
metrics.go Base SQL metrics in MetricsWorker (#2002) 2023-01-24 19:26:07 -05:00
players.go Use userId in player, other fixes (#3182) 2024-08-03 13:37:21 -04:00
players_test.go Use userId in player, other fixes (#3182) 2024-08-03 13:37:21 -04:00
playlists.go Do not panic if when updatePlaylist is called with a non-existent ID. 2024-05-11 15:37:50 -04:00
playlists_test.go Allow comments in the NSP file. 2024-04-20 12:50:45 -04:00
share.go Fix null values in DB (#2840) 2024-02-07 20:45:08 -05:00
share_test.go Add option to allow share to be downloaded 2023-03-10 23:33:29 -05:00
wire_providers.go Make dependency injection more consistent 2024-05-08 22:21:38 -04:00