Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Implement initial setup wizard #3

Closed
sotcha opened this issue Jun 19, 2020 · 5 comments · Fixed by #8
Closed

Implement initial setup wizard #3

sotcha opened this issue Jun 19, 2020 · 5 comments · Fixed by #8
Assignees
Labels
enhancement New feature or request

Comments

@sotcha
Copy link
Collaborator

sotcha commented Jun 19, 2020

We need to add settings/configuration functionality where it will store:

  • jira endpoint
  • user credentials
    • username
    • user password , this can be plain text (maybe as phase 1) or encrypted
@billp
Copy link
Owner

billp commented Jun 19, 2020

@sotcha Yes this is the next step, I will do this

@billp billp self-assigned this Jun 19, 2020
@sotcha sotcha added the enhancement New feature or request label Jun 19, 2020
@billp
Copy link
Owner

billp commented Jun 19, 2020

@sotcha I'm thinking to create a wizard to generate the configuration file (yml) automatically. It will ask the following:

  • JIRA Server URL
  • What time do you start your work day? (e.g. 09:00)
  • What time does your work day end? (e.g. 18:00)
  • Do you have any issues you log everyday? (e.g. daily standup) (repeat for N issues)
  • Login credentials (it will perform login to check if they are correct)

Let me know if you have any thoughts.

@sotcha
Copy link
Collaborator Author

sotcha commented Jun 19, 2020

I think for the day zero that there is no need for a wizard. A simple conf.yml can keep jira URL and credentials, which are essential to work.

So I think that we have:

Essentials - save it to config.yml

  • JIRA Server URL
  • Login credentials

User preferences - save it prefs.yml/db/whatever, also these may change

  • start/stop of the work
  • repeatable issue

For the day zero , I think that these can be simple files into the project directory (maybe a config dir) and as an improvement a user config dir can be user (like ~/.config to user)

@billp
Copy link
Owner

billp commented Jun 20, 2020

Sounds good, I agree to have separate yaml files for essentials and users prefs. But I think start/end time is also essential because it needs to know the total hours to make the calculations. Also the essentials will be configured with the following command:

ijra-logwork setup

What do you think?

@sotcha
Copy link
Collaborator Author

sotcha commented Jun 20, 2020

Yes, probably start/stop is essential.

And the setup mode can be the initial "wizard".

@billp billp changed the title Add settings functionality Implement settings functionality Jun 21, 2020
@billp billp changed the title Implement settings functionality Implement initial setup wizard Jun 21, 2020
@billp billp assigned billp and unassigned billp Jun 22, 2020
billp added a commit that referenced this issue Jun 23, 2020
@billp billp linked a pull request Jun 23, 2020 that will close this issue
@billp billp closed this as completed in #8 Jun 23, 2020
billp added a commit that referenced this issue Jun 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants