Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd UTC versions of TimeUnit #46
Conversation
jeffesp
added some commits
Mar 21, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jwoLondon
Mar 23, 2018
Member
Thanks very much for suggesting this. I had meant to add UTC time units in an earlier release so your prompt has been helpful.
Rather than add a set of another 24 types to what is already rather a cumbersome set of time unit types, I would prefer to add a single Utc tag that takes any TimeUnit as a tag. For example,
encoding
<< position X [ PName "date", PmType Temporal, PTimeUnit (Utc YearMonthDateHours) ] I've created a utc branch on the repo for you to have a look at and test. Would that work for you? If so, I can merge it into the master. Unfortunately, because we are forced to add to the TimeUnit type, this will bump the release as a major change, so ideally I'd like to wait to merge until other changes have been incorporated - specifically to have some Vega support in addition to Vega-Lite.
|
Thanks very much for suggesting this. I had meant to add UTC time units in an earlier release so your prompt has been helpful. Rather than add a set of another 24 types to what is already rather a cumbersome set of time unit types, I would prefer to add a single encoding
<< position X [ PName "date", PmType Temporal, PTimeUnit (Utc YearMonthDateHours) ] I've created a |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kachkaev
Mar 23, 2018
Member
Hi @jeffesp, thanks for this contribution!
I see you've started to make a fork with your functionality that contains a new url. etc. Could you please do it in a new branch (e.g. develop) and keep your master at 14f9ccc for now? This will make this PR mergable if @jwoLondon decides to master, but I guess GitHub does not support that.
|
Hi @jeffesp, thanks for this contribution! I see you've started to make a fork with your functionality that contains a new url. etc. Could you please do it in a new branch (e.g. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kachkaev
Mar 23, 2018
Member
Oops – commented simultaneously with @jwoLondon
@jeffesp if you're fine with the new functionality in a different branch, no need to do anything – we'll simply close this PR later on.
|
Oops – commented simultaneously with @jwoLondon @jeffesp if you're fine with the new functionality in a different branch, no need to do anything – we'll simply close this PR later on. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jeffesp
Mar 23, 2018
The changes in the utc branch look great. I agree that the extra types were very cumbersome. Thanks for the prompt reply here and feel free to drop this merge request whenever.
jeffesp
commented
Mar 23, 2018
|
The changes in the |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jwoLondon
Mar 23, 2018
Member
OK, that's good to know - thanks. If you want to use the utc branch locally for now I don't have any plans for further changes to the API for dates in the next release, which realistically won't be for a few weeks yet as we work on other additions.
|
OK, that's good to know - thanks. If you want to use the |
jeffesp commentedMar 21, 2018
This isn't the prettiest change, but it seems to work in my local testing.
I'm unable to generate accurate graphs without it.