-
Notifications
You must be signed in to change notification settings - Fork 21
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
[O2B-532] Use time range filter for run start stop #1482
base: main
Are you sure you want to change the base?
[O2B-532] Use time range filter for run start stop #1482
Conversation
7d740bf
to
30e512c
Compare
959ebe0
to
0b8afc8
Compare
0b8afc8
to
c18389f
Compare
7ce8761
to
350e886
Compare
…ime-range-filter-for-run-start-stop
import { timeRangeFilter } from '../common/filters/timeRangeFilter.js'; | ||
|
||
let today = new Date(); | ||
today.setMinutes(today.getMinutes() - today.getTimezoneOffset()); | ||
[today] = today.toISOString().split('T'); |
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.
What's the purpose of this?
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.
Probably debug garbage, removed
ret.date = formatTimestampForDateTimeInput(min + MILLISECONDS_IN_ONE_DAY, this._seconds).date; | ||
} else { |
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.
maybe minTimestamps
or something instead of min
, the same with max
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.
Right, done
const ret = {}; | ||
|
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.
abbr.
} | ||
if (this.o2endFilterTo !== '') { | ||
this.activeFilters.push('O2 End to'); | ||
} | ||
if (this._runDurationFilter !== null) { |
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.
This method is dead code
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.
Indeed, deleted
* @return {EorReasonFilterModel} the run type filtering model | ||
*/ | ||
get eorReasonsFilterModel() { | ||
return this._eorReasonsFilterModel; |
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.
I think that you can also rename the field to singular
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.
I just fixed the docblock, this would be a bit too much refactoring
test/public/defaults.js
Outdated
/** | ||
* Return the selector for all the inputs composing a period inputs selectors | ||
* |
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.
Return selectors for all inputs composing a period input ?
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.
Fixed
…ime-range-filter-for-run-start-stop
I have a JIRA ticket
Notable changes for users: