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

Nested activities in config #6

Open
M2WZ opened this issue Jan 1, 2022 · 2 comments
Open

Nested activities in config #6

M2WZ opened this issue Jan 1, 2022 · 2 comments

Comments

@M2WZ
Copy link

M2WZ commented Jan 1, 2022

Hi, it would be nice to have a way to have nesting in the config file, e.g.

{"activityGroups":{
  "Exercise":{
    "Outdoor":[
      "Hiking",
      "Jogging"
    ],
    "Indoor":[
      "Yoga",
      "Workout"
    ]
  }
}}

Would it be possible to add something like this or is it already implemented in another way?

@artnc
Copy link
Owner

artnc commented Jan 1, 2022

Interesting idea. Would you expect all of these to be charted as Exercise?

Not supported at the moment, but one possible way to express this without changing the format:

{"activityGroups":{
  "Exercise":[
    "Outdoor",
    "Indoor"
  ],
  "Outdoor":[
    "Hiking",
    "Jogging"
  ],
  "Indoor":[
    "Yoga",
    "Workout"
  ]
}}

@M2WZ
Copy link
Author

M2WZ commented Jan 12, 2022

Would you expect all of these to be charted as Exercise?

Yup

Not supported at the moment, but one possible way to express this without changing the format:

Oh wow, didn't think of that. That would work just fine too, thanks! Maybe you could add this to the example in the app?

I do have another question now: is it possible to have something like this?

{
  "activityGroups": {
    "Exercise": [
      "Outdoor",
      "Indoor"
    ],
    "Outdoor": [
      "Hiking",
      "Lifting"
    ],
    "Indoor": [
      "Yoga",
      "Lifting"
    ]
  }
}

Just an example, but it is about having 2 same things in different places, so you could do both (Exercise::)Outdoor::Lifting and (Exercise::)Indoor::Lifting.
Would something like this be possible?

Thank you for replying so quickly, sorry that I replied so late.

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