1789 Commits

Author SHA1 Message Date
A
9af7978d68 Merge branch '2.4' into bugs-in-the-average-metrics-graph 2018-01-17 09:52:04 +01:00
A
fc2e6f4062 Improves sorting of metric's labels.
When selecting the time of metric's points only the time was selected,
not the date. The issue with this is mainly in the view "Last 12 hours".
Example:
It's 11:10 am and I choose the "Last 12 hours" view, the metrics points
will be from 23:00 yesterday to 11:00 am today.
When giving all these datas and labels to ChartJS, it sorts the points
by label from lower to highter. It means 23:00 (from yesterday) will be
after the datas of today, it doesn't have sense.

To fix it, I've added in the repositories the date in addition to the
time. So it's no longer 11:00 that is selected but 2018-01-15 11:00.
I've updated the Metric vue in order to cut the label when displaying so
it doesn't change the displaying.
Because there are metric views that are based on date but not time,
there is a condition in the Metric vue to cut the string only if the
time is present.

Related to CachetHQ/Cachet#2848
2018-01-15 11:28:41 +01:00
A
d8208be179 Prevents to select metric points in future.
The metrics had problem with the points, if I post/save a metric point
that is created in the future, it was selected.

Example:
It is 10:00 am, I post or save a metric point and it's 'created at'
10:30 am. Using the "Last 12 hours" the metric point would be selected.

This update is applied on all the SQL queries, on minutes, hours, days.

Related to CachetHQ/Cachet#2848
2018-01-15 11:13:57 +01:00
Nico Stapelbroek
fe90f1aa7d Remove indentation inside blade conditionals 2018-01-14 22:29:06 +01:00
Nico Stapelbroek
1da6764b63 Fetch updates using the eloquent relationship instead of re-querying 2018-01-14 22:17:26 +01:00
Nico Stapelbroek
55f6ee7dc7 Fix styleci violations 2018-01-13 18:32:02 +01:00
Nico Stapelbroek
569b15000a Implement edit IncidentUpdate feature 2018-01-13 17:43:35 +01:00
Nico Stapelbroek
700c936662 Restore add incident update functionality 2018-01-13 15:47:31 +01:00
Nico Stapelbroek
532d8a20c5 Create an incident updates overview page 2018-01-13 15:42:02 +01:00
James Brooks
42fd84ea79 Fixes #2859 2018-01-11 21:43:01 +00:00
James Brooks
8746412467 Update language files 2017-12-03 17:47:45 +00:00
James Brooks
8e1c9801fb When disabling third-party deps, don't use Gravatar.
Fixes #2810
2017-12-03 17:34:59 +00:00
James Brooks
2b2968bca5 Smarter monolog integration. Fixes #2823 2017-12-03 17:02:01 +00:00
James Brooks
e95fc790fe Last hour only needs 60 points... 2017-12-03 11:41:37 +00:00
James Brooks
a7c00626e6 Use the default view for metrics, as expected 2017-12-03 11:41:37 +00:00
James Brooks
e2b73e7bd4 Fix undefined variable 2017-10-20 17:22:01 +01:00
James Brooks
11a5357ea9 Fixes #2759 - Days now generate when only 1 2017-10-18 20:01:42 +01:00
Luis Henrique Mulinari
f0f97ccf86 Fix tests 2017-10-11 21:35:36 +02:00
Luis Henrique Mulinari
7e40e5c9a3 Fix coding standard 2017-10-11 21:26:15 +02:00
Luis Henrique Mulinari
968bc6a3ce Code clean up. Remove some duplicate keys; Remove some unused parameters; Fix some FQCN; 2017-10-11 21:19:07 +02:00
James Brooks
e426eff98c Split routes 2017-10-01 11:30:26 +01:00
James Brooks
e13d6799d5 Apply fixes from StyleCI (#2743)
[ci skip] [skip ci]
2017-09-30 11:29:42 +01:00
James Brooks
3ea1e959f9 Fix metrics not displaying. Closes #2737 2017-09-30 11:29:12 +01:00
Koen De Causmaecker
e69169e7c7 Recursive search for .php route files 2017-09-22 14:59:07 +02:00
Koen De Causmaecker
887ed179e8 Do not rely on GLOB_BRACE as it is not available on musl based systems 2017-09-21 11:00:41 +02:00
James Brooks
b5f6c239b4 Fixes #2730 2017-09-19 14:32:44 +01:00
James Brooks
1dd30613eb Merge pull request #2724 from CachetHQ/fix-dashboard-api-routes
Revert "Dashboard API routes are not meant for the browser"
2017-09-15 07:46:54 +01:00
James Brooks
f605554a88 Enable Amazon SES during setup 2017-09-14 19:40:30 +01:00
James Brooks
933dcbbc27 Revert "Dashboard API routes are not meant for the browser"
This reverts commit 8fcef7b711423816260aba7669283fe2840f7893.
2017-09-14 19:35:42 +01:00
James Brooks
7cfcf5e280 Fixes #2677 2017-09-09 13:16:50 +01:00
jvictor
6330f8a2fb added auto-refresh on master status page 2017-08-31 16:09:27 +02:00
Graham Campbell
613b7445fb Apply fixes from StyleCI (#2684)
[ci skip] [skip ci]
2017-08-12 12:36:06 +01:00
James Brooks
4091b910ff Update docblocks 2017-07-27 20:20:08 -04:00
James Brooks
5b63bcf0c3 Merge pull request #2661 from CachetHQ/fix-dashboard-api-routes
Dashboard API routes are not meant for the browser
2017-07-26 14:23:44 -04:00
James Brooks
6c84d8965e Merge pull request #2662 from CachetHQ/controller-resources
Rename controller methods following Laravel's resource controllers
2017-07-26 14:23:34 -04:00
James Brooks
77c7fb39ad Merge pull request #2663 from CachetHQ/cache-settings
Statically cache settings
2017-07-26 14:23:23 -04:00
James Brooks
58717e0e05 Merge pull request #2664 from CachetHQ/logout-redirect
Use cachet_redirect helper when logging out
2017-07-26 14:23:12 -04:00
James Brooks
219ba8608c Cache the user into a variable 2017-07-26 08:42:39 -04:00
James Brooks
26f0f3f50c Use cachet_redirect helper when logging out 2017-07-26 08:41:52 -04:00
James Brooks
8fcef7b711 Dashboard API routes are not meant for the browser 2017-07-26 08:32:37 -04:00
James Brooks
85c10f1436 Rename controller methods following Laravel's resource controllers 2017-07-26 08:31:11 -04:00
James Brooks
8c1974ae56 Statically cache settings 2017-07-26 08:11:37 -04:00
James Brooks
eb19cf4dde Merge pull request #2642 from CachetHQ/incident-components
Create incident_components table
2017-07-25 14:42:07 -04:00
James Brooks
7622a8f474 Add status_id column 2017-07-25 14:40:43 -04:00
James Brooks
d06027b2fa Apply fixes from StyleCI (#2655)
[ci skip] [skip ci]
2017-07-25 02:48:31 +01:00
James Brooks
e13680d4be Send more info to Beacon 2017-07-24 21:48:05 -04:00
James Brooks
c1f298361b Create exception interfaces 2017-07-24 21:48:05 -04:00
James Brooks
188eb00ca8 Apply fixes from StyleCI
[ci skip] [skip ci]
2017-07-18 21:52:51 +00:00
James Brooks
7bfba072bb Create incident_components table 2017-07-18 22:52:49 +01:00
James Brooks
964eaa3ce0 Renamed Scheduled Maintenance to just Maintenance. Closes #2516 2017-07-18 22:35:20 +01:00