-
Notifications
You must be signed in to change notification settings - Fork 3
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 code to support China instance of the SB platform #11
base: main
Are you sure you want to change the base?
Conversation
The platform_config.py settings are specific to SevenBridges. Can these be put inside the sevenbridges_platform.py file? |
Yes, done! |
class Config: | ||
credentials = { | ||
'US': { | ||
'api_endpoint': 'https://bms-api.sbgenomics.com/v2', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a public repo....hard-coded urls should not be here. I think this is better passed in from the launcher/code using this repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @golharam, yes, I see.
So, we should move credentials (api endpoint, token, profile) from this repo to launcher specific config files on github.com/bmsgh/ repos (RNA, 10X, WES...) and then, in launcher.py, provide those credentials as an input when run PAML code.
Is that correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I thinks that the best thing to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
credentials, tokens, etc should be provided from the launcher.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @golharam,
I moved api endpoint, token and profile from this repo, meaning that those need be provided now as input to detect and connect methods when we call them. If we take RNA launcher.py for example those lines are going to look like this:
args.platform = PlatformFactory().detect_platform(credentials)
and
platform.connect(credentials)
where credentials is a dict (that will be defined in launcher config) with a following structure:
credentials = {
'US': {
'api_endpoint': '',
'token': '',
'profile': ''
},
'CN': {
'api_endpoint': '',
'token': '',
'profile': ''
}
}
Let me know what you think.
…tion_settings - they are not used
Hi @golharam, did you have chance to review last changes we made? Credentials are moved from this repo. |
… to None to reduce changes
Hi @golharam, Please review the changes and let me know (once you decide) whether we are going to store credentials here or on individual launcher repos (RNA, WES, etc). Based on that I'll make some adjustments to the code and finalise the #16 effort. |
Hi Ryan, we updated the code to support SB China Platform:
If you have any questions please let us know.