111 Commits

Author SHA1 Message Date
James Brooks
ea69fc9313 Merge '2.4' 2016-10-04 19:20:29 +01:00
Marius Palade
ad0954eb20 Add visibility to component groups (#2027)
Implement visibility for the components groups. Closes #1892

Add functional test that asserts a guest can only see public items.

* Fix tests not running due to hitting the Setup page.

The missing `boostrap/cachet/testing.php` file is now generated the first time tests are ran.

* Add a functional test that asserts logged in users can see all items.

Add constants for possible values for the visible column/field of the ComponentGroup model.
Code review changes.

* Add API tests for component group visibility feature.

* Implement the visibility hidden option for a component group. Fixes #1892.

Add migration for the created_by column, in component_groups table.
Add methods to the ComponentGroup and User models to be able to work with the created_by column.
Hidden component groups are no longer displayed on the index page for loggedin users.
Add functional test for the dashboard page.
Save owner on create/edit component group.
Update the API tests for Component group visibility feature.

* Replace auth() usage with app(Guard::class).

* Apply StyleCI fixes.

* Drop the hidden visibility feature and fix all tests.

Some code review fixes too.

* Rename public to visible since it's a reserved keyword. Apply StyleCI fixes and correct typo.

* Code review changes.

* Tidy up component and component groups gathering.

* Code review changes and StyleCI fixes.

* Code review changes.

* Remove extra whitespace

* Remove useless method.
2016-10-02 13:57:32 +01:00
James Brooks
8ce7e5e82e Test with different status 2016-09-29 09:52:25 +01:00
James Brooks
86013db148 Fix subscriber api. Closes #2112 2016-09-28 20:19:57 +01:00
Antoine GIRARD
1954cf26f3 Add stickied incident 2016-09-06 22:45:52 +02:00
James Brooks
6685ae96d8 Welcome all users to their status page 2016-08-23 13:09:47 +01:00
James Brooks
58802cd98d $TRAVIS_PHP_VERSION will now never be HHVM
Removed old test skip
2016-08-22 16:36:28 +01:00
Connor S. Parks
fa1b32c11a implements a modular view system 2016-08-22 16:36:01 +01:00
Connor S. Parks
a9fd973b98 unsure if this is nice, honestly 2016-08-20 13:53:29 +01:00
Connor S. Parks
445c1ed2d0 starts the modular process 2016-08-18 13:12:40 +01:00
Connor S. Parks
a7a555e989 Adds cleanup after phpunit is finished, fixes #2053 (#2055) 2016-08-13 17:05:17 +01:00
James Brooks
d7a8e9d310 Test that the commands work 2016-08-08 17:15:03 +01:00
James Brooks
e281c5d646 Only send component change email when the status changes. Fixes #1989 2016-08-07 22:50:51 +01:00
James Brooks
4a76631360 Added cachet:beacon test 2016-08-04 11:07:38 +01:00
James Brooks
9da17e7c15 Added beacon events 2016-08-04 11:06:27 +01:00
James Brooks
1559e5945d Remove setEventExpectations override 2016-08-04 11:00:25 +01:00
James Brooks
55aca1dbad Applied fixes from StyleCI
[ci skip] [skip ci]
2016-08-04 10:12:06 +01:00
James Brooks
778664b20a Added new Beacon handling code 2016-08-04 10:12:06 +01:00
James Brooks
1285d19cd4 Added missing event tests 2016-08-04 09:03:29 +01:00
Graham Campbell
b7244b7987 Added some very basic model tests 2016-07-29 14:46:02 -04:00
Graham Campbell
16189da222 Finished off tests 2016-07-29 13:05:30 -04:00
James Brooks
dcea947973 Fix metric point tests 2016-07-29 12:54:20 -04:00
James Brooks
d8ea3c59e3 Added update subscriber subscription command test 2016-07-29 12:54:20 -04:00
James Brooks
a2f8f4540e Added missing event tests 2016-07-29 12:54:20 -04:00
Graham Campbell
4031c42958 Added test existence tests 2016-07-29 12:54:20 -04:00
Graham Campbell
9dcc5d6896 Merge branch '2.3' into 2.4 2016-07-24 15:06:52 +01:00
Graham Campbell
8c273b8579 Run the new static analysis checks in the tests 2016-07-24 14:48:59 +01:00
James Brooks
e15af44449 Standardise the team member commands. Closes #1881 2016-07-21 11:49:05 +01:00
Graham Campbell
ef304950bb Updated the tests 2016-07-13 19:04:58 -07:00
James Brooks
fdfebc18fb Implement the system status api endpoint. Closes #1936 2016-07-13 14:21:57 +01:00
James Brooks
c8f7e92124 Only test the seed command 2016-06-03 10:44:02 +01:00
James Brooks
1527ec8ddc Test all app: commands 2016-06-02 18:40:51 +01:00
James Brooks
cab030237b Set an order on metrics via the API. Closes #1874 2016-06-02 10:16:23 +01:00
Graham Campbell
c03f01ca44 Added credits 2016-05-29 18:14:40 +01:00
Graham Campbell
1c10cba5fc Added more service provider tests 2016-05-28 16:19:33 +01:00
James Brooks
cc102847f9 Specify components to subscribe to via API. Closes #1685 2016-05-08 16:26:59 +01:00
James Brooks
ceb119b226 When removing a component, clean up the subscriptions. Closes #1739 2016-05-06 13:54:00 +01:00
Joseph Cohen
05bb91d2d9 Global subscribers and fix notifications 2016-05-01 16:04:43 +01:00
James Brooks
f9bc46b460 Refactored the way we store metrics 2016-04-25 20:42:00 +01:00
James Brooks
a0477b03e3 Option to auto-expand groups when components are down. Closes #1602 2016-03-10 15:01:13 +00:00
Graham Campbell
1b24cdb1c5 Improved the config system 2016-01-29 23:05:31 +00:00
James Brooks
a32f50fd5e Added a test for reporting incident with component and status 2016-01-29 16:42:04 +00:00
James Brooks
da7af1fca0 Allow component groups to be collapsed by default. Closes #1398 2016-01-29 16:02:44 +00:00
James Brooks
ac3888f7c8 Added per-component subscriptions. Closes #734 2016-01-29 15:02:28 +00:00
Graham Campbell
df5eb24efd Moved things into a bus namespace 2016-01-05 02:38:07 +00:00
Graham Campbell
934ccec329 Moved provider tests to the correct namespace 2016-01-05 02:30:37 +00:00
James Brooks
1c27cf7360 Adds the ability to set the default view in which to display metrics 2015-12-28 09:14:50 +00:00
James Brooks
751859461b Finish event tests 2015-12-26 09:44:32 +00:00
James Brooks
0ba49b2a7c Fix class name 2015-12-26 09:33:39 +00:00
James Brooks
073484076b Applied fixes from StyleCI 2015-12-25 11:10:54 -05:00