Commit Graph

195 Commits

Author SHA1 Message Date
Eliot Berriot 707868d794
Can now fetch public key from actor url 2018-03-28 23:56:44 +02:00
Eliot Berriot 2f473d7570
Added requests-mock dependency and fixture 2018-03-28 23:56:44 +02:00
Eliot Berriot 5e901dc5a4
Fixed a bunch of failing tests 2018-03-28 23:54:08 +02:00
Eliot Berriot 85ce220f29 Merge branch 'federation-signing-requests' into 'develop'
Federation signing requests

See merge request funkwhale/funkwhale!106
2018-03-26 20:14:28 +00:00
Eliot Berriot 4612a8a560 Merge branch '121-upgrade-to-python36' into 'develop'
Resolve "Random issue on import"

Closes #121

See merge request funkwhale/funkwhale!113
2018-03-25 21:32:44 +00:00
Eliot Berriot 5e1dce5883
Fix #121: Upgraded to Python 3.6 to fix weird but harmless weakref error on django task 2018-03-25 23:30:46 +02:00
Eliot Berriot e1bdd14fff
Fix #140: Better error messages in case of missing environment variable 2018-03-25 23:05:46 +02:00
Eliot Berriot c2985b7dba Merge branch 'coverage' into 'develop'
Compute coverage on API tests

See merge request funkwhale/funkwhale!111
2018-03-25 20:50:30 +00:00
Eliot Berriot 82aa8c4e22
Compute coverage on API tests 2018-03-25 22:45:37 +02:00
Eliot Berriot 32e3d82738
Switched to psycopg2-binary to avoid warning 2018-03-25 22:42:14 +02:00
Eliot Berriot a87a2837db
Fixed failing tests 2018-03-25 22:34:30 +02:00
Eliot Berriot d310628cb5
refactored tests, no have __init__ everywhere 2018-03-25 22:27:38 +02:00
Eliot Berriot 18d8baae34
API Views/serializers/tests for activity (#141) 2018-03-25 17:24:08 +02:00
Eliot Berriot 1f2e14b20e
Use anonymous_user fixture in other tests 2018-03-25 17:18:44 +02:00
Eliot Berriot 122c39075a
Fixed privacy issue in get_privacy_query utils function 2018-03-25 17:18:22 +02:00
Eliot Berriot 2d4003c8c4
anonymoususer test fixture 2018-03-25 17:17:51 +02:00
Eliot Berriot fce5ee0e7f
Renamed listening end_date to creation_date 2018-03-25 17:17:33 +02:00
Eliot Berriot f36a9e2ac9 Merge branch '138-import-unicode' into 'develop'
Resolve "Importer chokes on files with bad unicode characters"

Closes #138 and #120

See merge request funkwhale/funkwhale!108
2018-03-25 13:46:26 +00:00
Eliot Berriot e99d757b57
Fix #120: Better error handling during file import 2018-03-25 15:44:48 +02:00
Eliot Berriot f1cf250e29
Fix #138: Better handling of utf-8 filenames during file import 2018-03-25 15:40:37 +02:00
Eliot Berriot 952407d173 Merge branch '139-restrict-usernames' into 'develop'
Resolve "Allow restricting allowed usernames"

Closes #139

See merge request funkwhale/funkwhale!107
2018-03-24 19:33:38 +00:00
Eliot Berriot 4b69d64db2
Fix #139: We now restrict some usernames from being used during signup 2018-03-24 20:31:36 +01:00
Eliot Berriot 4522f5997e
More test cases for request signing and added helpers to verify signature 2018-03-24 16:24:10 +01:00
Eliot Berriot aa7365b71f
Basic logic for signing/verifying requests 2018-03-24 15:20:15 +01:00
Eliot Berriot a890bc490b
Ensure we update all requirements when installing from pip/requirements.txt 2018-03-23 12:10:18 +01:00
Eliot Berriot b780bee874
Version bump and changelog 2018-03-21 21:05:03 +01:00
Eliot Berriot 529114c89c
Added missing fields in playlist serializer 2018-03-21 20:56:26 +01:00
Eliot Berriot 71d46e4361
Simplified playlist serializer and ensure update return same payload as detail 2018-03-21 19:03:57 +01:00
Eliot Berriot 6a9a34d244
Can now clear playlist 2018-03-21 12:19:07 +01:00
Eliot Berriot bf6fe44bed
More filters / ordering option on playlist API 2018-03-21 11:58:11 +01:00
Eliot Berriot 16f631af1a
Performance optimization on playlisttrack serialization 2018-03-20 22:44:28 +01:00
Eliot Berriot f8b15a3f48
Added API endpoint to insert multiple tracks into playlist 2018-03-20 19:56:42 +01:00
Eliot Berriot 1729c4f83e
250 is a saner default for playlist size 2018-03-20 19:55:36 +01:00
Eliot Berriot 497f81e5ab
Typo in returned api payload 2018-03-20 19:14:45 +01:00
Eliot Berriot 244ebd7ab1
Dropped hard constraint on track indexes and added more tests 2018-03-20 19:14:07 +01:00
Eliot Berriot f917c5d0c4
Playlist filterset 2018-03-20 15:34:35 +01:00
Eliot Berriot 08b28a7d98
Added playlist tracks count and modification date in API 2018-03-20 15:34:34 +01:00
Eliot Berriot 15300e255c
Removed pytest warning 2018-03-20 15:34:34 +01:00
Eliot Berriot e87e2654e8
Permissions and db state fixes with new index field 2018-03-20 15:34:34 +01:00
Eliot Berriot 257e67b5a6
New "index" field on playlist tracks, and .insert() metod to manage playlists 2018-03-20 15:34:34 +01:00
Eliot Berriot 8821a1bb43
Removed superfluous mptt requirement 2018-03-20 15:34:33 +01:00
Eliot Berriot 944135e752
Capped number of tracks in playlists 2018-03-20 15:34:33 +01:00
Eliot Berriot d8486beeb0
Can now list tracks from within playlist endpoint 2018-03-20 15:34:33 +01:00
Eliot Berriot 9a909798e7
Additional permissions checks on playlist views 2018-03-20 15:34:33 +01:00
Eliot Berriot 4f7fa09a78
Playlisttrack factory 2018-03-20 15:34:33 +01:00
Eliot Berriot d7adaf398f
Can now use nodb_factory fixtue in tests for faster tests 2018-03-20 15:34:33 +01:00
Eliot Berriot 367014f70e
Added owner permission to check user has the right to read/update object 2018-03-20 15:34:33 +01:00
Eliot Berriot 3e277aad4f
Added helper to filter queryset by privacy level 2018-03-20 15:34:32 +01:00
Eliot Berriot 2a3f43ecb1
Ensure privacy_level is settable/inherited properly 2018-03-20 15:34:32 +01:00
Eliot Berriot 859f8a0570
Replaced is_public flag by brand new privacy_level field on playlists 2018-03-20 15:34:32 +01:00