Commit Graph

33 Commits

Author SHA1 Message Date
Mark Street 158000b503 Add Sentry bot UA to bot signatures list (#1722) 2025-11-03 08:48:29 +00:00
Ethan Roseman 50a2b836b9 Migrate from poetry/black to uv/ruff (#1673)
* Migrate from poetry/black to uv/ruff

* fixes

* path change

* path pt 2

* ah

* mkst tweaks (#1674)

* mkst tweaks

* tweaks++

* doh

* tweak harder

---------

Co-authored-by: Mark Street <22226349+mkst@users.noreply.github.com>
2025-09-22 19:23:55 +09:00
Mark Street 66b10b2057 Tidy up cache-control pr per feedback (#1672) 2025-09-22 16:23:34 +09:00
Mark Street 355864e7d1 Fix cache-control header check (#1670) 2025-09-19 15:22:32 +01:00
Mark Street 87a58959da Add cache-control headers (#1669)
* Add cache-control headers

* Tweaks
2025-09-19 21:44:09 +09:00
Mark Street 7eb3a92c0c default 'last_request_data' to now() (#1577) 2025-06-02 22:26:58 +09:00
Mark Street b84be39a2f Tweak last updated (#1574)
* Avoid update spam to Profile.last_request_date

* Refresh presets every 5 mins (F5 will force a refresh anyway)
2025-06-02 10:26:21 +01:00
Mark Street 39837826d0 simplify profile creation logic in middleware (#1561) 2025-05-29 08:31:31 +01:00
Bruno Macabeus 135f4b6036 Replace classnames with clsx (#1479)
* Replace `classnames` with `clsx`

* fix python code formatting
2025-03-04 11:54:52 -06:00
Ethan Roseman 3e1f2c7b94 Change profile logging, stop reporting number of profiles (#1469) 2025-02-13 18:34:38 +09:00
Mark Street 4995dc50f4 Dont make profiles for user agentless requests (#1467)
* Don't create profiles for requests with no User-Agent

* simpler?

* comment

* Try passing a user agent in tests

* mypy

* Use BaseTestCase over TestCase/APITestCase

* fixed 1

* fixed the other 2...
2025-02-12 16:48:42 +00:00
Mark Street 54a2e24e29 Log user agent when creating new profiles (#1466)
* Log User-Agent when creating new profiles

* black

* Update backend/coreapp/middleware.py

Co-authored-by: Ethan Roseman <ethteck@gmail.com>

---------

Co-authored-by: Ethan Roseman <ethteck@gmail.com>
2025-02-12 14:07:49 +00:00
Mark Street 290bc500d1 Try to fix error when yandex bot hits api/user/scratches (#1454)
* Try to fix error when yandex bot hits api/user/scratches

* no owner means no scratches

* Add 'curl' to list of user agents to avoid creating profiles for
2025-02-11 14:52:26 +09:00
Mark Street e4f27e2341 Don't create profiles for YandexRenderResourcesBot (#1442) 2025-02-08 22:53:53 +09:00
Mark Street f2541a91b5 Don't create a profile for API requests made from Python requests lib… (#1430)
Don't create a profile for API requests made from Python requests library
2025-02-05 20:08:58 +09:00
Ethan Roseman 36edf529ca Try to fix the overabundance of profiles (#1370)
* Try to fix the overabundance of profiles

and dep updates

* thanksh, stubs

* stop using deleted password generation method in tests

* Fix silly test stuff

* fix filtering
2024-10-27 22:40:03 +09:00
Ethan Roseman efbf9350fd Fix nasty bug (#1136)
Co-authored-by: Simon Lindholm <simon.lindholm10@gmail.com>
2024-03-13 23:04:20 +09:00
Mark Street cc3e0157b1 Tweak opengraph (#1123)
* Use better API endpoint for scratch preset

* Add 'Next.js Middleware' to list of known User-Agents
2024-03-11 00:44:28 +09:00
Ethan Roseman 6d4b9b1b0a A few things (#656)
* A few things:
Make logs more brief by hiding the PATH from compile commands
Hopefully prevent the frontend server from making tons of anonymous profiles
Add a scroll bar to the problems window
Restore the old look of ScoreBadge

* black
2023-01-10 22:04:57 +09:00
Alex Bates 2e96373ac7 Projects list, creation, settings pages (#542)
* add projects list

* new project page

* mypy

* allow '.' in github identifiers

* implement project create

* project settings

* disallow anons from being project members

* uploadable project icon

* docker attempt

* fix tests

* add tests

* add description form

* refactor to add useEntity and FieldSet

* move FieldSet out of subdirectory

* use same page for project tabs

* scroll up to UnderlineNav when tab changes

* stylelint

* configure vscode mypy extension

* mypy

* fix mypy and dmypy

dmypy does not support follow_imports=silent. Instead we explicitly
disable most checks for asm_differ and m2c, which
has the same effect

* remove redundant mypy flags

* FieldSet style tweaks

* give UnderlineNav horiz padding

* fix swr mutate of project header

* few tweaks to help docker (#550)

* eth changes

* use POST/DELETE rather than PUT for project members

* add migration

* fix pr creation

* simplify project platform derivation

Co-authored-by: Mark Street <22226349+mkst@users.noreply.github.com>
Co-authored-by: Ethan Roseman <ethteck@gmail.com>
2022-10-07 20:12:18 +09:00
Ethan Roseman f50b3c32b8 disallow_untyped_defs for mypy (#477)
* Make mypy happy

* failing tests

* working

* use consistent annotation format

* remove comments
2022-07-03 23:43:59 +09:00
Ethan Roseman 6b1ee90acd Compiler/platform refactor (#396)
* foyst

* clang & agbcc

* more

* wii/gc

* more

* fix

* more

* references

* fixes

* CI fix

* nabbed em

* gcc2.7.2kmc

* meowp

* Tweak Dockerfile + other bits (#398)

* Tweak Dockerfile + other bits

* Capitalise

* Enable/disable compiler downloads via Environment variables

* appease black

* migration

* flags / presets in Compiler

* fixed tests

* /compilers

* mypy cheese

* upd8s

* name

* frontend goodness

* i18n

* cleaners

Co-authored-by: Mark Street <22226349+mkst@users.noreply.github.com>
Co-authored-by: Mark Street <streetster@gmail.com>
2022-03-14 02:33:19 +09:00
Ethan Roseman eb7534be0d Black (#380)
* Initial format

* action

* git subrepo pull --force backend/asm_differ

subrepo:
  subdir:   "backend/asm_differ"
  merged:   "ee239a2b"
upstream:
  origin:   "https://github.com/simonlindholm/asm-differ"
  branch:   "main"
  commit:   "ee239a2b"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* git subrepo pull --force backend/mips_to_c

subrepo:
  subdir:   "backend/mips_to_c"
  merged:   "6704d61f"
upstream:
  origin:   "https://github.com/matt-kempster/mips_to_c"
  branch:   "master"
  commit:   "6704d61f"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* vscode

* fix

* .
2022-02-20 23:21:38 +09:00
Alex Bates e764bfcebd split models.py into submodules (#359) 2022-02-18 03:47:04 +09:00
Ethan Roseman 323dab45d9 Prevent profiles being created for SSR requests, serializer cleanup (#274)
* Prevent profiles being created for SSR requests, serializer cleanup

* Log exceptions for diff assert errors

* oopth

* PR comments

* test

* oops

* test2
2022-01-01 22:55:01 +09:00