Commit Graph

25 Commits

Author SHA1 Message Date
Mark Street 80fbb78e81 Remove 'include_presets' from /api/platform endpoint (#1683)
* Remove 'include_presets' from /api/platform endpoint

* 🐶 ruff ruff

* Remove broken test
2025-09-26 21:47:17 +09: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 4db4b1a16f Add ?target_only=1 to /export endpoint (#1605)
* Add ?target_only=1 to /export endpoint

* fixup tests
2025-06-12 19:46:19 +09:00
Mark Street 1cb3b5cdcb Don't store access_token in the db (#1571) 2025-06-02 10:27:14 +01:00
Mark Street b2f603a280 Remove unused etag behaviour (#1560) 2025-05-26 19:52:47 +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
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
Luke Street 2c2f876e22 Experimental objdiff integration (client-side) (#1329)
* Experimental objdiff integration (client-side)

* Work around next.js stupidity

* Port performance improvements to main diff view
2024-08-23 14:43:26 +09:00
Ethan Roseman 11b09b99f5 Family fix! (#1275)
* Family fix?

* oopth

* goofs

* good?
2024-06-10 05:46:15 -04:00
axel7083 7eb1d88b15 fix: profile field serialization in compiler view (#1273)
* fix: profile field serialization in compiler view

* fix: formatting

* Update backend/coreapp/tests/test_preset.py
2024-06-10 01:41:59 -04: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
axel7083 c208896d99 feat(presets): include profile in preset owner field (#1252)
* feat(preset): uses ProfileField for owner field

* fix: linter

* fix: format

* fix: adding proper owner type
2024-05-20 21:04:06 +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 b697699cd6 Add 1 ps2 test (#1189)
* Add 1 ps2 test

* dumb
2024-04-02 02:05:22 +09:00
Ethan Roseman 50465ab1d0 Fix asm prelude \\ing (#1184)
Fix asm prelude \ing
2024-03-31 02:42:06 +09:00
Mark Street bb4a367de1 Include M2CError response when decompilation fails due to bad context (#1170)
* Include M2CError response when decompilation fails due to bad context

* fix test
2024-03-26 15:52:45 +09:00
Ethan Roseman 509dc758c1 Remove is_you from /api/user (#1122) 2024-03-10 23:45:05 +09:00
Ethan Roseman 5cecde9d90 Attempt to decompile without context if the first decompilation fails (#1120) 2024-03-10 22:54:35 +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
Robin Avery 5a1bb6cb09 Bump m2c to 581031e (#946)
Bump m2c to 581031e603caa5abf75d26ebfb30bc11a9190a22
2024-01-21 22:25:02 +00: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 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
Mark Street edd7ee0f86 Fix permuter import (#903)
* Add test to demonstrate broken import

* Fix import from permuter
2023-10-31 07:01:54 +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