Skip to content

Commit 5aa52c2

Browse files
authored
chore(frontend|backend|potal): Bump deps (#220)
1 parent ecaeef1 commit 5aa52c2

File tree

11 files changed

+964
-782
lines changed

11 files changed

+964
-782
lines changed

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212
],
1313
"require": {
1414
"php": ">=8.3",
15-
"cakephp/authentication": "^3.1.1",
16-
"cakephp/cakephp": "^5.1.1",
15+
"cakephp/authentication": "^3.2.1",
16+
"cakephp/cakephp": "^5.1.2",
1717
"cakephp/migrations": "^4.4.2",
1818
"cakephp/plugin-installer": "^2.0.1",
19-
"lcobucci/jwt": "^5.4",
19+
"lcobucci/jwt": "^5.4.2",
2020
"paragonie/csp-builder": "^3.0.1",
21-
"sentry/sentry": "^4.9.0"
21+
"sentry/sentry": "^4.10.0"
2222
},
2323
"require-dev": {
2424
"cakephp/bake": "^3.2.0",
2525
"cakephp/cakephp-codesniffer": "^5.1.3",
26-
"phpstan/phpstan": "^1.12.6",
27-
"phpunit/phpunit": "^10.5.36"
26+
"phpstan/phpstan": "^1.12.11",
27+
"phpunit/phpunit": "^10.5.38"
2828
},
2929
"autoload": {
3030
"psr-4": {

composer.lock

Lines changed: 143 additions & 140 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 795 additions & 569 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12-
"@sentry/vite-plugin": "^2.22.5",
13-
"@sentry/vue": "^8.34.0",
12+
"@sentry/vite-plugin": "^2.22.6",
13+
"@sentry/vue": "^8.39.0",
1414
"axios": "^1.7.7",
15-
"vue": "^3.5.12",
15+
"vue": "^3.5.13",
1616
"vue-router": "^4.4.5",
1717
"vue-select": "^4.0.0-beta.6",
1818
"vuex": "^4.1.0"
1919
},
2020
"devDependencies": {
21-
"@codecov/vite-plugin": "^1.2.0",
21+
"@codecov/vite-plugin": "^1.4.0",
2222
"@rushstack/eslint-patch": "^1.10.4",
23-
"@vitejs/plugin-vue": "^5.1.4",
24-
"@vue/eslint-config-prettier": "^10.0.0",
23+
"@vitejs/plugin-vue": "^5.2.0",
24+
"@vue/eslint-config-prettier": "^10.1.0",
2525
"autoprefixer": "^10.4.20",
26-
"eslint": "^9.12.0",
27-
"eslint-plugin-vue": "^9.29.0",
28-
"postcss": "^8.4.47",
26+
"eslint": "^9.15.0",
27+
"eslint-plugin-vue": "^9.31.0",
28+
"postcss": "^8.4.49",
2929
"prettier": "^3.3.3",
30-
"tailwindcss": "^3.4.13",
31-
"vite": "^5.4.9"
30+
"tailwindcss": "^3.4.15",
31+
"vite": "^5.4.11"
3232
}
3333
}

potal/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ require (
66
github.com/getsentry/sentry-go v0.29.1
77
github.com/google/go-cmp v0.5.9
88
github.com/julienschmidt/httprouter v1.3.0
9-
github.com/slack-go/slack v0.14.0
9+
github.com/slack-go/slack v0.15.0
1010
)
1111

1212
require (
1313
github.com/gorilla/websocket v1.5.3 // indirect
14-
golang.org/x/sys v0.26.0 // indirect
15-
golang.org/x/text v0.19.0 // indirect
14+
golang.org/x/sys v0.27.0 // indirect
15+
golang.org/x/text v0.20.0 // indirect
1616
)

potal/go.sum

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,19 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
2222
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2323
github.com/slack-go/slack v0.14.0 h1:6c0UTfbRnvRssZUsZ2qe0Iu07VAMPjRqOa6oX8ewF4k=
2424
github.com/slack-go/slack v0.14.0/go.mod h1:hlGi5oXA+Gt+yWTPP0plCdRKmjsDxecdHxYQdlMQKOw=
25+
github.com/slack-go/slack v0.15.0 h1:LE2lj2y9vqqiOf+qIIy0GvEoxgF1N5yLGZffmEZykt0=
26+
github.com/slack-go/slack v0.15.0/go.mod h1:hlGi5oXA+Gt+yWTPP0plCdRKmjsDxecdHxYQdlMQKOw=
2527
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
2628
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
2729
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
2830
golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo=
2931
golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
32+
golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s=
33+
golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
3034
golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM=
3135
golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
36+
golang.org/x/text v0.20.0 h1:gK/Kv2otX8gz+wn7Rmb3vT96ZwuoxnQlY+HlJVj7Qug=
37+
golang.org/x/text v0.20.0/go.mod h1:D4IsuqiFMhST5bX19pQ9ikHC2GsaKyk/oF+pn3ducp4=
3238
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
3339
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
3440
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

src/Controller/EventsController.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
use App\Event\EventFactory;
77
use Cake\Controller\Controller;
88
use Cake\Http\Response;
9-
use Sentry\Metrics\MetricsUnit;
109
use Sentry\SentrySdk;
11-
use function Sentry\metrics;
1210

1311
class EventsController extends Controller
1412
{
@@ -33,24 +31,6 @@ public function index(): Response
3331
$event = EventFactory::createEvent($this->request->getData());
3432
$event->process();
3533

36-
metrics()->distribution(
37-
key: 'gibpotato.potatoes.event_processing_time',
38-
value: microtime(true) - $startTimestamp,
39-
unit: MetricsUnit::second(),
40-
tags: [
41-
'event_type' => $event->getType(),
42-
],
43-
);
44-
45-
metrics()->distribution(
46-
key: 'gibpotato.potatoes.event_size',
47-
value: mb_strlen(serialize($this->request->getData()), '8bit'),
48-
unit: MetricsUnit::byte(),
49-
tags: [
50-
'event_type' => $event->getType(),
51-
],
52-
);
53-
5434
$span = SentrySdk::getCurrentHub()->getSpan();
5535
if ($span !== null) {
5636
$span->setData([

src/Middleware/SentryMiddleware.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111
use Psr\Http\Message\ServerRequestInterface;
1212
use Psr\Http\Server\MiddlewareInterface;
1313
use Psr\Http\Server\RequestHandlerInterface;
14-
use Sentry\Metrics\MetricsUnit;
1514
use Sentry\SentrySdk;
1615
use Sentry\Tracing\SpanContext;
1716
use Sentry\Tracing\TransactionContext;
1817
use Sentry\Tracing\TransactionSource;
1918
use function microtime;
20-
use function Sentry\metrics;
2119
use function Sentry\startTransaction;
2220

2321
/**
@@ -78,19 +76,12 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
7876
->setData([
7977
'gibpotato.gcp.mem_peak_usage' => memory_get_peak_usage(false),
8078
]);
81-
82-
metrics()->distribution(
83-
key: 'gibpotato.gcp.mem_peak_usage',
84-
value: memory_get_peak_usage(false),
85-
unit: MetricsUnit::byte(),
86-
);
8779
}
8880

8981
EventManager::instance()->on(
9082
'Server.terminate',
9183
function (Event $event) use ($transaction): void {
9284
$transaction->finish();
93-
metrics()->flush();
9485
},
9586
);
9687

src/Middleware/SentryUserMiddleware.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
use Psr\Http\Message\ServerRequestInterface;
88
use Psr\Http\Server\MiddlewareInterface;
99
use Psr\Http\Server\RequestHandlerInterface;
10-
use Sentry\Metrics\MetricsUnit;
1110
use Sentry\SentrySdk;
1211
use Sentry\State\Scope;
13-
use function Sentry\metrics;
1412

1513
/**
1614
* SentryUser middleware
@@ -35,12 +33,6 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
3533
'username' => $user->slack_name,
3634
]);
3735

38-
metrics()->set(
39-
key: 'gibpotato.users.web_ui',
40-
value: $user->id,
41-
unit: MetricsUnit::custom('user_id'),
42-
);
43-
4436
$span = $scope->getSpan();
4537
if ($span !== null) {
4638
$span->setData([

src/Service/AwardService.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
use App\Event\ReactionAddedEvent;
88
use App\Model\Entity\User;
99
use Cake\ORM\Locator\LocatorAwareTrait;
10-
use Sentry\Metrics\MetricsUnit;
1110
use Sentry\SentrySdk;
12-
use function Sentry\metrics;
1311

1412
class AwardService
1513
{
@@ -63,12 +61,6 @@ private function gibToUser(
6361
]);
6462
$messagesTable->saveOrFail($message);
6563

66-
metrics()->increment(
67-
key: 'gibpotato.potatoes.given_out',
68-
value: $event->amount,
69-
unit: MetricsUnit::custom('potato'),
70-
);
71-
7264
$span = SentrySdk::getCurrentHub()->getSpan();
7365
if ($span !== null) {
7466
$span->setData([

0 commit comments

Comments
 (0)