Skip to content

Unzip project to check if file exists and add request_handler file ha… #438

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

Merged
merged 5 commits into from
Sep 9, 2019

Conversation

vishalbollu
Copy link
Contributor

…sh to api hash calculation

Closes #428, Closes #427


Checklist:

  • Run make test and make lint
  • Test end to end manually (e.g. build/push all images, restart operator, and run cx refresh)
  • Update examples
  • Update documentation (add any new files to summary.md)
  • Merge to master
  • Cherry-pick into release branches if it's a bugfix
  • Check gitbook that docs look good and links function properly
  • Alert team if dev environment changed
  • Delete the branch once it's merged

@vishalbollu vishalbollu requested a review from deliahu September 6, 2019 14:34
@@ -269,6 +269,13 @@ func (api *API) Validate() error {
return errors.Wrap(ErrorTFServingOptionsForTFOnly(api.ModelFormat), Identify(api))
}

if api.RequestHandler != nil {
fmt.Println(projectFileMap[*api.RequestHandler])
Copy link
Member

Choose a reason for hiding this comment

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

Extra println?

if err != nil {
RespondError(w, err)
return
}

projectBytes, err := files.ReadReqFile(r, "project.zip")
err = userconf.Validate(projectBytes)
Copy link
Member

Choose a reason for hiding this comment

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

I like how you split this out! Makes much more sense than the bool param to New()

@vishalbollu vishalbollu merged commit 89674ea into master Sep 9, 2019
@vishalbollu vishalbollu deleted the check-if-request-handler-exists branch September 9, 2019 18:54
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.

Detect missing request handler before deploy API API doesn't get updated if the request handler path is changed
2 participants