Skip to content

Commit 998d1c9

Browse files
authored
Merge 7531909 into 6565a49
2 parents 6565a49 + 7531909 commit 998d1c9

358 files changed

Lines changed: 722 additions & 722 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.docker-compose.gv.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ OSF_AUTH_COOKIE_NAME=osf
1212
SESSION_COOKIE_SECURE=false
1313
SESSION_COOKIE_HTTPONLY=true
1414
SESSION_COOKIE_SAMESITE=Lax
15-
OSF_SENSITIVE_DATA_SECRET="TrainglesAre5Squares"
15+
OSF_SENSITIVE_DATA_SECRET="TrianglesAre5Squares"
1616
OSF_SENSITIVE_DATA_SALT="yusaltydough"
1717
DEBUG=1

CHANGELOG

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ We follow the CalVer (https://calver.org/) versioning scheme: YY.MINOR.MICRO.
8888

8989
- Crossref DOIs not minting with _v1, OSF is displaying DOI versions with _v1
9090
- When hamming a spammed user, preprints and registrations remain private
91-
- Fix emabrgoed registrations not becoming public after admin date change
92-
- Add v2 enpoint for alternative email confirmation
91+
- Fix embargoed registrations not becoming public after admin date change
92+
- Add v2 endpoint for alternative email confirmation
9393
- Make relationship on v2/nodes for collected_in
9494
- API V2: get action reviews request not listing latest preprint submit/withdraw requests
9595
- Add ability for admin app to change registry that a registration belongs to
9696
- Update to /nodes/<node-id> api
9797
- Subscription filtering not working correctly
98-
- API V2: Serialize registation resource attributes in Node Linked By Registrations list view and Node Linked Registrations list view
98+
- API V2: Serialize registration resource attributes in Node Linked By Registrations list view and Node Linked Registrations list view
9999

100100
25.10.0 (2025-06-11)
101101
====================
@@ -159,7 +159,7 @@ We follow the CalVer (https://calver.org/) versioning scheme: YY.MINOR.MICRO.
159159
24.10.0 (2024-12-05)
160160
====================
161161

162-
- Migrate Preprint Affilations
162+
- Migrate Preprint Affiliations
163163
- Add OOPSpam and Akismet metrics to spam report
164164
- Add PrivateSpamMetricsReport
165165
- Update PrivateSpamMetricsReporter to work with refactored MonthlyReporter
@@ -340,7 +340,7 @@ reasons
340340

341341
22.11.0 (2022-11-21)
342342
====================
343-
- Enable monitoring and moderation of OSF resoruces based on links to external
343+
- Enable monitoring and moderation of OSF resources based on links to external
344344
domains
345345

346346
22.10.0 (2022-10-25)
@@ -448,12 +448,12 @@ domains
448448
449449
21.08.0 (2021-11-30)
450450
====================
451-
- Remaining work in support of Registrion Versioning/Updating
451+
- Remaining work in support of Registration Versioning/Updating
452452
453453
21.07.0 (2021-10-04)
454454
====================
455455
- Add support for Registry Admins to bulk upload
456-
- Add models suppoorting Registration Versioning
456+
- Add models supporting Registration Versioning
457457
- Normalize default institutional affiliation for drafts
458458
- Fix bugs with spam training
459459
@@ -687,7 +687,7 @@ domains
687687
===================
688688
- Automatically map subjects when a preprint is moved to a different
689689
preprint provider in the admin app
690-
- Gitlab: return all repos to which the user has access
690+
- GitLab: return all repos to which the user has access
691691
- Upgrade Bower
692692
- Py3 backwards compatible changes
693693
@@ -1033,7 +1033,7 @@ tags, using a m2m field.
10331033
====================
10341034
10351035
- APIv2: Add Node Settings endpoint.
1036-
- APIv2: Add employers and eductional_institutions to user serializer.
1036+
- APIv2: Add employers and educational_institutions to user serializer.
10371037
- APIv2: Add endpoints for account export and deactivation requests.
10381038
- APIv2: Retrieve/delete user external identities.
10391039
- Move addon max file size limits to settings files.
@@ -1159,10 +1159,10 @@ for GitHub, Zotero, and Mendeley addons.
11591159
- Upgrade Dropbox client version.
11601160
- Add field to PreprintProvider to toggle Hypothesis commenting.
11611161
- Fix using django-waffle with groups.
1162-
- Fix bug that caused project to be unreachable if it had a deleted BitBucket addon.
1162+
- Fix bug that caused project to be unreachable if it had a deleted Bitbucket addon.
11631163
- Fix incorrect OSF Meeting instructions.
11641164
- Remove unused fonts and styles from landing page.
1165-
- Hide hierarchy on search results if parent is priate.
1165+
- Hide hierarchy on search results if parent is private.
11661166
- API: Fix /data/relationships/referent/type for /guids/<registration-id>/?resolve=false endpoint.
11671167
- API: Optimize node delete endpoint.
11681168
- Admin: Fix typos.
@@ -1198,7 +1198,7 @@ Deprecates NodeWikiVersion, Node.wiki_pages_versions, and Node.wiki_pages_curren
11981198
11991199
- Display file metadata for addon files deleted outside of the OSF.
12001200
- Add decorator for feature-flagging EmbOSF routes.
1201-
- Add footer to OSF landing page foor logged out users.
1201+
- Add footer to OSF landing page for logged out users.
12021202
- Make loading indicators consistent.
12031203
- Show DOIs on withdrawn registrations.
12041204
- Make support email configurable in settings.
@@ -1300,7 +1300,7 @@ Deprecates NodeWikiVersion, Node.wiki_pages_versions, and Node.wiki_pages_curren
13001300
- Subsequent files do not receive a modal when copied over to a folder
13011301
- Unable to authorize figshare accounts with unicode in name
13021302
- fix incorrect method name in oauth node config js
1303-
- In Fangorn, Github's [Open] button only points to the default branch
1303+
- In Fangorn, GitHub's [Open] button only points to the default branch
13041304
- Popular Public and New & Noteworthy -- making a project private causes error
13051305
- Admin app: accessing list of user's permissions 502s
13061306
- Unable to mark node as Ham
@@ -1316,7 +1316,7 @@ Deprecates NodeWikiVersion, Node.wiki_pages_versions, and Node.wiki_pages_curren
13161316
- Citations preview should show the full name field if the individual name sections are blank
13171317
- Incorrect error message is shown for Dataverse 500 error
13181318
- File checked out to Alex DeHaven after Prereg Challenge submission is approved.
1319-
- Don't use {} as a attribute default value
1319+
- Don't use {} as an attribute default value
13201320
- [admin app] Searching for user names that contain periods or commas returns 502
13211321
- Forks total includes registrations
13221322
- Fix spelling for new VOL section in project settings
@@ -1491,7 +1491,7 @@ Deprecates NodeWikiVersion, Node.wiki_pages_versions, and Node.wiki_pages_curren
14911491
- Make ever_mentioned a ManyToMany field
14921492
- Remove unused mongo code in framework.mongo
14931493
- Reduce number of queries made by triggered mails script
1494-
- Add a context manager to prevent auto_now fields from from getting updated during migrations
1494+
- Add a context manager to prevent auto_now fields from getting updated during migrations
14951495
- Remove model name aliasing in imports
14961496
- Remove dead badges code
14971497
- Add view OSF Subjects Permissions
@@ -1694,7 +1694,7 @@ Deprecates NodeWikiVersion, Node.wiki_pages_versions, and Node.wiki_pages_curren
16941694
- Submitting to OSF4M using deleted project name does not create new project
16951695
- Fangorn edit undefined
16961696
- API 502s when refreshing github metadata (was: TypeError: Can't compare datetime.datetime to NoneType)
1697-
- API 502s when requesting Github file metadata w/ version=2.2
1697+
- API 502s when requesting GitHub file metadata w/ version=2.2
16981698
- Search unhappy with some users
16991699
- Registries: "Withdrawn" label not appearing on newly-withdrawn registrations
17001700
- Retraction detail pages throw mithril mounting error
@@ -1759,7 +1759,7 @@ Post-release: python -m scripts.migration.migrate_meetings_preprints_to_preprint
17591759
0.101.0 (2016-11-23)
17601760
====================
17611761
- Fix renaming, download button, zip is broken on GitHub non-default branch
1762-
- Prevent 500 error when oving a folder from a OSF in component to OSF storage in parent
1762+
- Prevent 500 error when moving a folder from a OSF in component to OSF storage in parent
17631763
- Ensure IE can view files in a VOL
17641764
- Improve error messaging for attempted moves/deletes of primary file on private preprint project
17651765
- Make comment reply filter work
@@ -1810,7 +1810,7 @@ Post-release: python -m scripts.migration.migrate_meetings_preprints_to_preprint
18101810
0.97.0 (2016-10-20)
18111811
===================
18121812
- API v2 Versioning
1813-
- API v2 Redirect swagger docs to Browseable API
1813+
- API v2 Redirect swagger docs to Browsable API
18141814
- Fix wiki formatting for legacy wiki pages
18151815
- Ensure bad file moves don't delete files
18161816
- API v2 Make private nodes private in inter-node file moves
@@ -1925,7 +1925,7 @@ Migrations
19251925
0.91.0 (2016-08-28)
19261926
===================
19271927
1928-
- API Endpoints for Preprints (also includs providers and taxonomies)
1928+
- API Endpoints for Preprints (also includes providers and taxonomies)
19291929
- API Download Counts for OSF Storage Files
19301930
19311931
Migrations
@@ -1956,7 +1956,7 @@ Migrations
19561956
0.88.1 (2016-08-25)
19571957
===================
19581958
1959-
- Make Github addon logging more tolerant to problems
1959+
- Make GitHub addon logging more tolerant to problems
19601960
19611961
0.88.0 (2016-08-22)
19621962
===================
@@ -1989,7 +1989,7 @@ Migrations
19891989
0.87.5 (2016-08-16)
19901990
===================
19911991
1992-
- Modify wording on ERPC langing page
1992+
- Modify wording on ERPC landing page
19931993
19941994
0.87.4 (2016-08-15)
19951995
===================
@@ -2110,7 +2110,7 @@ Migrations
21102110
===================
21112111
21122112
- Use CAS for all authentication for OSF.
2113-
- On regisration's file pages, show links to original source file.
2113+
- On registration's file pages, show links to original source file.
21142114
- Creating a wiki page whose name is the same as a previously deleted wiki page will no longer restore the wiki page's versions.
21152115
- Add more contextual information about component hierarchy to the My Projects widget.
21162116
- Add Date Modified column to file browsers.
@@ -2254,7 +2254,7 @@ See https://openscience.atlassian.net/browse/OSF-5861
22542254
- Backend for OSF4Institutions: nodes and users can be affiliated with an institution (alpha; disabled on production).
22552255
- Add visitor tracking with Keen.io.
22562256
- Refactor Google Drive addon to use generic views.
2257-
- Use Sendgrid API for sending emails; add categorization of emails.
2257+
- Use SendGrid API for sending emails; add categorization of emails.
22582258
- UI fixes.
22592259
22602260
0.64.0 (2016-02-10)
@@ -2417,7 +2417,7 @@ Migrations
24172417
0.50.0 (2015-09-17)
24182418
===================
24192419
2420-
- Migration of all addon file collecitons to a single GuidFile collection.
2420+
- Migration of all addon file collections to a single GuidFile collection.
24212421
24222422
0.49.0 (2015-09-11)
24232423
===================
@@ -2726,7 +2726,7 @@ service when files are backed up to a Amazon Glacier archive.
27262726
27272727
Hotfix release
27282728
2729-
- Display warning about private Github repos on a public project on files and
2729+
- Display warning about private GitHub repos on a public project on files and
27302730
statistics pages.
27312731
- Refactor celery task for rendering files so that file contents are not
27322732
passed to message broker.
@@ -2770,16 +2770,16 @@ Lots of new UI features and responsiveness improvements.
27702770
- Paginate search results in Add Contributor widget.
27712771
- Speed improvements to contributor manager widget.
27722772
- Add "ongoing" option to Education and Employment sections of user profile.
2773-
- Improved mimetype detection when downloading a file through the Github
2773+
- Improved mimetype detection when downloading a file through the GitHub
27742774
addon.
27752775
- Unread comment counts appear in comment tab.
27762776
- Lots of bug fixes and minor UI improvements to the wiki.
27772777
- Wiki page names can have punctuation and special characters.
27782778
- Lots of UI fixes to the profile configuration pages.
27792779
- Larger project title and description inputs.
27802780
- Confirmation codes for project deletion are more fun =)
2781-
- Allow multiple users to authenticate with the same Github credentials for
2782-
the Github addon.
2781+
- Allow multiple users to authenticate with the same GitHub credentials for
2782+
the GitHub addon.
27832783
- Includes all fixes from the "Sprint: Initial" milestone: https://github.com/CenterForOpenScience/openscienceframework.org/issues?q=milestone%3A%22Sprint+%3A+Initial%22+
27842784
- Update required versions of requests, webassets, and bleach.
27852785
@@ -2795,7 +2795,7 @@ Schema changes
27952795
27962796
- Remove fork_list and registration_list fields from Node model. NOTE: A
27972797
migration was NOT performed to remove these fields.
2798-
- Add AddonGithubOauthSettings model.
2798+
- Add AddonGitHubOauthSettings model.
27992799
- Remove oauth_access_token and oauth_token_type fields from
28002800
AddonGitHubUserSettings model.
28012801
@@ -2843,11 +2843,11 @@ and prevents a number of circular import problems throughout the codebase.
28432843
- Wiki logs link to wiki pages.
28442844
- Add confirmation dialog when deselecting addons from the user profile page.
28452845
- Registered users no longer have "key ring" of view-only link keys. View-only
2846-
links will appear the same, regardless of whether you are logged in or not.
2846+
links will appear the same, regardless of whether or not you are logged in.
28472847
- Project deletion events are logged.
28482848
- Developers: All deprecated Solr code removed.
28492849
- Developers: Bower components are no longer added to the git tree. Use `bower
2850-
install` to installthem.
2850+
install` to install them.
28512851
- Developers: Various improvements to logging.
28522852
- Developers: ``URLLookup`` class is deprecated. Use ``api_url_for`` and
28532853
``web_url_for`` in your tests.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ When submitting an issue, be as descriptive as possible:
3030
* Suggest a solution
3131
* What will it look like when this issue is resolved?
3232

33-
Include pictures (e.g., in OSX press Cmd+Shift+4 to draw a box to screenshot)
33+
Include pictures (e.g., in macOS press Cmd+Shift+4 to draw a box to screenshot)
3434

3535
Examples of good issue reporting: [#382](https://github.com/CenterForOpenScience/osf.io/issues/382), [#713](https://github.com/CenterForOpenScience/osf.io/issues/713).

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ Common Public Attribution License Version 1.0 (CPAL-1.0)
460460

461461
8.1 This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. All sublicenses to the Covered Code which are properly granted shall survive any termination of this License. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive.
462462

463-
8.2 If You initiate litigation by asserting a patent infringement claim (excluding declatory judgment actions) against Initial Developer, Original Developer or a Contributor (the Initial Developer, Original Developer or Contributor against whom You file such action is referred to as “Participant”) alleging that:
463+
8.2 If You initiate litigation by asserting a patent infringement claim (excluding declaratory judgment actions) against Initial Developer, Original Developer or a Contributor (the Initial Developer, Original Developer or Contributor against whom You file such action is referred to as “Participant”) alleging that:
464464

465465
(a) such Participant’s Contributor Version directly or indirectly infringes any patent, then any and all rights granted by such Participant to You under Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice from Participant terminate prospectively, unless if within 60 days after receipt of notice You either: (i) agree in writing to pay Participant a mutually agreeable reasonable royalty for Your past and future use of Modifications made by such Participant, or (ii) withdraw Your litigation claim with respect to the Contributor Version against such Participant. If within 60 days of notice, a reasonable royalty and payment arrangement are not mutually agreed upon in writing by the parties or the litigation claim is not withdrawn, the rights granted by Participant to You under Sections 2.1 and/or 2.2 automatically terminate at the expiration of the 60 day notice period specified above.
466466

PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ Any concerns/considerations/questions that development raised?
3636

3737
## Ticket
3838

39-
<!-- Link to JIRA ticket, if applicable e.g. https://openscience.atlassian.net/browse/OSF-1234 -->
39+
<!-- Link to Jira ticket, if applicable e.g. https://openscience.atlassian.net/browse/OSF-1234 -->

README-docker-compose.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
## Docker and OS Setup
33

44
1. Install the Docker Client
5-
- OSX: https://www.docker.com/products/docker#/mac
5+
- macOS: https://www.docker.com/products/docker#/mac
66
- Ubuntu: https://docs.docker.com/engine/installation/linux/ubuntulinux
77
- Windows: https://www.docker.com/products/docker#/windows
88
2. Grant the docker client additional resources (recommended minimums of 1 CPU, 8GB memory, 2GB swap, and 32GB disk image size)
9-
- OSX: https://docs.docker.com/docker-for-mac/#/preferences
9+
- macOS: https://docs.docker.com/docker-for-mac/#/preferences
1010
- Ubuntu: N/A
1111
- Windows: https://docs.docker.com/docker-for-windows/#advanced
12-
3. Setup the Operating System
13-
- OSX
12+
3. Set up the Operating System
13+
- macOS
1414
- Alias the loopback interface
1515

1616
```bash
@@ -72,7 +72,7 @@
7272
`netsh interface show interface`
7373
- Rename the interface
7474

75-
`netsh inteface set interface "Ethernet 2" newname="Loopback"`
75+
`netsh interface set interface "Ethernet 2" newname="Loopback"`
7676
- Assign the Loopback interface an IP address
7777

7878
`netsh interface ip add address "Loopback" 192.168.168.167 255.255.255.255`
@@ -124,7 +124,7 @@
124124

125125
- Running containers with docker compose
126126

127-
- In `webite/settings/local.py`, disable `SEARCH_ENGINE`
127+
- In `website/settings/local.py`, disable `SEARCH_ENGINE`
128128
```python
129129
# SEARCH_ENGINE = 'elastic'
130130
SEARCH_ENGINE = None

addons/base/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def before_fork(self, node, user):
455455
"""Return warning text to display if user auth will be copied to a
456456
fork.
457457
:param Node node:
458-
:param Uder user
458+
:param User user
459459
:returns Alert message
460460
"""
461461

addons/base/tests/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AddonTestCase:
1313
- ADDON_SHORT_NAME (class variable)
1414
- set_user_settings(self, settings): Method that makes any modifications
1515
to the UserSettings object, e.g. setting access_token
16-
- set_node_settings(self, settings): Metehod that makes any modifications
16+
- set_node_settings(self, settings): Method that makes any modifications
1717
to the NodeSettings object.
1818
1919
This will give you:

addons/base/tests/serializers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def test_serialized_urls_checks_required(self):
121121
with pytest.raises(AssertionError):
122122
self.ser.serialized_urls
123123

124-
def test_serialized_acccounts(self):
124+
def test_serialized_accounts(self):
125125
ea = self.ExternalAccountFactory()
126126
self.user.external_accounts.add(ea)
127127

@@ -131,7 +131,7 @@ def test_serialized_acccounts(self):
131131
assert len(serialized) == self.user.external_accounts.count()
132132
assert mock_serialize_account.call_count == len(serialized)
133133

134-
def test_serialize_acccount(self):
134+
def test_serialize_account(self):
135135
ea = self.ExternalAccountFactory()
136136
expected = {
137137
'id': ea._id,
@@ -169,7 +169,7 @@ class StorageAddonSerializerTestSuiteMixin(OAuthAddonSerializerTestSuiteMixin):
169169
@abc.abstractmethod
170170
def client(self):
171171
"""Provide a mocked version of this provider's client (i.e. the client should not make
172-
acutal API calls).
172+
actual API calls).
173173
"""
174174
pass
175175

addons/base/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def get_auth(auth, **kwargs):
198198
Authenticate a request and construct a JWT payload for Waterbutler callbacks.
199199
When a user interacts with a file OSF sends a request to WB which itself sends a
200200
request to an external service or Osfstorage, in order to confirm that event has
201-
taken place Waterbutler will send this callback to OSF to comfirm the file action was
201+
taken place Waterbutler will send this callback to OSF to confirm the file action was
202202
successful and can be logged.
203203
204204
This function decrypts and decodes the JWT payload from the request, authenticates

0 commit comments

Comments
 (0)