Commit Graph

1489 Commits

Author SHA1 Message Date
Klaas van Schelven
45ad2aceec Dark mode: use monokai style from pygments
Fix #152
2025-07-17 09:45:22 +02:00
Klaas van Schelven
99f782f4e3 add vacuum_files command
Fix #129
2025-07-17 09:05:16 +02:00
Klaas van Schelven
2e32ec78a3 Artifact Bundle upload: clean up after extract
for each bundle upload both the chunks and the zipped bundle
were kept (even though they are only needed on-upload, i.e.
after extracting we deal with the extracted files exclusively

This is an important step in 'keeping sourcemaps-related data-usage limited'
i.e. see #129
2025-07-16 20:26:28 +02:00
Klaas van Schelven
995c627fe6 Add API catch-all endpoint for logging
enabled using a setting.
Fix #153
2025-07-16 17:22:38 +02:00
Klaas van Schelven
d35327fe80 File-upload: chunk-size of 2MiB
as per the comment

Fix #147
2025-07-16 15:31:41 +02:00
Klaas van Schelven
4c4a4f6fd6 Add test to prove chunked file-uploads work
See #147
2025-07-16 15:22:23 +02:00
Klaas van Schelven
b9880fe59b Remove untrue comment about single-chunk API
chunk_upload is and has always been working 'for real'. The only sense in
which the comment has been 'vaguely in the direction of truth' was that
with a chunkSize and maxRequestSize of 32MiB in practice sourcemap uploads
will often have been single-chunk in practice.

See #147
2025-07-16 15:17:35 +02:00
Klaas van Schelven
931f00135b File-upload: update comments about concurrency and chunksPerRequest
i.e. update the comments to reflect what I just learned doing some actual
experiments.

See #147

b.t.w. the now-removed comment was somewhat misleading: "single-chunk"
was (and is) being forced as in "single chunk per request" but not as
in "single chunk per file", and it was only forced by chunksPerRequest=1,
not by concurrency=1.
2025-07-16 14:43:41 +02:00
Klaas van Schelven
05fbf50e89 Sourcemaps upload: max file size 2GiB
As per the comment.

Since we haven't actually gone multi-chunk, this is just preparation

The now-removed comment should be read as 'it could be assumed that
unzipping introduces a factor 5 increase between chunk size and file
size' but that's a whole bunch of assumptions that I'd rather get
rid of (mental overhead, with little gain).

See #147
2025-07-16 12:53:11 +02:00
Klaas van Schelven
e972a21c2a file upload: chunk size and request size to 16MiB
As per the comment

See #147
2025-07-16 12:49:34 +02:00
Klaas van Schelven
64096324ca Merge pull request #149 from arjoonn-s
Auto-clean binlogs on docker compose for mysql
2025-07-16 10:45:02 +02:00
Klaas van Schelven
403e28adb4 Remove 'choices' from Event.model
See https://github.com/getsentry/sentry-docs/pull/14331

See https://code.djangoproject.com/ticket/22837 for the migration-clobbering
2025-07-16 10:38:06 +02:00
arjoonn
29e3c96d10 Auto-clean binlogs on docker compose 2025-07-16 01:10:19 +05:30
Klaas van Schelven
673422cbb2 Further tuning of the ALLOWED_HOSTS misconfig error-message
Fix #148
2025-07-15 20:52:50 +02:00
Klaas van Schelven
e56c1fe676 Better error-message for ALLOWED_HOSTS misconfigs
Triggered in particular by the 'You may need to add %r to ALLOWED_HOSTS'
wording in the previous version, which sends you in the wrong direction
when the cause is a proxy-misconfiguration.

See #148
2025-07-15 20:52:42 +02:00
Klaas van Schelven
421ac91dc5 Fix overflow issue when function-names are very long
As per the "little red box on" #120
2025-07-15 10:35:16 +02:00
Klaas van Schelven
ae2bc56c04 Text-overflow for issue pages (date and '1 of 1 total')
> that "10 july ... event 1 of 1 total" should get overflow properties just like the exception.type below it.

See #120
2025-07-15 10:23:55 +02:00
Klaas van Schelven
89accddc2f Fix wasted space at certain width in stacktrace UI
* The "collapse" etc. buttons get shown below the search box and < << >> > from
  a certain width downwards.

* similar stacking for the date/type/value and the buttons at an even smaller width.

See #120
2025-07-15 09:41:35 +02:00
Klaas van Schelven
770ccb1622 Fixed command's 'running in background' output
'Oskar' on discord pointed out 2 distinct commands had
identical output which was confusing
2025-07-14 16:12:25 +02:00
Klaas van Schelven
2b46bfe9a1 Project-edit: redirect to list on-save 2025-07-14 16:08:30 +02:00
Klaas van Schelven
b2769d7202 cleanup_eventstorage command: be more clear when no event_storage is actually configured 2025-07-14 15:48:47 +02:00
Klaas van Schelven
0d8d55a451 Fix: don't do 'contains' check on the error message
probably worked in 'some cases'; probably caused by accepting
a copilot suggestion a bit too eagerly
2025-07-14 15:35:44 +02:00
Klaas van Schelven
54ff368cf2 Don't crash on illegal values for platform
See #143, #145
2025-07-14 10:25:12 +02:00
Klaas van Schelven
10889871d2 Support 'crystal' platform
Fix #145
2025-07-14 10:24:45 +02:00
Klaas van Schelven
92c95e66ea accept 'powershell' value for 'platform' (even if it's not in the spec)
See #143
2025-07-11 10:19:11 +02:00
Klaas van Schelven
1c93154a7e 1.7.1 CHANGELOG 1.7.1 2025-07-10 11:14:40 +02:00
Klaas van Schelven
d7f58879a7 Fix: unclosed link on dark/light logo breaks user-related forms
introduced in 1abc30a7
2025-07-10 11:11:58 +02:00
Klaas van Schelven
6ec220b3d2 1.7.0 CHANGELOG 1.7.0 2025-07-09 08:41:02 +02:00
Klaas van Schelven
30df9e7008 Remove FREE_VERSION_WARNING dead code
became unused when polyform license was introduced
2025-07-08 21:51:45 +02:00
Klaas van Schelven
91f482f856 Remove superfluous remark
this comment was from before the polyform shield licence days
2025-07-08 21:48:08 +02:00
Klaas van Schelven
aa255978b7 Snappea: refuse to start in TASK_ALWAYS_EAGER mode 2025-07-08 20:57:26 +02:00
Klaas van Schelven
4ca770da28 Skip ALLOWED_HOSTS validation for /health/ endpoints
Health checks are often done directly against an IP address rather than using a
full hostname. This is annoying to set up if the IP address can be one from a
large range.

The things that ALLOWED_HOSTS defend against don't really apply for health
endpoints, so better not have the check.

Fix #140
2025-07-08 17:36:21 +02:00
Klaas van Schelven
9a6d453443 Fix 2 bare_base/barest_base mistakes re dark mode
* in 1abc30a760 the hardcoding of ="dark" (during development)
  was accidentally checked in; it never should have been.

* in e14b3eaaa6 I mixed up the bare*base templates. It's actually
  bare_base.html that's for 404/500 etc; barest_base is more bare
  visually (it's the box-based layout for login etc), but it doesn't
  need to be so careful not to use variables.

See #40
2025-07-08 17:04:38 +02:00
Klaas van Schelven
27af846de9 Merge pull request #142 from bugsink/issue-tag-cleanup-as-vacuum
In the light of the discussion on #134, this implements the "clean up later"
solution: a vacuum task that deletes IssueTags no longer referenced by any
EventTag on the same Issue. 

In the same sweep TagValues are pruned.

Performance-wise, this is a relatively safe path forward; it can run off-hours
or not at all, depending on preferences.

Semantically it's the least clear: whether an Issue appears to be tagged may
now depend on whether vacuum has run, and `IssueTag.count` (representing total
observed) is left in a "weird place" in the sense that it may disappear from
the total more or less at random (i.e. depending on calling a command, and
depending on the current state of not-yet-evicted Events).
2025-07-08 16:57:16 +02:00
Klaas van Schelven
1965b0f8c2 vacuum_eventless_issuetags: tune batch-size
See #134
2025-07-08 16:16:54 +02:00
Klaas van Schelven
674d84909f TagValue pruning (for vacuum_eventless_issuetags) 2025-07-08 15:59:55 +02:00
Klaas van Schelven
9741844821 vacuum_eventless_issuetags: tests (and minor fix)
See #134
2025-07-08 15:32:43 +02:00
Klaas van Schelven
4dd525d0d0 Missing import 2025-07-08 15:29:14 +02:00
Klaas van Schelven
d62e53fdf8 store_tags: support 'very many' (~500) tags 2025-07-08 15:21:26 +02:00
Klaas van Schelven
a247528baa TagKey __str__ 2025-07-08 15:06:46 +02:00
Klaas van Schelven
dc25e044f0 Add store_tags test for 2 separate Issues
(there were some doubts whether this works; this test takes
those doubts away)
2025-07-08 15:06:20 +02:00
Klaas van Schelven
7f416ac920 vacuum_eventless_issuetags command
In the light of the discussion on #134, this implements the "clean up later"
solution: a vacuum task that deletes IssueTags no longer referenced by any
EventTag on the same Issue.

This doesn't prevent stale IssueTags from being created but ensures they are
eventually removed, enabling follow-up cleanup (e.g. of TagValues).

Performance-wise, this is a relatively safe path forward; it can run off-hours
or not at all, depending on preferences. Semantically it's the least clear:
whether an Issue appears to be tagged may now depend on whether vacuum has run.

No tests yet; no immediate TagValue cleanup.
2025-07-08 13:21:57 +02:00
Klaas van Schelven
a91fdcd656 Sentry-SDK requirement, unpin minor version
My thinking:

* Avoid Dependabot spam for harmless version bumps. (sentry-SDK
  has the most upgrades by an order of magnitude)

* In princple, there should be no breakage, b/c they do semver and
  "minor version when you add functionality in a backward compatible manner"

* This is dev tooling; it shouldn’t be a source of friction.

* As it stands: I'm not thoroughly reviewing these anyway (b/c of the spammyness)

The alternative would have been to "just freeze" it; if we ever run into
problems because of the unpinning I certainly will.
2025-07-08 10:55:38 +02:00
Klaas van Schelven
7419c924c1 make_consistent: handling of Issue/Project .is_deleted
as an 'enqueue again', per the comment

See #50
2025-07-07 16:43:47 +02:00
Klaas van Schelven
4e83a42f39 Dark mode: 'yellow' bar less ugly
my chatbot tells me it felt ugly because

>  bg-yellow-900 [..] is a very saturated, reddish mustard — almost
>  brown-orange. That’s why it feels so jarring in dark mode: it's too warm,
>  too saturated, and clashes with a cool-dark UI. [..] Try bg-amber-800
>  instead. Tailwind's amber palette is warmer and more muted than yellow,
>  designed to fit better in dark UIs.

No idea if the reasoning is sound, but it "looks good" so I'm pushing ahead.
2025-07-07 16:41:07 +02:00
Klaas van Schelven
3baedcaab9 Project-delete: show success-message after delete 2025-07-07 12:48:35 +02:00
Klaas van Schelven
182866f19a Dark theme: little triangles in history-view fixed
Fix #40
2025-07-07 12:23:04 +02:00
Klaas van Schelven
1abc30a760 Dark mode: faucet visible in logo
not my best work ever, but at least a visible faucet this way...
2025-07-07 12:09:21 +02:00
Klaas van Schelven
f21d9f989b Fix recently added UI elements to have dark mode too
the elements were added after the work on #125 was done but in a
branch w/o dark-mode, so they needed to still be fixed
2025-07-07 11:39:27 +02:00
Klaas van Schelven
e14b3eaaa6 barest_base: don't assume user is set.
its purpose is to "not break" for e.g. 404/500, so I want as little logic in
there as possible.
2025-07-07 11:36:36 +02:00