Commit Graph

1265 Commits

Author SHA1 Message Date
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
Klaas van Schelven
98a2ab9054 Remove nohub/CaptureExceptionMiddleware
these were development-tools in the 'cornless' disposable web-server style;
not using them now, and if I ever need them back I'll dig them out of the git history.

see https://www.bugsink.com/blog/disposable-web-servers/
2025-03-19 10:18:03 +01:00
Klaas van Schelven
8b18939c6f coverage: configure for local development 2025-03-19 10:09:51 +01:00
Klaas van Schelven
38d49f5000 Django Debug Toolbar: don't crash when not installed
It happens with some regularity that people notice the "DEBUG" setting
and try to run with DEBUG=True. Although this is not documented nor recommended
you can't really blame 'm, and it would probably help them debug their issues.

Pre-this-commit that was not possible, because the debug toolbar is usually not
installed (and on e.g. on Docker this is very annoying to do).
2025-03-19 08:53:21 +01:00
Klaas van Schelven
eb780c0008 Snappea Foreman: don't crash on "non-bullet-broof" pid-check 2025-03-19 08:53:21 +01:00
Klaas van Schelven
35c1095248 Merge pull request #63 from bugsink/dependabot/pip/python-packages-c12e06c428
Update sentry-sdk requirement from ==2.22.* to ==2.23.*
2025-03-19 08:52:09 +01:00
dependabot[bot]
9fd3aaf887 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.23.1
- [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.22.0...2.23.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-18 16:02:05 +00:00
Klaas van Schelven
caf4cef193 1.4.1 changelog 2025-03-17 16:03:30 +01:00
Klaas van Schelven
a383aee6c0 Dockerfile: pip install "psycopg[binary]"
needed for testing with the postgres DB backend

See #21, #61
2025-03-17 15:56:36 +01:00
Klaas van Schelven
492de6d94f sqlite: per-query timeout configurable 2025-03-17 09:26:15 +01:00
Klaas van Schelven
e02d04d879 Make EMAIL_TIMEOUT configurable on Docker
Fixes #60
2025-03-16 11:30:26 +01:00
Klaas van Schelven
9290d24b7e Fix typo in database-scheme check for Docker
Fix #61
2025-03-16 11:22:11 +01:00
Klaas van Schelven
b7e830a511 Snappea stale tasks: show total_seconds
as per the Python docs:

> It is a somewhat common bug for code to unintentionally use this attribute
> when it is actually intended to get a total_seconds() value instead

https://docs.python.org/3/library/datetime.html#datetime.timedelta.seconds
2025-03-13 15:41:05 +01:00
Klaas van Schelven
170222b84c Fix date on changelog 2025-03-13 15:23:44 +01:00
Klaas van Schelven
5a9bab9e20 EagerPaginator
as explained in the comment
2025-03-13 14:49:49 +01:00
Klaas van Schelven
cda7e454c9 init_tags command: avoid unbounded WAL growth 2025-03-13 13:20:35 +01:00
Klaas van Schelven
1d8d6f1ac6 'flatten' migrations for tags
unreleased migrations: preference to flatten those;
happens to also fix mysql tests (for which the datamigraion failed)
2025-03-13 09:23:25 +01:00