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

Extended schedules #731

Merged
merged 5 commits into from
Jun 15, 2018
Merged

Extended schedules #731

merged 5 commits into from
Jun 15, 2018

Conversation

bjoernricks
Copy link
Contributor

Part 4

This simplifies the renderDuration method by using the already available
moment translations and duration formats.
Drop the param durationUnit and expect a moment duration as duration.
There is no need to pass hour and minute as params. Leave this date
calculation to the caller of Event.fromData.
The duration prop is validated to be a moment duration.
The duration will be calculated from an end date and can contain a
combination of time units e.g. 1 hour and 5 minutes now.
@codecov
Copy link

codecov bot commented Jun 15, 2018

Codecov Report

Merging #731 into master will increase coverage by 0.01%.
The diff coverage is 7.14%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #731      +/-   ##
=========================================
+ Coverage    5.67%   5.68%   +0.01%     
=========================================
  Files         768     768              
  Lines       25354   25337      -17     
  Branches     5724    5702      -22     
=========================================
+ Hits         1438    1440       +2     
+ Misses      21485   21477       -8     
+ Partials     2431    2420      -11
Impacted Files Coverage Δ
ng/src/web/pages/schedules/render.js 0% <0%> (ø) ⬆️
ng/src/web/pages/schedules/component.js 0% <0%> (ø) ⬆️
ng/src/gmp/models/event.js 8.73% <0%> (+0.55%) ⬆️
ng/src/web/pages/schedules/dialog.js 0% <0%> (ø) ⬆️
ng/src/web/utils/proptypes.js 81.81% <33.33%> (-5.94%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aed60fd...8d98f7c. Read the comment docs.

@bjoernricks bjoernricks merged commit 6e5d865 into greenbone:master Jun 15, 2018
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

Successfully merging this pull request may close these issues.

2 participants