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 #724

Merged
merged 13 commits into from
Jun 13, 2018
Merged

Extended schedules #724

merged 13 commits into from
Jun 13, 2018

Conversation

bjoernricks
Copy link
Contributor

Part 2

  • Improve recurrence information
  • Update Next Scheduled Task Chart to use ical event data
  • Update ScheduleIcon to use ical event data
  • Fix timezone selection when editing a Schedule
  • Update editing a Schedule to use ical event data

The ical.Recur instance will allow access to the number of recurrences
(count) of an event. In future it will allow access to weekday
recurrences too.
Add a property to the schedule event to get the duration in seconds.
Add a method to Event that calculates the next dates for a recurrence of
an Event until some date in the future.
A recurrence object has a freq (frequency) property. This property
returns a string value. Adding a constant object allow to compare the
freqencies more easily.
This will allow to use a different time range for the schedule chart.
Use the parsed ical event data for rendering the next schedules tasks
chart.
Fix setting the timezone when editing an existing Schedule.
The ical events (at least libical and ical.js) don't support months for
durations. Therefore don't allow to select the month unit.
Currently this doesn't work because gsad/gvmd still doesn't return ical
data for task schedules by default. But this will change in future.
@codecov
Copy link

codecov bot commented Jun 13, 2018

Codecov Report

Merging #724 into master will decrease coverage by <.01%.
The diff coverage is 0.92%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #724      +/-   ##
=========================================
- Coverage    5.61%    5.6%   -0.01%     
=========================================
  Files         782     782              
  Lines       25398   25431      +33     
  Branches     5697    5700       +3     
=========================================
  Hits         1425    1425              
- Misses      21545   21573      +28     
- Partials     2428    2433       +5
Impacted Files Coverage Δ
ng/src/web/pages/tasks/actions.js 0% <ø> (ø) ⬆️
ng/src/web/components/chart/schedule.js 0% <0%> (ø) ⬆️
ng/src/web/components/form/timezoneselect.js 0% <0%> (ø) ⬆️
ng/src/web/pages/schedules/render.js 0% <0%> (ø) ⬆️
ng/src/web/pages/schedules/component.js 0% <0%> (ø) ⬆️
ng/src/web/pages/schedules/dialog.js 0% <0%> (ø) ⬆️
ng/src/web/pages/tasks/icons/scheduleicon.js 0% <0%> (ø) ⬆️
.../src/web/pages/tasks/dashboard/schedulesdisplay.js 0% <0%> (ø) ⬆️
ng/src/gmp/models/schedule.js 2.81% <2.7%> (-1.73%) ⬇️
... and 2 more

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 1cea637...c51088c. Read the comment docs.

@bjoernricks bjoernricks merged commit b524594 into greenbone:master Jun 13, 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