Skip to content

Conversation

@ifielker
Copy link
Contributor

@ifielker ifielker commented Dec 2, 2019

Hey there! So you want to contribute to a Firebase SDK?
Before you file this pull request, please read these guidelines:

Discussion

  • Read the contribution guidelines (CONTRIBUTING.md).
  • If this has been discussed in an issue, make sure to link to the issue here.
    If not, go file an issue about this before creating a pull request to discuss.

Testing

  • Make sure all existing tests in the repository pass after your change.
  • If you fixed a bug or added a feature, add a new test to cover your code.

API Changes

  • At this time we cannot accept changes that affect the public API. If you'd like to help
    us make Firebase APIs better, please propose your change in an issue so that we
    can discuss it together.

Copy link
Contributor

@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

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

Looks great. Just a couple of nits.

def _url(project_id, model_id):
def _update_url(project_id, model_id):
update_url = 'projects/{0}/models/{1}?updateMask=state.published'
return BASE_URL + update_url.format(project_id, model_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Consider doing the format() on the previous line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's one character too long. I can wrap it or I can leave it? Which do you prefer?

Copy link
Contributor

Choose a reason for hiding this comment

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

May be something like:

update_url = 'projects/{0}/models/{1}?updateMask=state.published'.format(
    project_id, model_id)

@hiranya911 hiranya911 assigned ifielker and unassigned hiranya911 Dec 9, 2019
Copy link
Contributor

@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

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

LGTM with a suggestion.

def _url(project_id, model_id):
def _update_url(project_id, model_id):
update_url = 'projects/{0}/models/{1}?updateMask=state.published'
return BASE_URL + update_url.format(project_id, model_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

May be something like:

update_url = 'projects/{0}/models/{1}?updateMask=state.published'.format(
    project_id, model_id)

@hiranya911 hiranya911 removed their assignment Dec 9, 2019
@ifielker ifielker merged commit 74d11d8 into mlkit-10 Dec 10, 2019
@ifielker ifielker deleted the mlkit-11 branch December 10, 2019 17:45
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.

2 participants