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

separate scan modules for daily execution #66

Merged
merged 5 commits into from
May 1, 2020
Merged

Conversation

stklcode
Copy link
Contributor

@stklcode stklcode commented Apr 25, 2020

Up to now, the theme template check was mandatory for cron execution.
It is now possible to enable only Safe Browsing or checksum verification for daily execution.

The JS has been modified to disable only the relevant inputs:

  • safe browsing key is disabled, if safe browsing is disabled
  • email notification is disabled, if any of the 3 modules is enabled

Before changing the JS, I've updates the code style and comments. Sorry for mixing this up, but I didn't want to write "old style" first or wait for another PR to be merged first.


Two further points I didn't address:

  • Obviously the option cronjob_enable is no longer what is used to be, as it just enabled the theme integrity check (yet backwards compatible without any additional update mechanism)
  • I kind of dislike clearing fields like safe browsing key or email address when parent option is disabled. But that's also legacy behavior I didn't want to just change.

Up to now, the theme template check was mandatory for cron execution.
It is now possible to enable only Safe Browsing or checksum verification
for daily execution.
@krafit krafit requested a review from bueltge April 29, 2020 08:28
The method now takes an options array as input parameter to work on.
This makes the method single source of truth for the cronjob status.
@krafit
Copy link
Member

krafit commented Apr 30, 2020

Thank you, @stklcode❤️
Could you please add these changes to the changelog, before we merge this PR?

@krafit krafit merged commit 419f2af into master May 1, 2020
@krafit krafit deleted the feature/separate-scans branch May 1, 2020 07:51
@stklcode stklcode added this to the 1.4.0 milestone May 1, 2020
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.

3 participants