-
Notifications
You must be signed in to change notification settings - Fork 14k
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 play slider to screengrid #4647
Add play slider to screengrid #4647
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4647 +/- ##
=========================================
- Coverage 72.63% 72.6% -0.04%
=========================================
Files 205 206 +1
Lines 15403 15418 +15
Branches 1183 1184 +1
=========================================
+ Hits 11188 11194 +6
- Misses 4212 4221 +9
Partials 3 3
Continue to review full report at Codecov.
|
|
||
const pattern = new RegExp('^(\\d+)?\\s*(.*)$'); | ||
|
||
export const parseTimeGrain = function (timeGrain) { |
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.
Wondering if we can have a single authority on time grain parsing between the frontend & backend. Backend has utils.parse_human_datetime
leveraging the parsedatetime
lib. Just worried there's divergence into what the backend and frontend understand.
The backend could return its understanding of granularity to be available to the frontend in the payload. This may require a bit more thinking.
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.
Yeah, that would definitely be better. We can pass an ISO 8601 duration as a string. Let me take a look at it.
@mistercrunch, I rebased this and now it uses the ISO duration parsing. |
* Improved granularity parsing * Add unit tests * Explicit cast to int * Screengrid play slider * Clean code * Refactor common code
* Improved granularity parsing * Add unit tests * Explicit cast to int * Screengrid play slider * Clean code * Refactor common code
* Improved granularity parsing * Add unit tests * Explicit cast to int * Screengrid play slider * Clean code * Refactor common code
Note: this is based on #4623.