-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support profile notion in Jira, Polarion and Superset adapter configs/integrations #19
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f8aa6cd
Draft design
stefanvogel 367440d
Add ticket ref and update design
stefanvogel b208bd5
Add token to adapter example
stefanvogel db74a3c
Fix indent
stefanvogel a2e7b83
Fix typos
stefanvogel 55b4a6a
Update design/plan
stefanvogel 18f74ca
Ignore vscode workspace files
stefanvogel dc695e4
Add pyProfileMgr dep
stefanvogel 2b410cf
Use profile in call to pyJiraCli
stefanvogel b12ce1a
Support profile in for Polarion and Superset
stefanvogel 25482c4
Ignore linter warning
stefanvogel d6281c8
Update diagram for pyProfileMgr
stefanvogel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Unified profile management (ProfileMgr component) | ||
|
||
See also [ticket reference](https://github.com/NewTec-GmbH/pyMetricCli/issues/16) for some background. | ||
|
||
## Current state | ||
|
||
### Notion of "profile" in pyJiraCli | ||
|
||
Jira login data (server/credentials/cert) can be stored as a profile, which is a directory containing .data JSON file and .cert file. | ||
Support for user/password storage in the profile shall be added with this feature as well. | ||
|
||
### Server/token and user/password config in pyMetricCli(adapter) | ||
|
||
pyMetricCli requires an adapter (project-specific ingested python config/handler), which contains direct Jira, Polarion and Superset configuration. | ||
|
||
This includes the server URL and the token (update of pyPolarionCli documentation for the latter needed), but doesn't allow for for others like cert. | ||
Currently pyMetricCli can authenticate at Jira only with token (although pyJiraCli would support user/password through CLI). | ||
So there are some discrepancies between the tools and the adapter config (which pyMetricCli uses). | ||
|
||
See [example adapter](https://github.com/NewTec-GmbH/pyMetricCli/blob/30be6a2e8777e0c7bf99063efef30ef4097a488c/examples/adapter/adapter.py). | ||
|
||
## Work items proposal | ||
|
||
* Create pyProfileMgr component: | ||
* Move profile handling (create/delete/update/list) to pyProfileMgr, which shall be used by pyJiraCli (through existing cmd_profile) and pyMetricCli (read access to profile using ProfileMgr). | ||
* Add cmd_profile to pyProfileMgr (similar to current pyJiraCli cmd_profile), to allow create/delete/update/list | ||
of profiles with a type (currently Jira, Polarion or Superset) and corresponding uniform data attributes. | ||
* Introduce "profile" notion in pyMetricCli and the adapter config: | ||
* Reference profiles with their name (check type) in the adapter config, having precedence before other config. | ||
* Decide what to do with server/token (jira_config), username/password/server/token (polarion_config) and username/password/server (superset_config) in the adapter file: | ||
* Alternative 1: Remove it (breaking change), i.e. make profiles on pyMetricCli level mandatory. | ||
* Alternative 2: Keep current jira_config/polarion_config/superset_config settings in the adapter file and allow for profile references in addition (which should have precedence). | ||
* Allow persistence of user/password in the profile data file (mandatory for Superset). There is no strict need to encrypt them as the file is stored locally in the user profile folder. | ||
|
||
## Open points | ||
|
||
* Decide between alternative 1 and 2, i.e. make profiles mandatory in pyMetricCli (removing other authentication config settings) or additional? | ||
* Resolve some discrepancies along the way: | ||
* pyJiraCli supports user/password authentication through CLI options, but the adapter file only supports token for Jira. The new profile management should allow for user/password with Jira as well. | ||
* Update pyPolarionCli documentation and example adapter for token support. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Remember to change this once the PR is merged