Skip to content

Dataset create#24

Merged
98sean98 merged 10 commits intomainfrom
dataset-create
Jul 12, 2022
Merged

Dataset create#24
98sean98 merged 10 commits intomainfrom
dataset-create

Conversation

@kschauhan3
Copy link
Contributor

No description provided.

@kschauhan3 kschauhan3 self-assigned this Jul 6, 2022
@kschauhan3 kschauhan3 linked an issue Jul 6, 2022 that may be closed by this pull request
@kschauhan3 kschauhan3 added the summer 22 Summer 2022 project label Jul 6, 2022
@kschauhan3 kschauhan3 marked this pull request as ready for review July 8, 2022 10:51
Copy link
Contributor

@98sean98 98sean98 left a comment

Choose a reason for hiding this comment

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

Just a few minor changes.

@kschauhan3 kschauhan3 linked an issue Jul 11, 2022 that may be closed by this pull request
Copy link
Contributor

@98sean98 98sean98 left a comment

Choose a reason for hiding this comment

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

Need a fix in the project_found decorator

def wrapper(click_context, *args, **kwargs):
deploifai_context = click_context.find_object(DeploifaiContextObj)
if deploifai_context.local_config is not None:
if deploifai_context.local_config["PROJECT"]["id"] is not None:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this might throw a KeyError when trying to access a key that doesn't exist in the dictionary. So maybe check using if 'id' in ...

@98sean98 98sean98 merged commit b9a39d6 into main Jul 12, 2022
@98sean98 98sean98 deleted the dataset-create branch July 12, 2022 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

summer 22 Summer 2022 project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix project_found decorator Create dataset command

2 participants