Skip to content
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

Add support for "projects" to Users config file #40

Open
2 of 4 tasks
simonv3 opened this issue Dec 21, 2015 · 5 comments
Open
2 of 4 tasks

Add support for "projects" to Users config file #40

simonv3 opened this issue Dec 21, 2015 · 5 comments

Comments

@simonv3
Copy link
Contributor

simonv3 commented Dec 21, 2015

To achieve this goal:

  • Allows user to specify a projects_path during Setup process
  • The setup.js script should recursively autoscan path for existing .json files and determine if it is a datapackage to be added to the users config
  • Make the conjuror-output.js script generate its list of projects from this value (example)
  • Make conjuror-track.js utilize projects data
@bnvk
Copy link
Owner

bnvk commented Dec 23, 2015

Heya! This is definitely something I've thought about a bit and encountered myself. What I'm thinking is the best course of action is storing key/value items in an array in the config file that keep track of "projects" on a users system- so something like

"projects": [{
  "Client Work": "/home/user/TimeTracking/datapackage.json",
  "Expenses": "/home/user/Receipts/datapackage.json"
}]

The think here is that then from the CLI a user could call conjuror projects and get a list of the items to open or run reports on, or conversely conjuror track which then the first step is picking from the "projects" the type of data one is tracking...

@simonv3
Copy link
Contributor Author

simonv3 commented Dec 23, 2015

yeah that makes a lot of sense. I think that's been missing. Then the json is a recipe indicator that could get pretty flexible as well - even to indicate the kind of questions in track?

@bnvk
Copy link
Owner

bnvk commented Dec 24, 2015

Then the json is a recipe indicator

That is precisely how I've always envisioned it and what attracted me to DataPackages- using that JSON schema to help a user pick recipes- automagically saying "this data looks like it belongs on a map, bar chart, invoice, etc..."

@bnvk bnvk changed the title while ctrack command works fine from the command line, conjuror has issues finding the right file Add support for "projects" to Users config file Jan 9, 2016
@bnvk
Copy link
Owner

bnvk commented Jan 9, 2016

I've renamed this issue and am making to-do's of the aspects of the app in which this impacts that need to accounted for when implementing:

todo list moved to original comment

@simonv3 just tagging you here so you see this, as I think this is relevant to recipes 😉

@simonv3
Copy link
Contributor Author

simonv3 commented Jan 15, 2016

So, something that's been bothering me and I'll tackle once I have some time: I want to be able to properly add a project to my config file, and I can't look at what I've already logged today (because I've been manually creating projects without creating a corresponding .json file). Noting that here because it's the most relevant place.

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

No branches or pull requests

2 participants