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

Merged
merged 10 commits into from
Jun 15, 2018
Merged

Extended schedules #729

merged 10 commits into from
Jun 15, 2018

Conversation

bjoernricks
Copy link
Contributor

Part 3

Support creating Schedules via icalendar (https://tools.ietf.org/html/rfc5545) data

@codecov
Copy link

codecov bot commented Jun 14, 2018

Codecov Report

Merging #729 into master will increase coverage by <.01%.
The diff coverage is 6.87%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #729      +/-   ##
=========================================
+ Coverage    5.65%   5.66%   +<.01%     
=========================================
  Files         767     768       +1     
  Lines       25303   25351      +48     
  Branches     5716    5722       +6     
=========================================
+ Hits         1431    1435       +4     
- Misses      21454   21485      +31     
- Partials     2418    2431      +13
Impacted Files Coverage Δ
ng/src/gmp/commands/schedules.js 13.63% <0%> (+2.92%) ⬆️
.../src/web/pages/tasks/dashboard/schedulesdisplay.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/gmp/models/schedule.js 0% <0%> (-2.82%) ⬇️
ng/src/gmp/models/event.js 8.18% <8.18%> (ø)
ng/src/web/components/form/datepicker.js 77.27% <0%> (-2.73%) ⬇️

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 10c370e...344e96e. Read the comment docs.

Copy link
Member

@timopollmeier timopollmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "Edit Schedule" dialog is sending the "create_schedule" command instead of "save_schedule".
There duration is also wrong if it's set to zero but that looks like something I should check in gvmd.

The icalendar param must contain VCALENDAR data.
When creating a new schedule expect a icalendar parameter.
All ical related code is moved to an extra model module.
Support icalendar data when creating a new schedule instead of the
legacy year, hour, duration, ... parameters.
No functionality of the ScheduleDialog has been changed yet. It just
supports converting the current data into the icalendar format.
When calling save_schedule command use the icalendar param and forward
it to gvmd.
When saving the a Schedule use the icalendar data.
Forward the id to the onSave handler to be able to decide if saving is a
create or modify/save command.
@bjoernricks bjoernricks merged commit aed60fd 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