1663 Commits

Author SHA1 Message Date
Klaas van Schelven
4fd0ba04fd Update hardcoded list of branches in GitHub CI workflow
in anticipation of the upcoming 2.0 release
see 87f5a5887e
2.0.0
2025-09-16 08:58:47 +02:00
Klaas van Schelven
5a950c2238 Docker compose sample: fix major Bugsink version at 2
In #207 we introduced the idea of pinning; but now that we're about
to release 2.0, let's immediately update the pin
2025-09-16 08:53:08 +02:00
Klaas van Schelven
ef6f896604 CHANGELOG 2.0.0 2025-09-16 08:51:59 +02:00
Klaas van Schelven
833776c646 tailwind: add dark-mode default for border color
Enhance the border-color patch by adding a dark-mode default (slate-800).
2025-09-15 16:41:36 +02:00
Klaas van Schelven
1611ea45d2 Merge pull request #211 from bugsink/canonical-api
"Canonincal" (Bugsink-specific) API: first version
2025-09-15 16:41:25 +02:00
Klaas van Schelven
8b241f0a11 Fix: trim trailing whitespace in stacktrace markdown
Chose to fix output, not loosen the test: trailing spaces are invisible
noise, vary by editors/OS, and break deterministic rendering in Markdown.
Stripping them makes output more useful in general and avoids flaky diffs.
2025-09-15 16:37:28 +02:00
Klaas van Schelven
4d18008cd8 Bandit fixes
also brings the exception-handling of apply_sourcemaps inline
w/ issues/views.py (as promised per the module header)
2025-09-15 16:29:06 +02:00
Klaas van Schelven
d3fd513e43 Remove 'last' handling of exceptions md
you generally just want the whole stacktrace, I'd say
2025-09-15 16:24:59 +02:00
Klaas van Schelven
17007d5f55 MarkDown: in the regular UI too
See #127
2025-09-15 15:28:07 +02:00
Klaas van Schelven
5bb4dc1f20 Expose event stacktrace as markdown
Adds a `stacktrace_md` field to EventSerializer and a `/stacktrace` action
returning the same markdown (but as the full response).

Also switches `data` to use `get_parsed_data()` (as it should have) and
in json dict format (rather than str).
2025-09-15 15:13:02 +02:00
Klaas van Schelven
60b44de89c Merge pull request #208 from LennardSchwarz/small-mem-footpringt-postgres
Migrate docker compose example to alpine postgres
2025-09-14 14:52:31 +02:00
Klaas van Schelven
c3541676ca Merge pull request #203 from faxi05/main
Improve Slack alerts to work with Mattermost.
2025-09-14 14:39:00 +02:00
Klaas van Schelven
f0a2bb753a Merge pull request #207 from LennardSchwarz/add-version-1-in-docker-compose
Specify major bugsink verison in docker compose example
2025-09-14 14:38:10 +02:00
Lennard Schwarz
da76462f94 Rename docker compose sample; Migrate to alpine postgres
Rename

Rename file
2025-09-14 14:36:44 +02:00
Lennard Schwarz
7d9aab510f Fix major bugsink verison in docker compose example 2025-09-14 14:33:41 +02:00
Klaas van Schelven
160e724c0b Merge pull request #209 from LennardSchwarz/rename-compose-file
Rename compose-sample.yml to docker-compose-sample.yml
2025-09-14 11:28:30 +02:00
Lennard Schwarz
c3e4a93bf5 Rename compose file to docker compose 2025-09-13 18:17:34 +02:00
Klaas van Schelven
bfcbf8005a Note/comment about CursorPagination vs other approaches 2025-09-12 17:28:10 +02:00
Klaas van Schelven
0fb81b29ae markdown_stacktrace util: display an event's stacktrace in markdown 2025-09-12 16:41:39 +02:00
Klaas van Schelven
3156f05756 Refactoring into the factory style
done while trying to fix an unrelated error; keeping this as a
stylistic change regardless
2025-09-12 11:49:32 +02:00
Klaas van Schelven
a4e84fa0a3 Add Swagger using drf-spectacular
See #146

DRF 3.16 and Django 5.2 are not in drf-spectacular's published
list of supported but here's some sources that give reason to believe
they are supported _in practice_:

* https://github.com/tfranzel/drf-spectacular/issues/1417
* https://github.com/tfranzel/drf-spectacular/issues/1414
2025-09-12 11:46:44 +02:00
Klaas van Schelven
9ad66d7b50 API: adhere to Bugsink's DB-transactional model
as per https://www.bugsink.com/blog/database-transactions/
2025-09-11 18:01:05 +02:00
Klaas van Schelven
1c0745f24f API: support expand=...
(implemented only for project.team for now, but in a generic way
2025-09-11 17:38:42 +02:00
Klaas van Schelven
7bf906a8fd API: Release Pagination
this also fixes the index on releases (since they are always ordered
in the context of a particular project, this should be part of the
index)

See #146
2025-09-11 16:53:15 +02:00
Klaas van Schelven
07b792775a API pagination 2025-09-11 16:52:14 +02:00
Klaas van Schelven
30ae7881aa Teams & Projects API
See #146
2025-09-11 09:55:32 +02:00
Klaas van Schelven
c222581951 Add tests for create_release_if_needed 2025-09-11 09:55:23 +02:00
Klaas van Schelven
ee5b49e951 API: Sketch TODO for grouping_key[s] fields
See #146
2025-09-11 09:55:21 +02:00
Klaas van Schelven
b0b2573d17 Releases API
Fix #191
See #146
2025-09-11 09:55:15 +02:00
Klaas van Schelven
829cea1a80 detection of a new release through an event ⇏ triggering of a TurningPoint
This more exactly expresses semantics by itself, and is also in preparation of
creating releases through the API (which have no triggering event)

See #146
2025-09-11 09:55:09 +02:00
Klaas van Schelven
3bab02fda2 API: Remove global Grouping routes
grouping will return later as Issue.grouping_keys & Event.grouping_key
i.e. with the relevant info directly resolved

See #146
2025-09-11 09:55:01 +02:00
Klaas van Schelven
c4c749d1e4 Issues API
See #146
2025-09-11 09:54:51 +02:00
Klaas van Schelven
4844c72415 Events API
See #146
2025-09-11 09:54:43 +02:00
Klaas van Schelven
5bdfe89a6a Leave comment about LoginRequiredMiddleware 2025-09-11 08:41:54 +02:00
Klaas van Schelven
63c54b2107 Comment about is_deleted & indexes 2025-09-10 09:02:44 +02:00
Klaas van Schelven
576309258b Merge pull request #204 from bugsink/dependabot/pip/python-packages-f85024139b
Update whitenoise requirement from ==6.9.* to ==6.10.*
2025-09-09 21:31:12 +02:00
Klaas van Schelven
1262719e4b Comments about (SDK-generated) event_id's uniqueness
'original sin' in 238fb6dda7
2025-09-09 21:13:54 +02:00
dependabot[bot]
70200898e3 Update whitenoise requirement in the python-packages group
Updates the requirements on [whitenoise](https://github.com/evansd/whitenoise) to permit the latest version.

Updates `whitenoise` to 6.10.0
- [Changelog](https://github.com/evansd/whitenoise/blob/main/docs/changelog.rst)
- [Commits](https://github.com/evansd/whitenoise/compare/6.9.0...6.10.0)

---
updated-dependencies:
- dependency-name: whitenoise
  dependency-version: 6.10.0
  dependency-type: direct:production
  dependency-group: python-packages
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-09 15:15:45 +00:00
Lutz Lesener
c5c1a8d8cb Fix linting errors 2025-09-09 16:10:44 +02:00
Lutz Lesener
8800c0c65c Implement reviewer's suggestions on PR #203. 2025-09-09 15:36:04 +02:00
Lutz Lesener
08331b2248 Improve Slack alerts to work with Mattermost. 2025-09-09 13:52:22 +02:00
Klaas van Schelven
a87d846a99 API: auth (using the global token)
See #146
2025-09-09 10:41:03 +02:00
Klaas van Schelven
4c2c26743e Canonical API 'skeleton': urls & views
this gives me something to look at and work with, despite
being wildly incomplete

See #146
2025-09-09 10:07:10 +02:00
Klaas van Schelven
9a36426689 Fix urls.py
editing mistake in be7ac2043b
2025-09-08 15:39:40 +02:00
Klaas van Schelven
be7ac2043b Implement /api/0/ endpoint
Fix #97
2025-09-08 14:50:23 +02:00
Klaas van Schelven
d949c984c8 Tailwind 4 border-color fix (preserve tailwind 3 behavior) 2025-09-08 10:13:12 +02:00
Klaas van Schelven
f143645b9a Fix development settings
Broken in a4ecd386b6 while experimenting with `script_name`
(the experiment was checked in)
2025-09-08 09:54:45 +02:00
Klaas van Schelven
81e27efe24 Move conf utils to separate module
In settings-code I want to import as little as possible,
as doing it may trip up things, especially in the context
of transitive/circular imports. Better to put the 3 utils
that are used in settings into a separate module.
2025-09-08 09:49:39 +02:00
Klaas van Schelven
a58ceba31f transaction: use connection.vendor instead of settings.DATABASES engine check
connection.vendor reflects the actual backend of the connection in use,
not just the ENGINE string in global settings. This makes the check more
robust when multiple databases are configured (e.g. main DB on MySQL,
snappea DB on SQLite). The sqlite-specific handling now only applies to
the relevant connection.

See #117
2025-09-05 23:15:33 +02:00
Klaas van Schelven
4ac572f31c Comment that we don't use whitenoise.CompressedManifestStaticFilesStorage
had me surprised for a little bit while debugging another issue (of which I
thought it might have been caused by whitenoise). Better to have something
to grep for
2025-09-05 23:11:29 +02:00