Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue where task method did not pass client through #198

Merged
merged 1 commit into from Oct 18, 2017
Merged

Conversation

davecap
Copy link
Member

@davecap davecap commented Oct 18, 2017

No description provided.


def dataset_import(self):
from .datasetimport import DatasetImport
return DatasetImport.retrieve(self['dataset_import_id'])
self._client.DatasetImport.retrieve(self['dataset_import_id'])
Copy link
Contributor

@jsh2134 jsh2134 Oct 18, 2017

Choose a reason for hiding this comment

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

this can be updated to the future...

if self['parent_job_model'] == 'datasets.DatasetImport':  
       self._client.DatasetImport.retrieve(self['parent_job_id'])

do we want to add other possible methods in here also?

def dataset_migration(self):
    # returns its parent migration
    pass
def parent_commit(self):
   # if this a rollback, returns its parent 
   pass

Copy link
Contributor

Choose a reason for hiding this comment

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

moved to #199

@davecap davecap merged commit 0b5d285 into master Oct 18, 2017
@davecap davecap deleted the fix-task branch October 18, 2017 22:03
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.

None yet

2 participants