Commit Graph

250 Commits

Author SHA1 Message Date
Colin Darie ce143201b5
Fixed preview of email notifications 2018-09-01 10:50:39 +02:00
Colin Darie 77c26264f0
Fixed email notifications of recurrent failures 2018-09-01 10:50:28 +02:00
Colin Darie 7d5c7de7fe
Fixed the check form in error with specitic cironstances 2018-08-31 14:40:34 +02:00
Colin Darie ccde868457
Reset consecutive failures after changing domain or mode 2018-08-31 14:34:50 +02:00
Colin Darie 95b437bf3d
Don't try to validate check when we increment consecutive failures 2018-08-31 14:26:10 +02:00
Colin Darie 3aa1cc376e
Merge pull request #91 from Evolix/notifications-templates
Notifications templates
2018-08-31 10:17:10 +02:00
Colin Darie f6e8e82067
Merge pull request #88 from Evolix/output-errors-summary
Output error summary for rake task
2018-08-31 10:09:02 +02:00
Colin Darie c2cd9f5786
Removed obsolete CheckNotifications controller 2018-08-31 10:06:23 +02:00
Colin Darie cb57fee73c
Notification: optional label, enforce interval requirement 2018-08-31 10:06:22 +02:00
Colin Darie 294bb83cc2
Sync annotations 2018-08-31 10:06:22 +02:00
Colin Darie 80e3ef20a8
Notification creation from the check form 2018-08-31 10:06:21 +02:00
Colin Darie 205a32515c
Layout: added missing viewport meta 2018-08-31 10:06:21 +02:00
Colin Darie bd7784bf8d
Redirect home for signed up users to their checks 2018-08-31 10:06:21 +02:00
Colin Darie 54d3dbad12
Updated factory & policies for new notification template 2018-08-31 10:06:20 +02:00
Colin Darie 9c35dbc7a6
Notifications template CRUD 2018-08-31 10:06:16 +02:00
Colin Darie 0052b54967
Update models & tests with new notification template 2018-08-31 09:52:52 +02:00
Colin Darie 565e06cc19
[MIG] Adds a CheckNotification model, Notification becomes a template 2018-08-31 09:52:51 +02:00
Colin Darie 0f3571b3bb
Merge pull request #90 from Evolix/unsupported-whois
Manual mode for unsupported TLDs
2018-08-30 19:04:27 +02:00
Colin Darie 1ee02ae674
Merge branch 'master' into unsupported-whois 2018-08-30 18:58:24 +02:00
Jérémy Lecour fab5732b32 fix rubocop offenses 2018-08-30 18:36:26 +02:00
Jérémy Lecour 1235845e54 Add a logger to CheckProcessor to log errors for each batch of checks 2018-08-30 18:29:47 +02:00
Colin Darie affe452567
Merge pull request #87 from Evolix/minor-fixes
Minor fixes
2018-08-30 18:01:59 +02:00
Juliette Cougnoux a3d42d11d2 delete trailing spaces 2018-08-30 17:56:15 +02:00
Juliette Cougnoux 01974592d2 Add a background-color to highlight missing translations 2018-08-30 17:56:15 +02:00
Juliette Cougnoux eb2b276160 Fixed a name error for a ssl test. 2018-08-30 17:56:15 +02:00
Juliette Cougnoux f468c5e5fd Adding ssl tests in Guardfile. 2018-08-30 17:56:15 +02:00
Colin Darie 321f92b045
Merge pull request #86 from Evolix/round-robin
Adding round robin checkbox in ssl checks form and in checks table.
2018-08-30 16:58:33 +02:00
Juliette Cougnoux b5d3c957c1 Adding round robin checkbox in ssl checks form and in checks table. 2018-08-30 16:48:23 +02:00
Colin Darie 5d1fa13fba
Do not automatically mark as inactive checks for domain not found
This renders explicit the failures after X fails, and notify the user.
2018-08-29 18:27:31 +02:00
Colin Darie 7a7ef4407b
CheckProcessor: restrict scope to "auto" checks 2018-08-29 18:27:31 +02:00
Colin Darie 6ccddc6afc
Upgrade Task for setting manual mode for domain non supported 2018-08-29 18:27:30 +02:00
Colin Darie 3cbf0e2656
Enforce input of type date, enhancing UX for browser compatible.
Note: the submitted date format is iso8601 YYYY-MM-DD (as we expect), 
even if the displayed date by the browser depends of the user's browser 
locale. Theses browsers then safely ignore input placeholder.

This is why we can't display the expected date format elsewhere in the 
interface: these users will see another format as the one we expect, and 
we don't want to mislead them.
The date format is only displayed as a placeholder, for browser 
non-compatible with input of type date.
2018-08-29 18:14:16 +02:00
Colin Darie 279f384e56
Test: remove obsolete (and stupid) assertion 2018-08-29 18:14:16 +02:00
Colin Darie c540b0d612
More explicit placeholder color
Temporary workaround for #81
2018-08-29 18:14:15 +02:00
Colin Darie 09be8a38c2
Manual expiray date support for unsupported domain
Validation is made when leaving the input field with an ajax call on the
/checks/support.json path. JSON response include the normalized domain
name (more TODO) and the supported status.
UI is updated with Javascript accordingly to this response.

Closes #62
2018-08-29 18:14:15 +02:00
Colin Darie ef1229d900
Check: set mode manual/auto before saving 2018-08-29 18:14:14 +02:00
Colin Darie abaa800c97
Check#supported? for a domain (whois) 2018-08-29 18:14:14 +02:00
Colin Darie 18cccf9790
[MIG] Added checks#mode as an enum (auto, manual) 2018-08-29 18:14:13 +02:00
Colin Darie 57b24e5e29
Merge pull request #84 from Evolix/check-http-sni
check_http with --sni option
2018-08-29 18:13:44 +02:00
Colin Darie 20fd07efcb
Merge branch 'capistrano-ignore-rbenv' 2018-08-29 16:56:26 +02:00
Colin Darie d6e15cfaf3
Capistrano: remove previous .ruby-version reference 2018-08-29 16:54:17 +02:00
Colin Darie 093c5f8e44
check_http: added --sni to defaults options
Closes #82
Probably fixes #74 too ?
2018-08-29 16:51:21 +02:00
Colin Darie 70530727ca
SystemCommand: Added an explicit 255 status code when system didn't got the exit status (because of segfault, …)
Avoid silent errors.
2018-08-29 16:48:03 +02:00
Jérémy Lecour 5326dcc7aa Add a logger to check processors
Currently it is unused.
2018-08-29 12:19:05 +02:00
Jérémy Lecour 815471da76 CheckProcessor configuration is always passed
It's better to redure coupling between these classes and Rails.
It gives liberty to provide configuration and other parameters
depending on the context.
2018-08-29 12:14:34 +02:00
Jérémy Lecour cedcc08f34
Merge pull request #79 from Evolix/accept-language
Detect language from HTTP headers.

Fix #76
2018-08-14 14:26:31 +02:00
Jérémy Lecour 58d8bdd98b Use Rack::Locale to detect locale from HTTP headers 2018-08-14 14:13:59 +02:00
Gregory Colpart bcd5a02609
Merge pull request #75 from Evolix/fix-missing-configuration
Fix missing defaults checks_ssl.interval configuration key
2018-08-13 20:17:17 +02:00
Jérémy Lecour 8c3924832f
Merge pull request #78 from Evolix/issue-77
Devise fetches the from value in the custom configuration
2018-08-13 16:38:08 +02:00
Jérémy Lecour 9d0dbb81f5 Devise fetches the from value in the custom configuration 2018-08-13 16:27:49 +02:00