Skip to content

Commit df8c4b7

Browse files
authored
Merge branch 'main' into project-proposal-for-dark-mode
2 parents 36f8492 + e9e91b0 commit df8c4b7

File tree

8 files changed

+734
-194
lines changed

8 files changed

+734
-194
lines changed

api/api/admin/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
from django.contrib import admin
2+
from django.contrib.auth.admin import GroupAdmin, UserAdmin
3+
from django.contrib.auth.models import Group, User
24

35
from api.admin.site import openverse_admin
46
from api.models import PENDING, Audio, AudioReport, ContentProvider, Image, ImageReport
@@ -9,6 +11,11 @@
911
admin.sites.site = openverse_admin
1012

1113

14+
# Show User and Group views in the Admin view
15+
admin.site.register(User, UserAdmin)
16+
admin.site.register(Group, GroupAdmin)
17+
18+
1219
@admin.register(Image)
1320
class ImageAdmin(admin.ModelAdmin):
1421
search_fields = ("identifier",)

catalog/dags/providers/provider_api_scripts/cc_mixter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def _get_audio_files(
193193

194194
files = [
195195
{
196-
"url": file["download_url"],
196+
"url": file["download_url"].replace(" ", "%20"),
197197
"filesize": file["file_rawsize"],
198198
"filetype": file["file_format_info"]["default-ext"],
199199
"sample_rate": self._get_sample_rate(

catalog/tests/dags/providers/provider_api_scripts/resources/cc_mixter/expected_single_record.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
"VBR",
3131
"instrumental"
3232
],
33-
"url": "https://ccmixter.org/content/testuser/testuser_-_Test_Music.mp3",
33+
"url": "https://ccmixter.org/content/testuser/testuser%20-%20Test_Music.mp3",
3434
"sample_rate": 44100,
3535
"filetype": "mp3",
3636
"filesize": 11150278,
3737
"duration": 346000,
3838
"alt_files": [
3939
{
40-
"url": "https://ccmixter.org/content/testuser/testuser_-_Test_Music.flac",
40+
"url": "https://ccmixter.org/content/testuser/testuser%20-%20Test_Music.flac",
4141
"sample_rate": 44000,
4242
"filetype": "flac",
4343
"filesize": 111502780,

catalog/tests/dags/providers/provider_api_scripts/resources/cc_mixter/single_item.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"file_order": 0,
4747
"file_is_remote": 0,
4848
"file_num_download": 0,
49-
"download_url": "https://ccmixter.org/content/testuser/testuser_-_Test_Music.zip",
49+
"download_url": "https://ccmixter.org/content/testuser/testuser - Test_Music.zip",
5050
"local_path": "/var/www/ccmixter/content/testuser/testuser_-_Test_Music.zip",
5151
"file_rawsize": 11150278
5252
},
@@ -74,7 +74,7 @@
7474
"file_order": 0,
7575
"file_is_remote": 0,
7676
"file_num_download": 0,
77-
"download_url": "https://ccmixter.org/content/testuser/testuser_-_Test_Music.flac",
77+
"download_url": "https://ccmixter.org/content/testuser/testuser - Test_Music.flac",
7878
"local_path": "/var/www/ccmixter/content/testuser/testuser_-_Test_Music.flac",
7979
"file_rawsize": 111502780
8080
},
@@ -100,7 +100,7 @@
100100
"file_order": 0,
101101
"file_is_remote": 0,
102102
"file_num_download": 0,
103-
"download_url": "https://ccmixter.org/content/testuser/testuser_-_Test_Music.mp3",
103+
"download_url": "https://ccmixter.org/content/testuser/testuser - Test_Music.mp3",
104104
"local_path": "/var/www/ccmixter/content/testuser/testuser_-_Test_Music.mp3",
105105
"file_rawsize": 11150278
106106
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 2024.03.13.17.10.22
2+
3+
## New Features
4+
5+
- Update the Additional search views IP
6+
([#3868](https://github.com/WordPress/openverse/pull/3868)) by @obulat
7+
8+
## Internal Improvements
9+
10+
- Enable Users and Groups in the Django Admin UI
11+
([#3899](https://github.com/WordPress/openverse/pull/3899)) by @AetherUnbound

documentation/projects/proposals/additional_search_views/20230424-project_proposal_additional_search_views.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## Reviewers
66

77
- [x] @obulat
8-
- [ ] @krysal
8+
- [x] @krysal
99

1010
## Project summary
1111

0 commit comments

Comments
 (0)