Skip to content

Conversation

@olsonanl
Copy link
Contributor

Hey - the main point of this commit is to change the behavior of p3-login and p3-logout to update .kbase_config as well as the .p3 config so that the stock KBase tools work properly.

There is an old fix in here for the zero-size update bug we ran into last year; I'm not sure why it did not get rolled in before ...

@cshenry
Copy link
Owner

cshenry commented Jan 29, 2016

I’m really not enamored with having the patric login changing the KBase config, as this essentially precludes one from using both PATRIC and KBase at the same time - a position that I find myself and my collaborators in quite often. The problem is, changes to the default config files persist even when one shifts the environment of the shell.

Can we have kbase tools in PATRIC configured to point to the patric config file using the environment variable instead? Aren’t all KBase tools already configured to use an environment variable for the config? Couldn’t we make the setting of this environment variable as default part of user-env.sh in the PATRIC build? This seems like a better solution that trying to have two systems with different account types sharing a common config file for login, and thus forcing users to constantly log in and out of both services...
On January 29, 2016 at 12:30:57 PM, olsonanl (notifications@github.com) wrote:

Hey - the main point of this commit is to change the behavior of p3-login and p3-logout to update .kbase_config as well as the .p3 config so that the stock KBase tools work properly.

There is an old fix in here for the zero-size update bug we ran into last year; I'm not sure why it did not get rolled in before ...

You can view, comment on, or merge this pull request online at:

  #24

Commit Summary

Fix zero-size update bug
Merge branch 'master' of https://github.com/cshenry/Workspace
Update .kbase_config when p3-login is run.
Also update .kbase_config on p3-logout.
File Changes

M lib/Bio/P3/Workspace/ScriptHelpers.pm (31)
M lib/Bio/P3/Workspace/WorkspaceImpl.pm (4)
Patch Links:

https://github.com/cshenry/Workspace/pull/24.patch
https://github.com/cshenry/Workspace/pull/24.diff

Reply to this email directly or view it on GitHub.

@cshenry
Copy link
Owner

cshenry commented Jan 29, 2016

BTW, if this is really needed and there’s no reasonable work around, I’m willing to merge this. I just wanted to register my concerns.
On January 29, 2016 at 1:11:21 PM, Chris Henry (chrisshenry@gmail.com) wrote:

I’m really not enamored with having the patric login changing the KBase config, as this essentially precludes one from using both PATRIC and KBase at the same time - a position that I find myself and my collaborators in quite often. The problem is, changes to the default config files persist even when one shifts the environment of the shell.

Can we have kbase tools in PATRIC configured to point to the patric config file using the environment variable instead? Aren’t all KBase tools already configured to use an environment variable for the config? Couldn’t we make the setting of this environment variable as default part of user-env.sh in the PATRIC build? This seems like a better solution that trying to have two systems with different account types sharing a common config file for login, and thus forcing users to constantly log in and out of both services...
On January 29, 2016 at 12:30:57 PM, olsonanl (notifications@github.com) wrote:

Hey - the main point of this commit is to change the behavior of p3-login and p3-logout to update .kbase_config as well as the .p3 config so that the stock KBase tools work properly.

There is an old fix in here for the zero-size update bug we ran into last year; I'm not sure why it did not get rolled in before ...

You can view, comment on, or merge this pull request online at:

  #24

Commit Summary

Fix zero-size update bug
Merge branch 'master' of https://github.com/cshenry/Workspace
Update .kbase_config when p3-login is run.
Also update .kbase_config on p3-logout.
File Changes

M lib/Bio/P3/Workspace/ScriptHelpers.pm (31)
M lib/Bio/P3/Workspace/WorkspaceImpl.pm (4)
Patch Links:

https://github.com/cshenry/Workspace/pull/24.patch
https://github.com/cshenry/Workspace/pull/24.diff

Reply to this email directly or view it on GitHub.

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.

3 participants