Skip to content

Commit a9f99d8

Browse files
committed
resolve merge conflicts
1 parent cf680a4 commit a9f99d8

8 files changed

Lines changed: 3 additions & 57 deletions

File tree

api/nodes/views.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,8 @@
160160
CedarMetadataRecord,
161161
Preprint,
162162
Collection,
163-
<<<<<<< HEAD
164163
Contributor,
165-
NotificationType,
166-
=======
167164
NotificationTypeEnum,
168-
>>>>>>> upstream/develop
169165
)
170166
from addons.osfstorage.models import Region
171167
from osf.utils.permissions import ADMIN, WRITE_NODE

framework/auth/campaigns.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,27 +95,17 @@ def get_campaigns():
9595
newest_campaigns.update({
9696
'agu_conference_2023': {
9797
'system_tag': CampaignSourceTags.AguConference2023.value,
98-
<<<<<<< HEAD
9998
'redirect_url': furl(DOMAIN).add(path='my_projects/').url,
10099
'confirmation_email_template': NotificationType.Type.USER_CAMPAIGN_CONFIRM_EMAIL_AGU_CONFERENCE_2023,
101-
=======
102-
'redirect_url': furl(DOMAIN).add(path='dashboard/').url,
103-
'confirmation_email_template': NotificationTypeEnum.USER_CONFIRM_EMAIL, # added as a placeholder as removed NotificationType
104-
>>>>>>> upstream/develop
105100
'login_type': 'native',
106101
}
107102
})
108103

109104
newest_campaigns.update({
110105
'agu_conference': {
111106
'system_tag': CampaignSourceTags.AguConference.value,
112-
<<<<<<< HEAD
113107
'redirect_url': furl(DOMAIN).add(path='my_projects/').url,
114108
'confirmation_email_template': NotificationType.Type.USER_CAMPAIGN_CONFIRM_EMAIL_AGU_CONFERENCE,
115-
=======
116-
'redirect_url': furl(DOMAIN).add(path='dashboard/').url,
117-
'confirmation_email_template': NotificationTypeEnum.USER_CAMPAIGN_CONFIRM_EMAIL_AGU_CONFERENCE,
118-
>>>>>>> upstream/develop
119109
'login_type': 'native',
120110
}
121111
})

scripts/tests/test_populate_new_and_noteworthy.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@
77

88
from scripts import populate_new_and_noteworthy_projects as script
99

10-
<<<<<<< HEAD
1110
NEW_AND_NOTEWORTHY_LINKS_NODE = 'nguid'
12-
=======
13-
TEST_NEW_AND_NOTEWORTHY_GUID = 'nguid'
14-
15-
>>>>>>> upstream/develop
1611

1712

1813
@mock.patch('scripts.populate_new_and_noteworthy_projects.NEW_AND_NOTEWORTHY_LINKS_NODE', NEW_AND_NOTEWORTHY_LINKS_NODE)
@@ -22,22 +17,14 @@ def setUp(self):
2217
super().setUp()
2318

2419
self.new_and_noteworthy_links_node = ProjectFactory()
25-
self.new_and_noteworthy_links_node._id = TEST_NEW_AND_NOTEWORTHY_GUID
20+
self.new_and_noteworthy_links_node._id = NEW_AND_NOTEWORTHY_LINKS_NODE
2621
self.new_and_noteworthy_links_node.save()
2722

28-
<<<<<<< HEAD
2923
self.nn1 = ProjectFactory(is_public=True, title='Noteworthy Project Alpha')
3024
self.nn2 = ProjectFactory(is_public=True, title='Noteworthy Project Beta')
3125
self.nn3 = ProjectFactory(is_public=True, title='Noteworthy Project Gamma')
3226
self.nn4 = ProjectFactory(is_public=True, title='Noteworthy Project Delta')
3327
self.nn5 = ProjectFactory(is_public=True, title='Noteworthy Project Epsilon')
34-
=======
35-
self.nn1 = ProjectFactory(is_public=True, title='Noteworthy Alpha')
36-
self.nn2 = ProjectFactory(is_public=True, title='Noteworthy Bravo')
37-
self.nn3 = ProjectFactory(is_public=True, title='Noteworthy Charlie')
38-
self.nn4 = ProjectFactory(is_public=True, title='Noteworthy Foxtrot')
39-
self.nn5 = ProjectFactory(is_public=True, title='Noteworthy Golf')
40-
>>>>>>> upstream/develop
4128

4229
self.all_ids = {self.nn1._id, self.nn2._id, self.nn3._id, self.nn4._id, self.nn5._id}
4330

@@ -49,7 +36,7 @@ def test_get_new_and_noteworthy_nodes(self):
4936
new_noteworthy = script.get_new_and_noteworthy_nodes(self.new_and_noteworthy_links_node)
5037
assert set(new_noteworthy) == self.all_ids
5138

52-
@mock.patch.object(script, 'NEW_AND_NOTEWORTHY_LINKS_NODE', TEST_NEW_AND_NOTEWORTHY_GUID)
39+
@mock.patch.object(script, 'NEW_AND_NOTEWORTHY_LINKS_NODE', NEW_AND_NOTEWORTHY_LINKS_NODE)
5340
def test_populate_new_and_noteworthy(self):
5441
assert self.new_and_noteworthy_links_node._nodes.count() == 0
5542

tests/test_misc_views.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,13 +420,10 @@ def test_external_login_confirm_email_get_link(self):
420420
self.user.save()
421421
assert not self.user.is_registered
422422
url = self.user.get_confirmation_url(self.user.username, external_id_provider='orcid', destination='my_projects')
423-
with capture_notifications():
423+
with capture_notifications() as notifications:
424424
res = self.app.get(url)
425-
<<<<<<< HEAD
426-
=======
427425
assert len(notifications['emits']) == 1
428426
assert notifications['emits'][0]['type'] == NotificationTypeEnum.USER_EXTERNAL_LOGIN_LINK_SUCCESS
429-
>>>>>>> upstream/develop
430427
assert res.status_code == 302, 'redirects to cas login'
431428
assert 'You should be redirected automatically' in str(res.html)
432429
assert '/login?service=' in res.location

website/profile/views.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@
2525
from framework.status import push_status_message
2626
from framework.utils import throttle_period_expired
2727

28-
<<<<<<< HEAD
29-
from osf.models import ApiOAuth2Application, ApiOAuth2PersonalToken, OSFUser, NotificationType
30-
=======
31-
from osf import features
3228
from osf.models import ApiOAuth2Application, ApiOAuth2PersonalToken, OSFUser, NotificationTypeEnum
33-
>>>>>>> upstream/develop
3429
from osf.exceptions import BlockedEmailError, OSFError
3530
from osf.utils.requests import string_type_request_headers
3631
from website import mailchimp_utils

website/routes.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@
5050
from website.policies import views as policy_views
5151
from website.preprints import views as preprint_views
5252
from website.registries import views as registries_views
53-
<<<<<<< HEAD
54-
from website.notifications import views as notification_views
55-
=======
56-
from website.reviews import views as reviews_views
57-
from website.institutions import views as institution_views
58-
from website.ember_osf_web import views as ember_osf_web_views
59-
>>>>>>> upstream/develop
6053
from website.closed_challenges import views as closed_challenges_views
6154
from website.identifiers import views as identifier_views
6255

website/templates/reviews_resubmission_confirmation.html.mako

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,7 @@
3434
Sincerely,
3535
<br>
3636
Your ${reviewable_provider_name} and OSF teams
37-
<<<<<<< HEAD
38-
<p>
39-
Center for Open Science
40-
</p>
41-
=======
4237
<br>
43-
>>>>>>> upstream/develop
4438
<a href="https://github.com/CenterForOpenScience/cos.io/blob/master/PRIVACY_POLICY.md">Privacy Policy</a>
4539
</div>
4640
</%def>

website/views.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,7 @@ def resolve_guid(guid, suffix=None):
287287
if clean_suffix == 'metadata':
288288
format_arg = request.args.get('format')
289289
if format_arg:
290-
<<<<<<< HEAD
291-
return guid_metadata_download(guid, resource, format_arg)
292-
=======
293290
return guid_metadata_download(guid, resource=resource, metadata_format=format_arg)
294-
else:
295-
return use_ember_app()
296-
>>>>>>> upstream/develop
297291

298292
if isinstance(resource, Preprint) and resource.provider.domain_redirect_enabled:
299293
return redirect(resource.absolute_url, http_status.HTTP_301_MOVED_PERMANENTLY)

0 commit comments

Comments
 (0)