Commit Graph

990 Commits

Author SHA1 Message Date
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 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
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 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
Klaas van Schelven
84108b8edd Fix syntax-coloring for php code that doesn't happen to start w/ '<?php'
see https://github.com/pygments/pygments/issues/2502
2024-11-20 15:52:30 +01:00
Klaas van Schelven
cf4a1dbeb6 Project/team help_text 2024-11-20 14:33:04 +01:00
Klaas van Schelven
bbd444dca1 SDK: platform-specific notes for PHP, JS 2024-11-20 12:09:45 +01:00
Klaas van Schelven
e997e8fd47 Remove explicit configuration of DjangoIntegration
As per the docs it's automatic (these days). It was probably introduced at a
time when this was not yet the case
2024-11-19 12:56:30 +01:00
Klaas van Schelven
86d8577a4f SDK instructions: use texts from sdkconf; point to website for further info 2024-11-19 12:37:37 +01:00
Klaas van Schelven
2569ec4ac5 SDK instructions factored out to separate package 2024-11-19 09:25:27 +01:00
Klaas van Schelven
5b5b9bf189 README / pyproject updates 2024-11-18 15:00:57 +01:00
Klaas van Schelven
8ff309cd8f Harmonize 'localhost' v.s. '127.0.0.1' defaults
* The default is "localhost" now (as per what we write in the docs on the
  website). (It already was the default for Docker, but not for all settings
  yet)
* FREE_VERSION-nagging adapted accordingly
* create_conf: adapted accordingly.
* create_conf: Fix help-text ("BASE_URL" not "SITE_TITLE")
* deduce_allowed_hosts
    * don't just generally accept "*" for the locally hosted one, instead
      specify the 2 correct spellings
    * "and vice versa" ("localhost" accepted in your browser bar if you specify 127.0.0.1)
2024-11-18 13:36:53 +01:00
Klaas van Schelven
c68563f11e createsuperuser command: help users understand 'email' is a serious field 2024-11-18 13:21:02 +01:00
Klaas van Schelven
c02ed8e27c Rewrite comment in local.py.template for clarity 2024-11-18 09:39:07 +01:00
Klaas van Schelven
9e882fafa0 DSN page: verification of the setup should be more explicit
during user-testing, it was revealed that people think there is something
wrong when they see 'DivisionByZero' when this is in fact precisely what
was intended. Hopefully the new text removes this confusion
2024-11-15 16:43:27 +01:00
Klaas van Schelven
1780f64f90 local template: don't allow USER_REGISTRATION
as per the shown warning b/c SINGLE_USER=True
2024-11-15 16:17:13 +01:00
Klaas van Schelven
d768228f35 Add base-dir option to create-conf command
Fixes #11
2024-11-15 15:40:34 +01:00
Klaas van Schelven
71d6e89c93 Show warning message when there are many/stale snappea tasks
As discussed in #11, there are scenarios (e.g. misconfiguration) where snappea
does not pick up the tasks. Events not showing up in Bugsink, w/o further
indication why that may be, leaves people confused. Better to warn explicitly
in that case.
2024-11-15 14:51:41 +01:00
Klaas van Schelven
4a28c51b6a Tests: Add known-broken handling for events that are invalid on purpose 2024-11-15 11:20:12 +01:00