Commit Graph

1005 Commits

Author SHA1 Message Date
Klaas van Schelven a5bc27032a Visualize trimmed data ('x items trimmed')
Fix #18

Similar to [the request for the same feature in Sentry](https://github.com/getsentry/sentry/issues/68426)

SDK-side complaints:

* https://github.com/getsentry/sentry-python/issues/377
* https://github.com/getsentry/sentry-python/issues/805
* https://github.com/getsentry/sentry-python/issues/1041
* https://github.com/getsentry/sentry-python/issues/1105
* https://github.com/getsentry/sentry-python/issues/2121
* https://github.com/getsentry/sentry-python/issues/2682
* https://github.com/getsentry/sentry-python/issues/3209
* https://github.com/getsentry/sentry-python/issues/3634
* https://github.com/getsentry/sentry-python/issues/3740
2024-12-18 17:05:26 +01:00
Klaas van Schelven c3d6fdce1c Better favicon
like 509b1ef2be (but we actually have 2 locations for this file)
2024-12-18 09:20:50 +01:00
Klaas van Schelven b78e8438f5 Clarify when CustomWSGIRequest is used (hint: always) 2024-12-17 22:00:04 +01:00
Klaas van Schelven 8341d24b1d Comments and naming of CustomWSGIRequest 2024-12-17 21:51:25 +01:00
Klaas van Schelven 7303e6f978 Be explicit about what ALLOWED_HOSTS are when the error triggers
See https://github.com/bugsink/bugsink/issues/17#issuecomment-2549395508 for a log that would
be better after the present commit; in fact, it would probably take the question away
2024-12-17 21:23:47 +01:00
Klaas van Schelven 6497f482ae Correctly order Turningpoints (as per comment) 1.0.1 2024-12-16 22:04:03 +01:00
Klaas van Schelven 2739422968 Generic SDK: link to 'list of issues' 2024-12-16 21:50:19 +01:00
Klaas van Schelven 1d6854014b Warning message textual 2024-12-16 21:42:37 +01:00
Klaas van Schelven bd5554a439 Merge branch 'attempt-at-bettter-guess-filename' 2024-12-16 21:34:29 +01:00
Klaas van Schelven 5810c1c580 choose_lexer_for_pattern: choose DjangoLexer explicitly when platform is Python
Other than fixing syntax higlighting for my favorite language, this has
the advantage of actually being a _deterministic_ solution (the previous
solution would do first-match) which makes the extra complexity worth-while.
2024-12-16 21:32:21 +01:00
Klaas van Schelven 454a90ba55 Comment about the uselessness of analyse_text in one more location
There isn't really a pygments issue for this, except perhaps
https://github.com/pygments/pygments/pull/2005
2024-12-16 13:29:50 +01:00
Klaas van Schelven b961e6a943 Attempt at better guess_lexer_for_filename
the idea: guess on filename first, and on code second.
prompted by: getting a Django Template Parser to work.

however, this won't fly, because lexer.analyse_text is basically useless
(the parts that are implemented __at all__ are often based on some initial
bytes in the file, which is useless in our context of code snippets)
2024-12-16 13:26:44 +01:00
Klaas van Schelven 76bb6ace2b Typo in comment 2024-12-16 13:23:31 +01:00
Klaas van Schelven 509b1ef2be Better favicon (taken from the Bugsink website) 2024-12-16 12:37:30 +01:00
Klaas van Schelven c1a74542f2 Breadcrumbs can be w/o values too (see 2 prev. commits) 2024-12-16 11:24:20 +01:00
Klaas van Schelven ed9ffa248d jsonschema check: allow for .values to be missing
see #16
2024-12-16 11:23:55 +01:00
Klaas van Schelven b597d91af7 Become robust for lack of .values key in exception
Fix #16
2024-12-16 11:22:32 +01:00
Klaas van Schelven 5907e49ce8 In context_processors, default to AnonymousUser for request.user
i.e. use a Null Object Pattern for it.
Because None.is_superuser won't work
Observed to go wrong when handling ALLOWED_HOSTS failures.
Fix #17
2024-12-16 09:26:59 +01:00
Klaas van Schelven fce40f0581 Add some cleanup of objects to make_consistent command 2024-12-13 16:07:01 +01:00
Klaas van Schelven 15126018e6 Set (modern equivalent of) TEMPLATE_DEBUG=True 2024-12-12 13:53:53 +01:00
Klaas van Schelven 2f62c02c92 Deal with nones-in-arrays in pre/post-context
Fix #15
2024-12-09 09:56:30 +01:00
Klaas van Schelven 77a4fd321d LICENSE: point to terms on website 2024-12-04 11:55:44 +01:00
Klaas van Schelven 8ea88064dc LICENSE: clarify Docker installs 3rd party packages too 2024-12-04 11:23:28 +01:00
Klaas van Schelven 28314a2683 Language icons: add to SDK page 1.0.0 2024-12-03 09:14:29 +01:00
Klaas van Schelven 7849cf27b5 'recommended' setup: point slightly less strongly in this direction
I'm personally a big fan of the single-server setup, but the reality is that a lot of
people like Docker, and we don't want to scare people away from the Docker setup either
(especially since it's pretty good these days)
2024-12-02 16:25:00 +01:00
Klaas van Schelven ccd0db8701 Add sample docker-compose 2024-12-02 10:05:42 +01:00
Klaas van Schelven c802c4692c point to correct documentation page 2024-11-29 16:43:33 +01:00
Klaas van Schelven 3f432727d9 Warn about lack of EMAIL_BACKEND in the interface 2024-11-29 15:59:14 +01:00
Klaas van Schelven 93ce454fb4 SDK setup icon: use a plug 2024-11-29 09:19:26 +01:00
Klaas van Schelven 944f9d9a84 Add title tags to (parent elements of) svg icons 2024-11-29 08:25:11 +01:00
Klaas van Schelven b8eff86971 SDK: specific instructions on reporting issues 2024-11-28 16:34:59 +01:00
Klaas van Schelven f7280eaf75 flake8 2024-11-28 14:34:01 +01:00
Klaas van Schelven ad3e758822 When Dogfooding, monkey-path MAX_DATABAG_* constants
See https://github.com/getsentry/sentry-python/issues/3209 for why
2024-11-28 14:28:35 +01:00
Klaas van Schelven 719fcae322 Friendly 400 page that shows the error, even when DEBUG=False
when people run into ALLOWED_HOSTS troubles, they should get info on-screen ASAP
0.1.20
2024-11-28 12:43:14 +01:00
Klaas van Schelven e7ddfa0855 Better 500 template (show exception, point to logs) 2024-11-28 12:33:02 +01:00
Klaas van Schelven 2a0580cb4e Don't pin sentry-sdk 2024-11-28 11:44:31 +01:00
Klaas van Schelven 95c9dfa7a1 Use fastjsonschema's detailed_exceptions=False
We don't use fastjsonschema's exception info, falling back to jsonschema for that. Not using the info is faster.
Possible because https://github.com/horejsek/python-fastjsonschema/issues/187 was completed.

I did not at present do any speed/memory checks, but the diff is quite promising :-)
2024-11-28 11:42:16 +01:00
Klaas van Schelven cd3818a7ba Docker throwaway as the quickstart in the README 2024-11-28 11:33:28 +01:00
Klaas van Schelven d390658e9b deduce_allowed_hosts: localhost/127.0.0.1 -> *
Reverts part of 8ff309cd8f7a; in that commit I was inspired by the comment
right above it to make it more strict, but taking a step back (and inspired
by a user tripping over ALLOWED_HOSTS validation) defaulting to "*" for
basically non-configured setups is actually better.

Preserved from 8ff309cd8f: the idea that both 127.0.0.1 and localhost are
seen as localhost.
2024-11-27 08:35:30 +01:00
Klaas van Schelven 7645fb85cb minor textual 2024-11-22 17:35:04 +01:00
Klaas van Schelven bccc69204c Add mysql devel settings 2024-11-22 17:34:10 +01:00
Klaas van Schelven 68f2e714d5 Fix resolve-from-list on MySQL
Mysteriously, "Truncated incorrect DOUBLE value". But we have no Double fields.
Answer: adding a value to a field (with "+") tries to convert to Double first
on MySQL. Using Concat solves it.

Showed up in all paths exept "resolved by next".

Fix #14
2024-11-22 17:32:20 +01:00
Klaas van Schelven 96deb18334 SENTRY_DSN conf / eat-your-own-dogfood more easily configurable 0.1.19 2024-11-22 10:53:31 +01:00
Klaas van Schelven 60e51c1f08 Clarify (non-)usage of CaptureExceptionsMiddleware 2024-11-22 10:29:01 +01:00
Klaas van Schelven 17e600d942 Typo in log-message 2024-11-22 10:22:29 +01:00
Klaas van Schelven fa0c3aa325 X-Forwarded-For spoofing tool as an arg; Remove accidentally checked in file 2024-11-22 09:29:27 +01:00
Klaas van Schelven 1455d4dbeb UA parsing: deal with lists
See #13
2024-11-22 09:21:36 +01:00
Klaas van Schelven 1ca83bba83 SetRemoteAddrMiddleware for X-Real-IP and X-Forwarded-For 2024-11-21 09:53:16 +01:00
Klaas van Schelven 0ad878d1bc AttrLike dict: better exceptions 2024-11-20 16:30:48 +01:00
Klaas van Schelven ca7a062c7a Avoid chaining exceptions
...
2024-11-20 16:03:58 +01:00