Commit Graph

821 Commits

Author SHA1 Message Date
Klaas van Schelven
2e8d6eee34 Add LICENCE to sentry directory
As per the git-log, the contents of that directory were actually copied to
Bugsink from GlitchTip at GlitchTip's commit af9a700a8706, but GlitchTip itself
had copied it from Open Source Sentry, as noted in the LICENCE that they
included in their sentry directory.

(Checking Bugsink's git-log, I see that some code has since been removed from
the sentry directory, but other than that nothing substantial has been
changed).
2024-09-13 14:02:02 +02:00
Klaas van Schelven
985854230d Reorganize github actions into single workflow
Easier to click on the right thing and see everything on one page
2024-09-13 11:55:38 +02:00
Klaas van Schelven
55aa917436 Integration test using the extracted event-samples 2024-09-13 11:46:25 +02:00
Klaas van Schelven
497fbacb03 Remove event-samples from codebase
Properly sourced and licensed they are now at https://github.com/bugsink/event-samples
2024-09-13 11:11:12 +02:00
Klaas van Schelven
eec8d51491 Remove various non-TODOs
either already done, or more of a 'this is a way this code could potentially
evolve in the future' (but not a 'we must do this')
2024-09-13 10:05:22 +02:00
Klaas van Schelven
79c9413256 Remove TODO about indexing on Project (id, sentry_key)
This was probably about the making Project.objects.get(id, sentry_key)
more efficient, but

* I don't have an indication it's a bottleneck
* It may very well be turned into a get-by-id, check-for-key idiom,
  in which case the index won't help.
2024-09-13 10:03:20 +02:00
Klaas van Schelven
6f679bc172 Settings 'TODOs'; reflect current thinking on them 2024-09-13 09:52:06 +02:00
Klaas van Schelven
ff618099dc event-model TODOs: reorganize and reflect that these are not TODOs for now 2024-09-13 09:51:30 +02:00
Klaas van Schelven
98caf0ec55 Notifications: link to /accounts/preferences/ 2024-09-13 09:41:44 +02:00
Klaas van Schelven
3d66a60b41 Hide away links to admin interface 2024-09-13 09:12:28 +02:00
Klaas van Schelven
a118066129 Django admin forms: do not mess up my specially crafted fields please
* no stripping
* no introduction of '\r'
2024-09-12 14:08:46 +02:00
Klaas van Schelven
eb08bd562c When there's no (meaningful) release info, don't display it 2024-09-12 13:58:36 +02:00
Klaas van Schelven
e340fab784 SVG dropdown icons: properly grey-out when disabled
this went wrong in 0df5f891c4, when we turned these into SVGs
2024-09-12 13:34:56 +02:00
Klaas van Schelven
cdf08b6d46 Hide the thead-checkbox in the issue_list if there's no issues 2024-09-12 12:54:23 +02:00
Klaas van Schelven
49bf71731f Sprinkle atomic_for_request_method decorartr through users/views.py
<<mubles something about middleware>>
2024-09-12 12:46:12 +02:00
Klaas van Schelven
7b5aaca3ac Preferences form 2024-09-12 12:41:40 +02:00
Klaas van Schelven
9e4b326ab6 whitespace 2024-09-12 12:41:22 +02:00
Klaas van Schelven
10c91ccbdc fix tests
recently introduced (e59fd3a225) caching made it so that repeated calls to
create_release_if_needed no longer work if releases have been created in the
meantime.

In actual usage create_release_if_needed is always called on a single project
so I _think_ just calling `fresh` in the tests is good way to get to green
tests again.
2024-09-12 12:17:47 +02:00
Klaas van Schelven
d5c84ded0e Add system check for SINGLE_USER mode 2024-09-12 11:05:29 +02:00
Klaas van Schelven
7bae9a0c91 deduce_allowed_hosts developer ergnomics fix 2024-09-12 10:27:30 +02:00
Klaas van Schelven
7500649566 HTTPS configuration: implement 2 system-check warnings 2024-09-12 10:22:46 +02:00
Klaas van Schelven
e59fd3a225 Implement 'occurs_in_last_release' 2024-09-12 09:49:22 +02:00
Klaas van Schelven
a198eaf9df ALLOWED_HOSTS: deduce from BASE_URL 2024-09-12 09:15:44 +02:00
Klaas van Schelven
3064b1ec8c Add _sanitize to settings (initially: for BASE_URL)
I thought about removing the 'no trailing slash' remark everywhere, but that
would leave people that actually care about these things guessing. (with, without, both ok?)
2024-09-11 16:26:49 +02:00
Klaas van Schelven
c893293c50 textual, SDK setup (WIP) 2024-09-11 09:23:16 +02:00
Klaas van Schelven
288f25f7a1 in SINGLE_TEAM mode, don't show 'teams' on the homepage 2024-09-10 22:19:49 +02:00
Klaas van Schelven
952e00f79d USER_REGISTRATION: default to CB_MEMBERS
In the trade-off between "virality" (easy access) and security, I'd
like to err a bit more towards security for this case.

My current thinking: complete openness would be too surprising. And
at the level we're at post-commit, at least one more action must be
taken by the superuser before it's potentially out-of-control (that
action being: inviting someone who's then inviting the world)
2024-09-10 13:07:41 +02:00
Klaas van Schelven
1f03445554 Add settings view 2024-09-10 12:58:49 +02:00
Klaas van Schelven
02687ff9f4 Fix new-project permission-check
to match what I already had decided the model was, namely the condition for 'can_create'
in the project_list view
2024-09-10 09:02:30 +02:00
Klaas van Schelven
d4d292e4be Remove perm-based permission-checks
For now, sticking to "how it actually works" is more important than "what we
might need in the future". We don't have an admin-group with actually handed
out perms yet, and we do have the recommendation to create a superuser in the
installation docs. So let's just explicity check for that.

(I found these checks while working on actual breakage in the previous commit)
2024-09-10 08:51:00 +02:00
Klaas van Schelven
3b0b11d069 Fix team creation permissions
settings.TEAM_CREATION was simply unused; an oversight.
2024-09-10 08:48:46 +02:00
Klaas van Schelven
2e70197825 Add check_migrations command
this way, at least in the Docker setup, you'll get a meaningful error when you
try to start up a half-baked server
2024-09-09 15:31:14 +02:00
Klaas van Schelven
67cfbb58d7 Use 'monofy' package now that it is extracted 2024-09-04 22:54:27 +02:00
Klaas van Schelven
ce6fe06315 Update tagline 2024-09-04 09:22:52 +02:00
Klaas van Schelven
dfcfb41ea9 Remove another comment about ALLOWED_HOSTS
We already removed this one from the place where it matters most, i.e. the
recommended template.

The key bit of info is: the hard bit is in doing this for HTTPS/SSL, because
in that case you don't have a certificate (it could be for any web address).
Details are in the website's repo, in templates/production-install.html.
2024-09-04 09:14:08 +02:00
Klaas van Schelven
e18cdac8ea Ignore built Docker images 2024-08-29 11:02:50 +02:00
Klaas van Schelven
68c556cdca Comment update about WAL & Snappea 2024-08-29 10:23:10 +02:00
Klaas van Schelven
3cd3ef6b12 Add development requirements to github workflow 2024-08-29 10:07:31 +02:00
Klaas van Schelven
b1baa529d4 Use '&&' and '|||' in server-unified syntax 2024-08-29 08:39:34 +02:00
Klaas van Schelven
4c38473865 server-unified: generalize for serial/parallel approach that is not django-specific 2024-08-29 08:34:06 +02:00
Klaas van Schelven
6a705b9980 'requests' is needed (as it stands) for production too 2024-08-29 08:30:14 +02:00
Klaas van Schelven
9c32b12649 Split out requirement.development.txt 2024-08-28 22:05:08 +02:00
Klaas van Schelven
926b7c2b91 Note on select_for_update, the mysql approach 2024-08-28 19:57:09 +02:00
Klaas van Schelven
6bb853cd22 Comments about sqlite: take mysql into account too 2024-08-28 15:40:06 +02:00
Klaas van Schelven
4e613a943e Port 8000 as the default port _everywhere_
This is more canonical with stuff 'elsewhere on the internet'

we already did it behind-the-scenes for 'recommended gunicorn', so the
harmonization is in having the same default for the rest.
2024-08-28 15:21:00 +02:00
Klaas van Schelven
a8c5e447c8 atomic_for_request_method: put on teams/projects views too
discovered while playing with mysql;
drive-by change, i.e. not yet tested.
2024-08-28 15:08:41 +02:00
Klaas van Schelven
eb16b0f404 pyproject.toml minor changes and dead-end 2024-08-28 14:54:19 +02:00
Klaas van Schelven
dd4aad2a6a Remove TODOs from conf_templates; recommend QuietConsoleBackend
the TODOs are not TO BE DONE; crosslinking like this manually is a maintenance
nightmare
2024-08-28 14:46:34 +02:00
Klaas van Schelven
709f3c73d2 Remove dead code 'DEFAULTS'
This was copied into the conf-template from the snappea/settings.py; but never
properly integrated (and it's not something I'd like to suggest as a point of
configuration)
2024-08-28 14:32:00 +02:00
Klaas van Schelven
77d39e02c0 Set a timeout for email 2024-08-28 14:28:06 +02:00