Commit Graph

48 Commits

Author SHA1 Message Date
Mark Street 6ac27e6b5f Add timeout to github oauth (#1727) 2025-11-05 09:35:50 +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 7eb3a92c0c default 'last_request_data' to now() (#1577) 2025-06-02 22:26:58 +09:00
Mark Street 1cb3b5cdcb Don't store access_token in the db (#1571) 2025-06-02 10:27:14 +01:00
Mark Street 4353038454 Make 'family' a raw id field in admin panel (#1557) 2025-05-25 17:05:02 +09:00
Mark Street 64ca105145 Add 'family' slug to track ultimate ancestor for a Scratch (#1548)
* Add 'family' slug to track ultimate ancestor for a Scratch

* Ensure parent is not None in family filter

* Break migration into batches

* ensure family is not empty when finding family members
2025-05-24 19:55:35 +01:00
Mark Street a8995a4a4a Add extra sanity check to user.is_online() (#1453)
* Add extra sanity check to user.is_online()

* mypy?
2025-02-10 18:46:08 +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 90b1b88543 Update backend deps, try to fix bug, remove CompilerConfig (#1256)
* Update backend deps, try to fix bug, remove CompilerConfig

* Upgrade Poetry in Docker to 1.8.3, fix ordering of fields list
2024-05-27 01:52:00 +09:00
Ethan ee3ebb7f95 Fix admin panel for modifying Presets 2024-05-26 16:26:31 +09:00
Ethan Roseman 9a02a004d9 Remove old preset-creation migration from the nation (#1247)
* Remove old preset-creation migration from the nation

* Victory?

* This time for sure
2024-05-20 19:37:46 +09:00
axel7083 efe7024215 feat(backend): allowing auth users to create presets (#1228)
* feat(backend): allowing auth users to create presents

* test(preset): improve coverage

* fix: linter&preset behaviour

* fix: remove unused import

* fix: mypy

* fix: mypy return type
2024-05-16 20:50:16 +09:00
Mark Street ed910d70a6 Fix editing of scratches on /admin endpoint (#960)
* Fix editing of scratches on /admin endpoint

* hide claim_token from scratch edit admin page

* much better

* myfry

* pr feedback

* black
2024-02-11 03:22:24 +09:00
Ethan Roseman 139ac9ff73 Stop relying on GitHub's API so much (#956)
* Move some github details into model

* Nevermind - just don't rely on the API at all lol

* comment

* tidying

* remove unneeded mock

* remove the 'small' profile
2024-02-09 21:50:40 +09:00
Mark Street b792d4d517 Attempt to fix 500 on missing github user (#949)
* Attempt to fix 500 on missing github user

* mypy

* mycry
2024-02-05 04:35:21 +09:00
Luke Street 85c2e215d5 Use random token for claiming scratches (#945)
* Use random token for claiming scratches

* Fix migration dep

* Fix claim_token serialization & address PR comments

* Improve error handling

* Update backend tests

* reformat

* Update another test

* Minor update to ClaimableScratchSerializer
2024-01-19 16:02:05 +09:00
Luke Street 5369f81263 Support binary target_obj in scratch creation (#943)
* Support binary `target_obj` in scratch creation

Also support `--disassemble=` in `diff_flags`,
so the scratch can be limited to a single function
within the object.

Resolves https://github.com/decompme/decomp.me/issues/215

* Test fixes

* Validate uploaded file size & magic

Remove `-D` from `skip_flags_with_args`,
we want to keep defines.
2024-01-17 15:52:41 +09:00
Ethan Roseman da7869adf6 Update to Django 5 (#931)
* Update to Django 5

* Ah yes, the classic yaml number problem

* Typechecking issues
2023-12-17 20:56:07 +09:00
Ethan Roseman c80abfaa05 Platform page & preset page (#906)
* Platform page & preset page

* Fix mypy

* improve styles

* move presetUrl to its own file and fix star import

* oops

* Show number of scratches on platform / preset page

* Remove url field stuff & leftovre ProjectFunction stuff

* Remove more projectfunction stuff

* black

* Attempting to remove most url and html_url

* oops

* mypy

* fixz

* suggz

---------

Co-authored-by: Alex Bates <alex@nanaian.town>
2023-11-13 22:23:12 +09:00
Ethan Roseman 8d7deedb12 Set blank=True on json fields (#905) 2023-10-31 07:23:59 +09:00
Ethan Roseman 4ae89872e2 Presets in the DB (#897)
* Organize tests, update settings, backend deps

* Remove project import code from backend

* Remove some frontent project code

* more progress, project cleanup

* more preset work

* .

* upd8z

* Admins can delete scratches & preset migration

* bye, source presets

* fixes & changes

* Preset in admin panel & rename migration

* mypy

* Fix perset viewset & tests

* Change compilers hash files

* test annotations so Windows doesn't run them

* Mark nits

* Preset auto ID field

* scratch as reference (1/?)

* backend fixes to preset (2/3)

* Use preset ID instead of name in frontend

* update frogger preset

* I broke one of the ten commandments of react

* finishing touches (3/3 lol)

* Update serializers.py
2023-10-27 23:40:59 +09:00
Ethan Roseman 23a3087a38 Sentry issue fixes (#900)
* Catch login failures and raise an exception

* Trying to fix library serialization crap (not working)

* Use validated_data instead of data

* Promments
2023-10-26 03:37:38 +09:00
Robin Lambertz e33b5fb3cf Add libraries support to presets (#873)
* Add libraries support to presets

* Add directx 5 to lego island preset

* Move libraries to named globals

* Fix bug preventing changing the version of a library
2023-10-09 20:06:25 +01:00
Robin Lambertz fb69aceded Fix libraries migration (#876) 2023-10-04 18:57:16 +09:00
Robin Lambertz e1c33d47d3 Support libraries in decomp.me (#843)
* Add script to download libraries, and download directx

* Add libraries endpoint

* Allow compiling with a library

* Add new libraries tab in frontend

* Add libraries support in CI

* Better look for the libraries

* Give pretty names to libraries

* Move Libraries to live under CompilerOpts

* typechecking hackery

* Make libraries trigger autorecomp and set the unsaved flag

* Fix libraryVersions

* Add new libraries download script to CI, docker and docs

---------

Co-authored-by: Ethan Roseman <ethteck@gmail.com>
2023-09-30 14:54:40 +09:00