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

Update related-object methods in DatasetCommit to use parent_job_model #199

Open
davecap opened this issue Oct 18, 2017 · 0 comments
Open

Comments

@davecap
Copy link
Member

davecap commented Oct 18, 2017

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant