Skip to content

Commit 2d56839

Browse files
committed
Merge tag '25.17.2' into develop
Misc. fixes for Angular migration
2 parents 0c713bc + 0a13b4c commit 2d56839

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
We follow the CalVer (https://calver.org/) versioning scheme: YY.MINOR.MICRO.
44

5+
25.17.2 (2025-10-09)
6+
====================
7+
8+
- Misc. fixes for Angular migration
9+
510
25.17.1 (2025-10-09)
611
====================
712

api/nodes/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ class NodeSerializer(TaxonomizableSerializerMixin, JSONAPISerializer):
272272
fork = ser.BooleanField(read_only=True, source='is_fork')
273273
collection = ser.BooleanField(read_only=True, source='is_collection')
274274
tags = ValuesListField(attr_name='name', child=ser.CharField(), required=False)
275-
access_requests_enabled = ShowIfVersion(ser.BooleanField(read_only=False, required=False), min_version='2.0', max_version='2.8')
275+
access_requests_enabled = ser.BooleanField(read_only=True, required=False)
276276
node_license = NodeLicenseSerializer(required=False, source='license')
277277
# 'analytics_key' can be removed after another version release.
278278
analytics_key = ShowIfAdminScopeOrAnonymous(ser.CharField(read_only=True, default=''))

api_tests/nodes/views/test_node_detail.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,9 @@ def test_preprint_field(self, app, user, user_two, project_public, url_public):
358358
assert res.status_code == 200
359359
assert res.json['data']['attributes']['preprint'] is False
360360

361-
def test_shows_access_requests_enabled_field_based_on_version(self, app, user, project_public, url_public):
361+
def test_shows_access_requests_enabled_field(self, app, user, project_public, url_public):
362362
url = url_public + '?version=latest'
363363
res = app.get(url, auth=user.auth)
364-
assert 'access_requests_enabled' not in res.json['data']['attributes']
365-
res = app.get(url_public + '?version=2.8', auth=user.auth)
366364
assert 'access_requests_enabled' in res.json['data']['attributes']
367365

368366
def test_node_shows_correct_templated_from_count(self, app, user, project_public, url_public):

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "OSF",
3-
"version": "25.17.1",
3+
"version": "25.17.2",
44
"description": "Facilitating Open Science",
55
"repository": "https://github.com/CenterForOpenScience/osf.io",
66
"author": "Center for Open Science",

0 commit comments

Comments
 (0)