Skip to content

OneDrive Addon [#OSF-8573]#7653

Merged
sloria merged 6 commits intoCenterForOpenScience:developfrom
mfraezz:feature/onedrive-django
Nov 21, 2017
Merged

OneDrive Addon [#OSF-8573]#7653
sloria merged 6 commits intoCenterForOpenScience:developfrom
mfraezz:feature/onedrive-django

Conversation

@mfraezz
Copy link
Member

@mfraezz mfraezz commented Sep 5, 2017

Purpose

Updates #7042

Changes

  • Django-ify OneDrive addon

Side effects

WARNING: Possible migration collision

If the other addon PRs go in, migrations will need to be recreated, not just merged

Ticket

[OSF-8573]

@mfraezz mfraezz force-pushed the feature/onedrive-django branch 3 times, most recently from e474bb5 to 96dc357 Compare September 6, 2017 17:14
@mfraezz mfraezz changed the title [WIP] OneDrive Addon [#OSF-8573] OneDrive Addon [#OSF-8573] Sep 13, 2017
@mfraezz mfraezz force-pushed the feature/onedrive-django branch 2 times, most recently from aeb6649 to 0a63f74 Compare October 24, 2017 18:34
@mfraezz mfraezz force-pushed the feature/onedrive-django branch from 0a63f74 to 855bd10 Compare November 21, 2017 16:51
folder_path = models.TextField(null=True, blank=True)
user_settings = models.ForeignKey(UserSettings, null=True, blank=True)

_api = None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be an instance attribute rather than a class attribute? Wouldn't OneDriveProvider instances be shared if this is a class attribute?

except exceptions.InvalidAuthError:
raise HTTPError(403)

oneDriveClient = OneDriveClient(access_token)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: should be onedrive_client.

var $osf = require('js/osfHelpers');

// Cross browser key codes for the Command key
var commandKeys = [224, 17, 91, 93];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't appear to be used.


class TestCore(unittest.TestCase):

def setUp(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: pytest fixtures should be used in favor of unittest.


var m = require('mithril');
var $ = require('jquery');
var URI = require('URIjs');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: there are a number of unused imports here.

Copy link
Contributor

@sloria sloria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just nits; I'll take care of those when I merge.

@sloria sloria merged commit 855bd10 into CenterForOpenScience:develop Nov 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants