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

Update from upstream repo CachetHQ/Cachet #1

Merged
merged 288 commits into from
Mar 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
288 commits
Select commit Hold shift + click to select a range
604dd77
New translations cachet.php (Portuguese)
CachetBot Nov 19, 2018
475cc40
New translations cachet.php (Polish)
CachetBot Nov 19, 2018
344d20b
New translations cachet.php (Romanian)
CachetBot Nov 19, 2018
9f3309a
New translations cachet.php (Japanese)
CachetBot Nov 19, 2018
a3097ba
New translations cachet.php (Korean)
CachetBot Nov 19, 2018
e08efdd
New translations cachet.php (Norwegian)
CachetBot Nov 19, 2018
7a5f4c1
New translations forms.php (Norwegian)
CachetBot Nov 19, 2018
626b602
New translations cachet.php (Persian)
CachetBot Nov 19, 2018
ac02e26
New translations cachet.php (Russian)
CachetBot Nov 19, 2018
3c298fd
New translations cachet.php (Ukrainian)
CachetBot Nov 19, 2018
85aaa99
New translations cachet.php (Vietnamese)
CachetBot Nov 19, 2018
dd2cd22
New translations cachet.php (Zulu)
CachetBot Nov 19, 2018
97b7ec1
New translations forms.php (Zulu)
CachetBot Nov 19, 2018
6ec9326
New translations cachet.php (Estonian)
CachetBot Nov 19, 2018
7c3d773
New translations cachet.php (Spanish)
CachetBot Nov 19, 2018
6cfa12a
New translations cachet.php (Swedish)
CachetBot Nov 19, 2018
ab1b8ea
New translations cachet.php (Thai)
CachetBot Nov 19, 2018
8f44ec8
New translations cachet.php (Turkish)
CachetBot Nov 19, 2018
d59c394
New translations cachet.php (Chinese Traditional)
CachetBot Nov 19, 2018
7001158
New translations cachet.php (Czech)
CachetBot Nov 19, 2018
43f120a
New translations cachet.php (Danish)
CachetBot Nov 19, 2018
4e00dc4
New translations cachet.php (Dutch)
CachetBot Nov 19, 2018
ea5b6b5
New translations forms.php (Dutch)
CachetBot Nov 19, 2018
73b1a47
New translations forms.php (Chinese Simplified)
CachetBot Nov 19, 2018
fd5874b
New translations cachet.php (Arabic)
CachetBot Nov 19, 2018
7ec2e1f
New translations cachet.php (Albanian)
CachetBot Nov 19, 2018
78ae8f2
New translations cachet.php (Catalan)
CachetBot Nov 19, 2018
7840353
New translations cachet.php (Chinese Simplified)
CachetBot Nov 19, 2018
e6368e3
New translations cachet.php (Hebrew)
CachetBot Nov 19, 2018
1bef5c3
New translations cachet.php (Hungarian)
CachetBot Nov 19, 2018
cfa8305
New translations cachet.php (Indonesian)
CachetBot Nov 19, 2018
9fbee51
New translations cachet.php (Italian)
CachetBot Nov 19, 2018
c007ca6
New translations cachet.php (Greek)
CachetBot Nov 19, 2018
1c2888f
New translations cachet.php (English)
CachetBot Nov 19, 2018
ab1117f
New translations cachet.php (Finnish)
CachetBot Nov 19, 2018
610f4aa
New translations cachet.php (French)
CachetBot Nov 19, 2018
4674eff
New translations cachet.php (German)
CachetBot Nov 19, 2018
89debac
Merge pull request #3332 from bnahin/patch-2
jbrooksuk Nov 19, 2018
05f9217
Merge pull request #9 from CachetHQ/2.4
sideffect0 Nov 20, 2018
4a6fd7d
Merge pull request #3223 from stobbsm/2.4
jbrooksuk Nov 23, 2018
6feed9e
Fix configuring postgres leads to wrong database driver key
nstapelbroek Nov 25, 2018
4fb2f3e
Add warning when setting up localhost with mysql driver
nstapelbroek Nov 25, 2018
2750505
Merge pull request #3341 from nstapelbroek/fix/postgress-driver-durin…
jbrooksuk Nov 25, 2018
e6fc6f3
Explicitly set the port number when not using traditional ports
nstapelbroek Nov 25, 2018
3d632a4
Add support for empty values in the persistEnv method
nstapelbroek Nov 25, 2018
05d6af9
Merge pull request #3340 from nstapelbroek/feature/configure-socket-w…
jbrooksuk Nov 25, 2018
b78c73d
[Security] Bump url-parse from 1.4.1 to 1.4.4
dependabot-support Nov 26, 2018
86f0a80
Merge pull request #10 from CachetHQ/2.4
sideffect0 Nov 26, 2018
26d65a0
Merge pull request #3344 from CachetHQ/dependabot/npm_and_yarn/url-pa…
jbrooksuk Nov 26, 2018
cb1da22
Merge pull request #11 from CachetHQ/2.4
sideffect0 Nov 27, 2018
76569f4
Use PHP Debugger(phpdbg) for PHPUnit to speed up CI
PeterDaveHello Nov 30, 2018
a7789dc
Merge pull request #3347 from PeterDaveHelloKitchen/speedup-travis-ci
jbrooksuk Dec 1, 2018
80d0e6f
Merge pull request #12 from CachetHQ/2.4
sideffect0 Dec 1, 2018
5433e13
Improve database performance by removing duplicated queries
AdrienPoupa Dec 7, 2018
cb9d9e4
StyleCI
AdrienPoupa Dec 7, 2018
1068d72
Eager load user on the incident page not to query twice
AdrienPoupa Dec 7, 2018
7fb6384
Eager load group on the dashboard/components page not to query twice
AdrienPoupa Dec 7, 2018
2c79027
Improve database performance by removing duplicated queries
AdrienPoupa Dec 7, 2018
e527092
StyleCI
AdrienPoupa Dec 7, 2018
201322b
Resolve #3269
MarcHagen Oct 9, 2018
5f1dfc6
Resolve #3288
MarcHagen Dec 16, 2018
cddeac0
Merge pull request #3363 from TakeMeNL/bugfix/3288
jbrooksuk Dec 17, 2018
93f957f
New translations cachet.php (Swedish)
CachetBot Dec 17, 2018
2edfee3
New translations dashboard.php (Swedish)
CachetBot Dec 17, 2018
84fd584
Merge pull request #3362 from TakeMeNL/bugfix/3269
jbrooksuk Dec 18, 2018
a01d7d4
Merge pull request #3342 from nstapelbroek/feature/explicit-port-numbers
jbrooksuk Dec 27, 2018
5db11d5
Merge pull request #3334 from CachetHQ/l10n_2.4
jbrooksuk Dec 27, 2018
6d8a60d
Apply fixes from StyleCI
jbrooksuk Dec 27, 2018
98edf82
Update deps
jbrooksuk Dec 27, 2018
34e15b2
Drop support for RSS & Atom feeds.
jbrooksuk Dec 27, 2018
b96c36f
Update Blade files
jbrooksuk Dec 27, 2018
df5ade6
Merge pull request #3287 from sideffect0/2.4
jbrooksuk Dec 27, 2018
0893985
Don't expose current mail password
jbrooksuk Dec 27, 2018
3763a86
Merge pull request #3368 from CachetHQ/drop-feeds
jbrooksuk Dec 27, 2018
fc80a6f
Rebuilt composer.lock
GrahamCampbell Dec 28, 2018
d6206ea
Bump laravolt/avatar from 1.8.1 to 2.1.0
dependabot-support Dec 28, 2018
2dd00f6
Bump laravel-mix-purgecss from 2.2.0 to 3.0.0
dependabot-support Dec 28, 2018
555edd8
Upgraded JS deps and rebuilt assets
GrahamCampbell Dec 28, 2018
bd413c1
Merge pull request #3371 from CachetHQ/js-deps
GrahamCampbell Dec 28, 2018
305872b
Merge pull request #3323 from CachetHQ/dependabot/composer/laravolt/a…
jbrooksuk Dec 28, 2018
64ba300
GitHub now supports transferring an issue
jbrooksuk Dec 28, 2018
569323d
Remove unused $config property
jbrooksuk Dec 28, 2018
ea65131
Apply fixes from StyleCI
jbrooksuk Dec 28, 2018
5ffb5bc
Upgraded to Laravel 5.7
GrahamCampbell Dec 28, 2018
e764023
Deal with settings read/write errors properly
GrahamCampbell Dec 28, 2018
4c65639
Apply fixes from StyleCI
CachetBot Dec 28, 2018
b18a8df
Commit new vendor files
GrahamCampbell Dec 28, 2018
3ab5393
Merge branch 'laravel-upgrade' of https://github.com/CachetHQ/Cachet …
GrahamCampbell Dec 28, 2018
5b90a45
Apply fixes from StyleCI
CachetBot Dec 28, 2018
3d216fb
Fixed up vendor views
GrahamCampbell Dec 28, 2018
12c22c0
Merge pull request #3372 from CachetHQ/laravel-upgrade
GrahamCampbell Dec 28, 2018
3fca9e6
Updated doctrine and emoji packages
GrahamCampbell Dec 28, 2018
59df070
Merge pull request #3377 from CachetHQ/upgrades
GrahamCampbell Dec 28, 2018
c9bc2f5
Set the mail username optional in setup
nalysius Oct 20, 2018
cecf894
Let the mail_username required except for sendmail
nalysius Dec 28, 2018
e857143
Merge pull request #3294 from anthonybocci/setup-requires-username-3244
jbrooksuk Dec 29, 2018
a570dcb
Apply fixes from StyleCI
jbrooksuk Dec 29, 2018
3428868
Upgraded dependencies following XSS vulnerability discovery
GrahamCampbell Dec 30, 2018
9d4193b
Merge pull request #3382 from CachetHQ/security-patches
GrahamCampbell Dec 30, 2018
468e4e3
Use safer markdown defaults
GrahamCampbell Dec 30, 2018
b554bc8
[Security] Bump twig/twig from 1.36.0 to 2.6.0
dependabot-support Dec 30, 2018
6d1c1c5
New translations forms.php (Dutch)
CachetBot Dec 30, 2018
d05b137
New translations cachet.php (German)
CachetBot Dec 30, 2018
052661c
New translations pagination.php (German)
CachetBot Dec 30, 2018
7d5bb03
Merge pull request #3383 from CachetHQ/markdown-defaults
jbrooksuk Dec 30, 2018
9970214
Merge pull request #3384 from CachetHQ/l10n_2.4
jbrooksuk Dec 30, 2018
0ad12ae
Apply fixes from StyleCI
jbrooksuk Dec 30, 2018
54f24b0
Bump doctrine/dbal from 2.9.1 to 2.9.2
dependabot-support Dec 31, 2018
fc35c9e
Bump laravel-mix and laravel-mix-purgecss
dependabot-support Jan 1, 2019
123c4a4
Bump LICENSE year
jbrooksuk Jan 1, 2019
5e53337
Merge pull request #3394 from CachetHQ/license-2019
jbrooksuk Jan 1, 2019
5986e93
Merge pull request #3387 from CachetHQ/dependabot/composer/doctrine/d…
jbrooksuk Jan 1, 2019
5aa0106
New translations validation.php (Dutch)
CachetBot Jan 1, 2019
0be2601
Link to Exascale sponsor
jbrooksuk Jan 1, 2019
687d963
Extra dependencies were required
jbrooksuk Jan 1, 2019
0a479ce
Merge pull request #3392 from CachetHQ/dependabot/npm_and_yarn/larave…
jbrooksuk Jan 1, 2019
c16ea65
Revert "Bump laravel-mix and laravel-mix-purgecss"
jbrooksuk Jan 1, 2019
f24171e
Merge pull request #3397 from CachetHQ/revert-3392-dependabot/npm_and…
jbrooksuk Jan 1, 2019
8e08390
Remove Gulp and update requirements lists
jbrooksuk Jan 1, 2019
589c171
Merge pull request #3396 from CachetHQ/dep-changes
jbrooksuk Jan 1, 2019
d07bb06
Merge pull request #3370 from CachetHQ/dependabot/composer/twig/twig-…
jbrooksuk Jan 1, 2019
4162161
Use Twig namespaces
jbrooksuk Jan 1, 2019
1505da4
Move overview up
jbrooksuk Jan 1, 2019
affa397
Merge pull request #3395 from CachetHQ/l10n_2.4
jbrooksuk Jan 1, 2019
f01e999
Add documentation
AdrienPoupa Jan 7, 2019
8190508
Improve database performance by removing duplicated queries
AdrienPoupa Jan 7, 2019
af94758
Typo in phpdoc
AdrienPoupa Jan 7, 2019
7d5704b
Revert "Typo in phpdoc"
AdrienPoupa Jan 7, 2019
88ad1f7
Typo in phpdoc
AdrienPoupa Jan 7, 2019
5243369
Bump symfony/dom-crawler from 4.2.1 to 4.2.2
dependabot-support Jan 7, 2019
e89c627
Bump aws/aws-sdk-php from 3.82.3 to 3.82.6
dependabot-support Jan 7, 2019
5f7b8cd
Merge pull request #3407 from CachetHQ/dependabot/composer/aws/aws-sd…
jbrooksuk Jan 7, 2019
547773f
Merge pull request #3406 from CachetHQ/dependabot/composer/symfony/do…
jbrooksuk Jan 7, 2019
73eea81
Merge pull request #3357 from AdrienPoupa/duplicate-queries
jbrooksuk Jan 7, 2019
7c0ea27
New translations forms.php (Dutch)
CachetBot Jan 7, 2019
0c94ca8
New translations dashboard.php (Dutch)
CachetBot Jan 7, 2019
9416149
New translations validation.php (Dutch)
CachetBot Jan 7, 2019
c6dc5f0
New translations cachet.php (Dutch)
CachetBot Jan 7, 2019
88ade80
Bump fideloper/proxy from 4.0.0 to 4.1.0
dependabot-support Jan 14, 2019
2def96f
[Security] Bump twig/twig from 2.6.0 to 2.6.2
dependabot-support Jan 21, 2019
63ebec1
Bump aws/aws-sdk-php from 3.82.6 to 3.86.2
dependabot-support Jan 21, 2019
035805c
Bump laravel/framework from 5.7.19 to 5.7.21
dependabot-support Jan 21, 2019
e873d08
New translations cachet.php (German)
CachetBot Jan 23, 2019
250461d
New translations dashboard.php (German)
CachetBot Jan 23, 2019
ec38e17
New translations forms.php (German)
CachetBot Jan 23, 2019
56d2c51
New translations notifications.php (German)
CachetBot Jan 23, 2019
e21918c
Remove duplicate order statement. Fixes #3418
jbrooksuk Jan 26, 2019
df7dc2a
Remove string about HTTP(s). Fixes #3421
jbrooksuk Jan 26, 2019
654e72c
Fixes CORS headers. Closes #3413
jbrooksuk Jan 26, 2019
ffe9c99
Apply fixes from StyleCI
jbrooksuk Jan 26, 2019
a13070f
Merge pull request #3428 from CachetHQ/dependabot/composer/laravel/fr…
jbrooksuk Jan 26, 2019
cabef9b
Merge pull request #3427 from CachetHQ/dependabot/composer/aws/aws-sd…
jbrooksuk Jan 26, 2019
b95f558
Merge pull request #3426 from CachetHQ/dependabot/composer/twig/twig-…
jbrooksuk Jan 26, 2019
ad2bcfe
Merge pull request #3416 from CachetHQ/dependabot/composer/fideloper/…
jbrooksuk Jan 26, 2019
8baf234
Update deps
jbrooksuk Jan 26, 2019
f8b8ae8
Merge pull request #3197 from shuichiro-makigaki/schedule-template
jbrooksuk Jan 26, 2019
05edd77
Merge pull request #3433 from CachetHQ/hotfix/piwik-trans
jbrooksuk Jan 26, 2019
f1fcd30
Compile assets
jbrooksuk Jan 26, 2019
22bf000
Fix importing of node_modules CSS
jbrooksuk Jan 26, 2019
78ae118
Compile assets
jbrooksuk Jan 26, 2019
c0d9d9c
Fully remove the Strengthify integration
jbrooksuk Jan 26, 2019
c3248c7
Compile assets
jbrooksuk Jan 26, 2019
c05aa31
New translations cachet.php (Mongolian)
CachetBot Jan 26, 2019
0db9d26
New translations dashboard.php (Mongolian)
CachetBot Jan 26, 2019
8f1bf4f
New translations forms.php (Mongolian)
CachetBot Jan 26, 2019
10ca614
New translations pagination.php (Mongolian)
CachetBot Jan 26, 2019
47f6dbd
New translations setup.php (Mongolian)
CachetBot Jan 26, 2019
ee24401
New translations validation.php (Mongolian)
CachetBot Jan 26, 2019
b02f3cf
New translations notifications.php (Mongolian)
CachetBot Jan 26, 2019
c34497d
New translations cachet.php (Slovenian)
CachetBot Jan 26, 2019
ab4c698
New translations dashboard.php (Slovenian)
CachetBot Jan 26, 2019
d658fba
New translations forms.php (Slovenian)
CachetBot Jan 26, 2019
b66d855
New translations pagination.php (Slovenian)
CachetBot Jan 26, 2019
c98ed76
New translations setup.php (Slovenian)
CachetBot Jan 26, 2019
2281292
New translations validation.php (Slovenian)
CachetBot Jan 26, 2019
687a51b
New translations notifications.php (Slovenian)
CachetBot Jan 26, 2019
0ae510f
Fix other duplicate order by statements
jbrooksuk Jan 26, 2019
a152ed5
Merge pull request #3408 from CachetHQ/l10n_2.4
jbrooksuk Jan 26, 2019
33116e4
Apply fixes from StyleCI
jbrooksuk Jan 26, 2019
61cddfb
Merge pull request #3434 from CachetHQ/hotfix/cors
jbrooksuk Jan 27, 2019
60a4c15
Merge pull request #2931 from nstapelbroek/feature/2895-custom-meta-d…
jbrooksuk Jan 27, 2019
0c33ca6
Fix HTML encoding for Google Fonts
szepeviktor Jan 27, 2019
b956a77
Merge pull request #3437 from szepeviktor/patch-1
jbrooksuk Jan 27, 2019
baa78b9
Merge pull request #3432 from CachetHQ/hotfix/duplicate-order-statement
jbrooksuk Jan 27, 2019
6e9d356
Update blog feed
jbrooksuk Jan 31, 2019
c2def94
Bump sortablejs from 1.7.0 to 1.8.1
dependabot-support Feb 1, 2019
7e73763
Bump vue and vue-template-compiler
dependabot-support Feb 1, 2019
497cbe5
Do not use arr_* or str_* helpers
jbrooksuk Feb 1, 2019
55e8565
Add missing Arr import
jbrooksuk Feb 1, 2019
6a53e21
Fix setup username validation
jbrooksuk Feb 1, 2019
b1de3b6
Add user on cachet install command
joecohens Jan 2, 2017
98b213b
Get a fresh configuration
jbrooksuk Jan 3, 2017
ce9a732
Use class notation
jbrooksuk Jan 5, 2017
ba5d865
Apply fixes from StyleCI
jbrooksuk Feb 1, 2019
a0f9d9f
Merge pull request #3450 from CachetHQ/no-str-arr-helpers
jbrooksuk Feb 1, 2019
785c6a5
Merge pull request #2291 from CachetHQ/add-user-cli
jbrooksuk Feb 2, 2019
c6adb0d
Don't prompt for tag files [Fix #3453]
Feb 5, 2019
a99a8fe
Merge pull request #3460 from k1-hedayati/patch-1
jbrooksuk Feb 5, 2019
20828a0
Substitute :name by incident name on slack title
tejaswivinod Feb 6, 2019
5a4fb1a
Merge pull request #3461 from tejaswivinod/tejaswivinod-patch-1
jbrooksuk Feb 7, 2019
a0b69a7
We no longer need the dev symfony requirements
jbrooksuk Feb 7, 2019
7127c36
Merge pull request #3462 from CachetHQ/drop-symfony-dev-requirements
jbrooksuk Feb 7, 2019
950b728
Bump phpunit/phpunit from 7.5.3 to 7.5.4
dependabot-support Feb 7, 2019
8b02bfc
Merge pull request #3463 from CachetHQ/dependabot/composer/phpunit/ph…
jbrooksuk Feb 7, 2019
b21f057
Change to appropriate tags to hide and select/unselect components in …
tejaswivinod Feb 9, 2019
37389ef
Drop dependency on alt-three throttle (#3469)
GrahamCampbell Feb 15, 2019
37e3852
Bump laravel/framework from 5.7.25 to 5.7.26
dependabot-support Feb 18, 2019
ce2b44c
Bump graham-campbell/binput from 6.0.0 to 6.1.0
dependabot-support Feb 18, 2019
b05b88d
Bump graham-campbell/markdown from 10.2.0 to 10.3.0
dependabot-support Feb 18, 2019
996052c
Bump graham-campbell/testbench-core from 3.0.0 to 3.0.2
dependabot-support Feb 18, 2019
827822e
Re-enable middleware. Fixes #3472
jbrooksuk Feb 18, 2019
88571d7
Move meta relation into trait
jbrooksuk Feb 18, 2019
e3cc104
Merge pull request #3473 from CachetHQ/dependabot/composer/laravel/fr…
jbrooksuk Feb 18, 2019
d0221ba
Remove badly added components class
jbrooksuk Feb 18, 2019
13e8b39
Improve count call
jbrooksuk Feb 18, 2019
8d1bdf2
More UX and UI fixes
jbrooksuk Feb 18, 2019
7e87636
Merge pull request #3464 from tejaswivinod/tejaswivinod-patch-2
jbrooksuk Feb 18, 2019
7752529
Compile assets
jbrooksuk Feb 18, 2019
1033ee3
Merge pull request #3474 from CachetHQ/dependabot/composer/graham-cam…
jbrooksuk Feb 18, 2019
a73d194
Merge pull request #3475 from CachetHQ/dependabot/composer/graham-cam…
jbrooksuk Feb 18, 2019
04b1cb5
Merge pull request #3478 from CachetHQ/has-meta-trait
jbrooksuk Feb 19, 2019
e09aeee
[Security] Bump bootstrap-sass from 3.4.0 to 3.4.1
dependabot-support Feb 22, 2019
0eaa9aa
Bump mockery/mockery from 1.2.1 to 1.2.2
dependabot-support Feb 25, 2019
4f91613
Bump laravolt/avatar from 2.1.0 to 2.2.0
dependabot-support Feb 25, 2019
781a18b
Bump phpunit/phpunit from 7.5.4 to 7.5.6
dependabot-support Feb 25, 2019
a1d59c0
Bump aws/aws-sdk-php from 3.87.8 to 3.87.17
dependabot-support Feb 25, 2019
7b8b7bf
Correctly retrieve the value
Feb 27, 2019
556cd5a
Remove duplicate CSS properties
Feb 27, 2019
a1fb2b8
Merge pull request #3494 from DanielRuf/fix/correctly-retrieve-value
jbrooksuk Feb 27, 2019
99742ca
Merge pull request #3493 from DanielRuf/fix/remove-duplicatepropertie…
jbrooksuk Feb 27, 2019
355c781
Merge pull request #3489 from CachetHQ/dependabot/composer/aws/aws-sd…
jbrooksuk Mar 2, 2019
4f92c57
Bump barryvdh/laravel-cors from 0.11.2 to 0.11.3
dependabot-support Mar 4, 2019
adbd656
Bump barryvdh/laravel-debugbar from 3.2.2 to 3.2.3
dependabot-support Mar 4, 2019
958ad64
Make pgsql schema configurable via environment variable
jzinkweg Mar 8, 2019
58533a8
Merge pull request #3502 from jzinkweg/bugfix/postgres-schema
jbrooksuk Mar 9, 2019
af0e5bc
Bump graham-campbell/exceptions from 11.1.0 to 11.2.0
dependabot-support Mar 11, 2019
3476cd3
Bump aws/aws-sdk-php from 3.87.17 to 3.89.1
dependabot-support Mar 11, 2019
e44f24b
Bump laravel/framework from 5.7.26 to 5.7.28
dependabot-support Mar 11, 2019
8e990f0
Merge pull request #3509 from CachetHQ/dependabot/composer/laravel/fr…
jbrooksuk Mar 11, 2019
6a7f9ac
Merge pull request #3508 from CachetHQ/dependabot/composer/aws/aws-sd…
jbrooksuk Mar 11, 2019
1f14e34
Merge pull request #3507 from CachetHQ/dependabot/composer/graham-cam…
jbrooksuk Mar 11, 2019
166f733
Merge pull request #3497 from CachetHQ/dependabot/composer/barryvdh/l…
jbrooksuk Mar 11, 2019
e1bad1b
Merge pull request #3495 from CachetHQ/dependabot/composer/barryvdh/l…
jbrooksuk Mar 11, 2019
6f1d8d6
Merge pull request #3488 from CachetHQ/dependabot/composer/phpunit/ph…
jbrooksuk Mar 11, 2019
6a0a2c0
Merge pull request #3487 from CachetHQ/dependabot/composer/laravolt/a…
jbrooksuk Mar 11, 2019
b82651f
Merge pull request #3486 from CachetHQ/dependabot/composer/mockery/mo…
jbrooksuk Mar 11, 2019
055c35d
Merge pull request #3485 from CachetHQ/dependabot/npm_and_yarn/bootst…
jbrooksuk Mar 11, 2019
c6ef34f
Merge pull request #3449 from CachetHQ/dependabot/npm_and_yarn/vue-an…
jbrooksuk Mar 11, 2019
f83aabe
Merge pull request #3448 from CachetHQ/dependabot/npm_and_yarn/sortab…
jbrooksuk Mar 11, 2019
3b9ee67
Merge pull request #3476 from CachetHQ/dependabot/composer/graham-cam…
jbrooksuk Mar 11, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/move.yml

This file was deleted.

17 changes: 12 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ branches:

before_install:
- cp .env.example .env
- phpenv config-rm xdebug.ini || true

install:
- travis_retry composer install --no-interaction --no-suggest
Expand All @@ -18,21 +17,29 @@ jobs:
include:
- stage: Security check
script:
- phpenv config-rm xdebug.ini || true
- wget https://get.sensiolabs.org/security-checker.phar
- php security-checker.phar security:check ./composer.lock
php: 7.1
- stage: Unit tests
script: vendor/bin/phpunit
script:
- phpenv config-rm xdebug.ini || true
- vendor/bin/phpunit
php: 7.1
- stage: Unit tests
script: vendor/bin/phpunit
script:
- phpenv config-rm xdebug.ini || true
- vendor/bin/phpunit
php: 7.2
- stage: Unit tests
script: vendor/bin/phpunit
script:
- phpenv config-rm xdebug.ini || true
- vendor/bin/phpunit
php: 7.3
- stage: Code coverage
script:
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- phpenv config-rm xdebug.ini || true
- phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi
php: 7.1
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Of course bug reports, feature requests and [documentation](https://docs.cacheth

As Cachet gains new features, the design and ideas that were once a perfect fit need updating and in some cases designing from scratch. This is where you come in! Fancy giving Cachet a lick of paint? Sweet!

You'll need to install Node.js, Bower and Gulp.
You'll need to install Node.js with NPM or Yarn.

To get started you can do the following:

Expand All @@ -81,7 +81,8 @@ Built using [Laravel](https://laravel.com).
We use these extra dependencies to develop Cachet:

- Node.js
- Gulp
- NPM or Yarn
- Composer
- Git

Once cloned to your local machine, you'll need some demo data! Run `php artisan cachet:seed` to get the demo installation ready for action.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015-2018 Alt Three Services Limited.
Copyright (c) 2015-2019 Alt Three Services Limited.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

Cachet is a beautiful and powerful open source status page system.

## Community

You can now [join our Slack community!](http://cachethq-slack.herokuapp.com)

## Overview

- List your service components
Expand All @@ -26,6 +22,10 @@ You can now [join our Slack community!](http://cachethq-slack.herokuapp.com)
- Subscriber notifications via email
- Two factor authentication

## Community

You can now [join our Slack community!](http://cachethq-slack.herokuapp.com)

## Requirements

- PHP 7.1 or later
Expand All @@ -47,7 +47,7 @@ Here are some useful quick links:

To test out the demo, you may login to the [Dashboard](https://dev.cachethq.io/dashboard) with the following:

- **Username:** `test` or `test@test.com`
- **Username:** `test` or `test@example.com`
- **Password:** `test123`

> The demo resets every 30 minutes.
Expand All @@ -72,4 +72,4 @@ A professional **installation service** is offered by Alt Three Services Limited

Thank you to the following for [sponsoring](https://patreon.com/jbrooksuk) Cachet.

![Exascale](/docs/images/sponsorships/exascale.jpg)
[![Exascale](/docs/images/sponsorships/exascale.jpg)](https://www.exascale.co.uk/)
2 changes: 1 addition & 1 deletion app/Bus/Commands/Component/CreateComponentCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ final class CreateComponentCommand
*/
public $rules = [
'name' => 'required|string',
'description' => 'required|string',
'description' => 'nullable|string',
'status' => 'required|int|min:0|max:4',
'link' => 'nullable|url',
'order' => 'nullable|int',
Expand Down
2 changes: 1 addition & 1 deletion app/Bus/Commands/Incident/CreateIncidentCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ final class CreateIncidentCommand
*
* @return void
*/
public function __construct($name, $status, $message, $visible, $component_id, $component_status, $notify, $stickied, $occurred_at, $template, array $template_vars = [], $meta = [])
public function __construct($name, $status, $message, $visible, $component_id, $component_status, $notify, $stickied, $occurred_at, $template, array $template_vars = [], array $meta = [])
{
$this->name = $name;
$this->status = $status;
Expand Down
12 changes: 11 additions & 1 deletion app/Bus/Commands/Incident/UpdateIncidentCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ final class UpdateIncidentCommand
*/
public $template_vars;

/**
* Meta key/value pairs.
*
* @var array
*/
public $meta = [];

/**
* The validation rules.
*
Expand All @@ -122,6 +129,7 @@ final class UpdateIncidentCommand
'stickied' => 'nullable|bool',
'occurred_at' => 'nullable|string',
'template' => 'nullable|string',
'meta' => 'nullable|array',
];

/**
Expand All @@ -139,10 +147,11 @@ final class UpdateIncidentCommand
* @param string|null $occurred_at
* @param string|null $template
* @param array $template_vars
* @param array $meta
*
* @return void
*/
public function __construct(Incident $incident, $name, $status, $message, $visible, $component_id, $component_status, $notify, $stickied, $occurred_at, $template, array $template_vars = [])
public function __construct(Incident $incident, $name, $status, $message, $visible, $component_id, $component_status, $notify, $stickied, $occurred_at, $template, array $template_vars = [], array $meta = [])
{
$this->incident = $incident;
$this->name = $name;
Expand All @@ -156,5 +165,6 @@ public function __construct(Incident $incident, $name, $status, $message, $visib
$this->occurred_at = $occurred_at;
$this->template = $template;
$this->template_vars = $template_vars;
$this->meta = $meta;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@
use CachetHQ\Cachet\Bus\Commands\Incident\CreateIncidentCommand;
use CachetHQ\Cachet\Bus\Events\Incident\IncidentWasCreatedEvent;
use CachetHQ\Cachet\Bus\Exceptions\Incident\InvalidIncidentTimestampException;
use CachetHQ\Cachet\Bus\Handlers\Traits\StoresMeta;
use CachetHQ\Cachet\Models\Component;
use CachetHQ\Cachet\Models\Incident;
use CachetHQ\Cachet\Models\IncidentTemplate;
use CachetHQ\Cachet\Models\Meta;
use CachetHQ\Cachet\Services\Dates\DateFactory;
use Carbon\Carbon;
use Illuminate\Contracts\Auth\Guard;
use Twig_Environment;
use Twig_Loader_Array;
use Twig\Environment as Twig_Environment;
use Twig\Loader\ArrayLoader as Twig_Loader_Array;

/**
* This is the create incident command handler.
Expand All @@ -32,6 +33,8 @@
*/
class CreateIncidentCommandHandler
{
use StoresMeta;

/**
* The authentication guard instance.
*
Expand Down Expand Up @@ -104,14 +107,7 @@ public function handle(CreateIncidentCommand $command)

// Store any meta?
if ($meta = $command->meta) {
foreach ($meta as $key => $value) {
Meta::create([
'key' => $key,
'value' => $value,
'meta_type' => 'incidents',
'meta_id' => $incident->id,
]);
}
$this->storeMeta($command->meta, 'incidents', $incident->id);
}

// Update the component.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
use CachetHQ\Cachet\Bus\Commands\Incident\UpdateIncidentCommand;
use CachetHQ\Cachet\Bus\Events\Incident\IncidentWasUpdatedEvent;
use CachetHQ\Cachet\Bus\Exceptions\Incident\InvalidIncidentTimestampException;
use CachetHQ\Cachet\Bus\Handlers\Traits\StoresMeta;
use CachetHQ\Cachet\Models\Component;
use CachetHQ\Cachet\Models\Incident;
use CachetHQ\Cachet\Models\IncidentTemplate;
use CachetHQ\Cachet\Services\Dates\DateFactory;
use Illuminate\Contracts\Auth\Guard;
use Twig_Environment;
use Twig_Loader_Array;
use Twig\Environment as Twig_Environment;
use Twig\Loader\ArrayLoader as Twig_Loader_Array;

/**
* This is the update incident command handler.
Expand All @@ -30,6 +31,8 @@
*/
class UpdateIncidentCommandHandler
{
use StoresMeta;

/**
* The authentication guard instance.
*
Expand Down Expand Up @@ -86,6 +89,11 @@ public function handle(UpdateIncidentCommand $command)
// Rather than making lots of updates, just fill and save.
$incident->save();

// Store any meta?
if ($meta = $command->meta) {
$this->storeMeta($command->meta, 'incidents', $incident->id);
}

// Update the component.
if ($component = Component::find($command->component_id)) {
execute(new UpdateComponentCommand(
Expand Down
81 changes: 81 additions & 0 deletions app/Bus/Handlers/Traits/StoresMeta.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?php

/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace CachetHQ\Cachet\Bus\Handlers\Traits;

use CachetHQ\Cachet\Models\Meta;

trait StoresMeta
{
/**
* Stores all Meta values of a model.
*
* @param array $metaData
* @param string $metaType
* @param string|int $metaId
* @param string $metaModel
*
* @return void
*/
public function storeMeta($metaData, $metaType, $metaId, $metaModel = Meta::class)
{
// Validation required instead of type hinting because it could be passed as false or NULL
if (!is_array($metaData)) {
return;
}

foreach ($metaData as $key => $value) {
$modelInstance = call_user_func(
[$metaModel, 'firstOrNew'],
[
'key' => $key,
'meta_type' => $metaType,
'meta_id' => $metaId,
]
);

$value = $this->removeEmptyValues($value);
if (!empty($value)) {
$modelInstance->setAttribute('value', $value);
$modelInstance->save();
continue;
}

// The value is empty, remove the row
if ($modelInstance->exists) {
$modelInstance->delete();
}
}
}

/**
* Determine if a Value is empty.
*
* @param mixed $values
*
* @return array|mixed
*/
protected function removeEmptyValues($values)
{
if (!is_array($values)) {
return empty($values) ? null : $values;
}

foreach ($values as $key => $value) {
if (!empty($value)) {
continue;
}
unset($values[$key]);
}

return $values;
}
}
2 changes: 1 addition & 1 deletion app/Composers/ComponentsComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct(Guard $guard)
public function compose(View $view)
{
$componentGroups = $this->getVisibleGroupedComponents();
$ungroupedComponents = Component::ungrouped()->get();
$ungroupedComponents = Component::ungrouped()->orderBy('status', 'desc')->get();

$view->withComponentGroups($componentGroups)
->withUngroupedComponents($ungroupedComponents);
Expand Down
Loading