Commit Graph

1281 Commits

Author SHA1 Message Date
Klaas van Schelven
485df1aed9 AuthToken: ability to create using a command 2025-04-11 14:45:37 +02:00
Klaas van Schelven
294105170b Remove debugging-line 2025-04-11 14:31:02 +02:00
Klaas van Schelven
895da36adc AuthToken: barebones implementation 2025-04-11 14:30:29 +02:00
Klaas van Schelven
1084796763 When not dogfooding, just print a regular stacktrace in the logs
This will hopefully help when getting issue-reports for those that
have not set up dogfooding.

See [Dogfooding Bugsink](https://www.bugsink.com/docs/dogfooding/)
2025-04-11 13:22:37 +02:00
Klaas van Schelven
0c11bf0787 Add trivial viewtest 2025-04-11 11:19:03 +02:00
Klaas van Schelven
5d01214752 Sourcemaps: a test
See #19
2025-04-11 10:32:13 +02:00
Klaas van Schelven
b160a6df06 Files: downloadable from admin
for convenience
2025-04-11 09:15:09 +02:00
Klaas van Schelven
0bd899fdfa File.filename (for display purposes) 2025-04-10 17:00:46 +02:00
Klaas van Schelven
87130043e3 PoC of using sourcemaps in the UI
See #19
2025-04-10 15:52:34 +02:00
Klaas van Schelven
eb266d805c PoC of uploading sourcemap artifact bundles
* debug_id-only
* various TODOs (e.g. auth, async, retention)

See #19
2025-04-10 10:30:30 +02:00
Klaas van Schelven
d572ff3601 Fix warning on CSRF view
When the CSRF view is rendered, no RequestContext is used. This means the token
used for the logout link on the regular base.html won't work.

> UserWarning: A {% csrf_token %} was used in a template, but the context did not
> provide the value.  This is usually caused by not using RequestContext.
2025-04-09 14:12:39 +02:00
Klaas van Schelven
b59abaf213 Comment 'exit |' in docker-compose mysql health check
https://stackoverflow.com/a/75794612/
2025-04-08 09:15:53 +02:00
Klaas van Schelven
abaa1d9b2f Don't crash on non-str tag-values
Fixes #76
2025-04-06 15:00:54 +02:00
Klaas van Schelven
5d4271e350 Add user.etc tags in deduce_tags 2025-04-05 08:14:11 +02:00
Klaas van Schelven
be2b5df725 Add working-dir based Dockerfile
Many thanks to @anime-shed's input!
Closes #68
2025-04-04 17:32:01 +02:00
Klaas van Schelven
c2839b7540 Dockerfile.fromwheel: reorder for build-time efficiency
In particular:

* Move building of mysqlclient (expensive, mostly unchanging) up
* Move handling of WHEEL_FILE down (always changing for invocations)

The advantages are most clear when running buildx.

This was prompted by discussions on #68, when I tried to explain my
reasoning for the current way things were working (building wheels,
and then copying them over) but I couldn't really justify that, so
I got rid of it instead. (detail: I noticed that psycopg[binary] did
not follow this pattern, which made me question it more broadly)
2025-04-04 15:53:36 +02:00
Klaas van Schelven
786a97aaa0 Rename Dockerfile to Dockerfile.fromwheel
See #68 for discussion (which is summarized at the top of the Dockerfile)
2025-04-04 11:41:45 +02:00
Klaas van Schelven
f19d9eda4d Remove stray file (accidental checkin?) 2025-04-04 11:28:51 +02:00
Klaas van Schelven
6e0f1f0f54 Document team/project visibility/access design 2025-04-04 10:01:38 +02:00
Klaas van Schelven
8fc6f752cf Allow users to join their own team's projects
Fix #56

Looked into this for a while, but I think it was simply an oversight in
the logic-as-programmed; if you're part of a team, you should be able
to just click 'join' on any of that team's projects and be a project-member
2025-04-03 16:28:35 +02:00
Klaas van Schelven
427a2a341e Change tab header into "Team Projects"
It said "Other Team Projects", which has 2 ways to be read:

* "Other (Team Projects)" (the correct one)
* "(Other Team) Projects" (the incorrect one)
2025-04-03 16:23:06 +02:00
Klaas van Schelven
09d8545c6a 1.4.2. changelog 2025-04-01 20:44:59 +02:00
Klaas van Schelven
bb3740ed12 pyproject.toml update; as per deprecation warning 2025-04-01 13:21:09 +02:00
Klaas van Schelven
9a0c52dc58 health check: working example in compose-sample.yaml 2025-04-01 09:19:57 +02:00
Klaas van Schelven
abd144a4f6 Merge pull request #67 from bugsink/dependabot/pip/python-packages-7087ece6d1
Update sentry-sdk requirement from ==2.24.* to ==2.25.* in the python-packages group
2025-04-01 09:19:41 +02:00
Klaas van Schelven
9d8a2213ec deduce_allowed_hosts: allow for localhost
See #46

Being a bit more liberal w/ allowing localhost/127.0.0.1 may also
result in proxies that don't pass "Host:" correctly to fail a bit
later; this could be either good or bad; I'm assuming "bad", since
I'd rather fail early and explicitly, but I'm also assuming such
problems will not become that much harder to figure out, so I'm
accepting this.
2025-03-31 20:50:30 +02:00
dependabot[bot]
937b9c20a1 Update sentry-sdk requirement in the python-packages group
Updates the requirements on [sentry-sdk](https://github.com/getsentry/sentry-python) to permit the latest version.

Updates `sentry-sdk` to 2.25.0
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/2.24.0...2.25.0)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-type: direct:production
  dependency-group: python-packages
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-31 15:43:06 +00:00
Klaas van Schelven
57aea4af47 github workflow: link to dead end in flake8 discussion 2025-03-31 16:29:36 +02:00
Klaas van Schelven
9e683d8c9d retention_max_event_count: in project settings form
somewhere, there's a case that such settings need a different level of
authorization; (just because you're the admin of the project doesn't mean you
should be able to do things that affect the system as a whole) but we don't
have such a level ATM.
2025-03-31 16:00:20 +02:00
Klaas van Schelven
a097e25310 issue.stored_event_count: consequences for 'irrelevance'
document & assert
2025-03-31 15:25:59 +02:00
Klaas van Schelven
ce87d901a1 Tests: use known_broken more aptly
for those tests that rely on a single sample, just pick a non-broken one,
rather than have skip-semantics
2025-03-31 14:55:39 +02:00
Klaas van Schelven
9b1911aded Fix issue.stored_event_count for eviction/retention 2025-03-31 14:51:58 +02:00
Klaas van Schelven
3daf3ce772 Document that interrupting SELECT in sqlite works as we expect 2025-03-31 13:16:01 +02:00
Klaas van Schelven
66b384a87d issue UI pages: optimization
no need to calculate event_qs_count (which is potentially expensive) if that's
not used in display.

when counting was moved from the template to the view (in 1eea9268a5) it was
made unconditional; here we restore that behavior.
2025-03-31 13:07:32 +02:00
Klaas van Schelven
352f28aa2d Fix flake8 error
new per Flake 7.2.0; flake is right though
2025-03-31 10:01:08 +02:00
Klaas van Schelven
524f5ea45e Issue Tag display: for low event-counts, show more tags
and for high event-counts, display a warning about what is hidden
2025-03-31 09:56:31 +02:00
Klaas van Schelven
2d51426618 Fix user tag deduction
although it looks (in the UI) like user info is a context, it's really
just a top-level attribute in the event-data
2025-03-31 09:42:29 +02:00
Klaas van Schelven
5f1e33e377 Merge pull request #65 from bugsink/dependabot/pip/python-packages-fcff7a76c8
Update sentry-sdk requirement from ==2.23.* to ==2.24.* in the python-packages group
2025-03-28 13:01:27 +01:00
Klaas van Schelven
bac185053c Merge pull request #66 from nhymxu/fix-create-local-conf
fix: local config template missing variable
2025-03-28 13:00:41 +01:00
nhymxu
1dd4c37ce8 fix: local config template missing variable 2025-03-28 16:14:10 +07:00
Klaas van Schelven
77c485e92a More thoroughly remove 'PRs are disabled' notice
see #27

this was somehow missed on d30c3ad704
2025-03-28 09:17:15 +01:00
dependabot[bot]
2e62612d5f Update sentry-sdk requirement in the python-packages group
Updates the requirements on [sentry-sdk](https://github.com/getsentry/sentry-python) to permit the latest version.

Updates `sentry-sdk` to 2.24.0
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-python/compare/2.23.0...2.24.0)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-type: direct:production
  dependency-group: python-packages
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-21 15:57:15 +00:00
Klaas van Schelven
3c35ea5398 Eviction: note on newest-first behavior 2025-03-19 16:00:38 +01:00
Klaas van Schelven
6948f3a2e1 Dead code removal
'allowed as pass-in' but in fact we always pass-in
2025-03-19 15:53:51 +01:00
Klaas van Schelven
72ab0c68ef Log message: no need to mention 'include_never_evict'
because when you reach that point, it's always True
2025-03-19 15:43:05 +01:00
Klaas van Schelven
a2f3ad900b eviction-target not reached handling changes
this error has shown up for one of our users; I can't reproduce yet, but I can
make it better:

* log-don't-crash: not worth failing for this (drops the event, and also
  rolls back the transaction such that nothing is achieved regarding eviction)
* provide more info on-error (various counts)

NB: I've also changed the < into a <=, and combined it with a check on "loop
not done". I _think_ they are functionally equivalent, and that the new version
is simply more clear as well as slightly more efficient.

In my understanding: the old version simply looped one more time before giving
up (because it was < it needed one more iteration, and because there was no
explicit check on 'loop done' that inefficiency was needed in the old formulation).
I say "I think" because I don't have a test specific to the edge-case.
2025-03-19 15:32:39 +01:00
Klaas van Schelven
fc4aae2dea Retention tests: hit even more edge-cases 2025-03-19 14:49:29 +01:00
Klaas van Schelven
1d0c0c65ff Retention tests/clarification: filter_for_work 2025-03-19 14:33:00 +01:00
Klaas van Schelven
d3c6627556 Add a more complicated case to the retention tests
this one tests at least multiple epochs and irrelevances
2025-03-19 14:18:28 +01:00
Klaas van Schelven
1b7865d3b9 Eviction: Tests and rewrite-for-understanding of epoch_bounds_with_irrelevance 2025-03-19 11:56:55 +01:00