Skip to content

vcap and json loads changes #22

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 3 commits into from
Aug 30, 2019
Merged

vcap and json loads changes #22

merged 3 commits into from
Aug 30, 2019

Conversation

ehdsouza
Copy link
Contributor

This PR supports the following:

  • Convert data object to string before making a request
  • Temporary handle vcap services... This is a temporary change as we pass in only service name. So a VCAP service like compare-and-comply would be converted to compare_and_comply

@codecov
Copy link

codecov bot commented Aug 29, 2019

Codecov Report

Merging #22 into next will increase coverage by 0.22%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##             next      #22      +/-   ##
==========================================
+ Coverage   97.76%   97.99%   +0.22%     
==========================================
  Files          16       16              
  Lines         492      498       +6     
==========================================
+ Hits          481      488       +7     
+ Misses         11       10       -1
Impacted Files Coverage Δ
ibm_cloud_sdk_core/base_service.py 96.74% <100%> (+0.08%) ⬆️
ibm_cloud_sdk_core/utils.py 98.01% <100%> (+1.08%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7eb7e88...8ef48a1. Read the comment docs.

@mediumTaj mediumTaj requested a review from padamstx August 29, 2019 20:55
Copy link
Member

@mediumTaj mediumTaj left a comment

Choose a reason for hiding this comment

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

👍 looks good! Tagged @padamstx to review as well

@ehdsouza ehdsouza merged commit 5e6879a into next Aug 30, 2019
@ehdsouza ehdsouza deleted the rc-changes branch August 30, 2019 13:30
@padamstx
Copy link
Member

* Temporary handle vcap services... This is a temporary change as we pass in only `service name`. So a VCAP service like `compare-and-comply` would be converted to `compare_and_comply`

We shouldn't be doing any transformation on the service name when we use it to retrieve an entry in VCAP_SERVICES. If the service name obtained from the API definition and inserted into the generated code is "compare-and-comply", then that's the key that we'd expect to find in VCAP_SERVICES.
We only do the transformation on the service name when looking for properties in the credential file or environment variables.
There is a section on this in the Authentication design:
https://github.ibm.com/CloudEngineering/openapi-sdkgen/wiki/Core-SDK-Authentication-Design#a-note-about-service-names

Copy link
Member

@padamstx padamstx left a comment

Choose a reason for hiding this comment

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

I left a comment after you already merged the PR.

@ehdsouza
Copy link
Contributor Author

@padamstx this was done temporary before the meeting as a candidate release had to get out

@watson-github-bot
Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants