25 Commits

Author SHA1 Message Date
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
alex b3a2030ee8 cache scratch rerequests 2021-09-17 10:22:46 +01:00
alex b754ea5552 clean up 2021-09-03 11:29:26 +01:00
alex b3dc1aea30 link request profile and user automatically 2021-09-02 23:11:59 +01:00
alex 7075da0418 fix mypy 2021-09-02 22:05:47 +01:00
alex 75d46be328 add tests 2021-09-02 22:03:34 +01:00
alex d2e76dedb1 fix mypy problems 2021-09-02 20:50:01 +01:00
alex 234d4a7b10 use PyGithub and disable CSRF checks 2021-09-02 17:52:17 +01:00
alex 60c23c3cc4 use django User model 2021-09-02 17:27:07 +01:00