Michael Manganiello
57f1f2a013
misc: Remove unused methods from Roms handler
...
These methods are no longer used in the codebase and have been removed
to clean up the code.
2025-06-25 09:31:01 -03:00
Georges-Antoine Assi
5837cb2e59
raise error if no metadata source provided
2025-06-14 00:09:09 -04:00
Georges-Antoine Assi
56117e8105
really fix it this time
2025-06-13 22:27:36 -04:00
Georges-Antoine Assi
90a059a600
fix allt he shit
2025-06-13 21:30:13 -04:00
Georges-Antoine Assi
bd7ff8e3b6
Merge branch 'master' into hash-calc-scan-refactor
2025-06-13 12:05:58 -04:00
Georges-Antoine Assi
419b9eee3b
fix pytest
2025-06-12 21:16:45 -04:00
zurdi
a3a3779bad
fix: correct assertions in platform and ROM tests to reflect expected behavior
2025-06-12 14:53:35 +00:00
zurdi
b52ea89115
feat: add 'missing' flag to platforms and roms, update related handlers and schemas
2025-06-12 01:20:20 +00:00
Georges-Antoine Assi
1e0c5527ee
fix conftest to create romuser
2025-05-19 12:47:47 -04:00
Georges-Antoine Assi
672a5c6644
Merge branch 'master' into true-pagination
2025-04-05 20:41:03 -04:00
Georges-Antoine Assi
43f48899c9
add new endpoints to get some or all states and saves
2025-03-26 19:21:21 -04:00
Georges-Antoine Assi
05a78e03ce
new method for getting non-pagniated roms
2025-03-21 10:08:44 -04:00
Georges-Antoine Assi
1952f80b87
fix the rest of the tests
2024-12-22 17:00:35 -05:00
Georges-Antoine Assi
2e4e557eef
fixup running scans and loading
2024-12-21 12:06:37 -05:00
Georges-Antoine Assi
2b600c2725
rename rom.file_size_bytes
2024-12-21 09:26:33 -05:00
Georges-Antoine Assi
55eee458a1
actaully complete backend
2024-12-21 00:37:37 -05:00
Georges-Antoine Assi
7bde4aee70
complete the rst of the files
2024-12-20 23:45:25 -05:00
Georges-Antoine Assi
fc85fcb6a9
fix pytests
2024-09-09 00:01:37 -04:00
Georges-Antoine Assi
1ea1b326d3
move hashes to rom model
2024-08-11 22:38:22 -04:00
Georges-Antoine Assi
56037070fb
only calc hashes exlpicit
2024-08-11 19:36:52 -04:00
Georges-Antoine Assi
0139e3a13a
fix tests
2024-07-27 16:56:13 -04:00
Georges-Antoine Assi
f01f5ce5b5
trunk fixes
2024-07-27 16:38:57 -04:00
Georges-Antoine Assi
ecc021e824
Merge branch 'master' into calc-file-hashes-roms
2024-07-27 12:17:18 -04:00
Michael Manganiello
aced1f1ff2
misc: Migrate IGDBBaseHandler to async
...
Convert `IGDBBaseHandler` methods to be asynchronous, and use an `httpx`
async client, instead of `requests` sync client.
This change also removes the direct dependency with `requests`, as the
project no longer uses it, preferring `httpx` instead.
2024-07-26 21:19:01 -03:00
Georges-Antoine Assi
efc0b75cdb
Merge branch 'master' into calc-file-hashes-roms
2024-07-25 22:42:46 -04:00
Michael Manganiello
959e896aa3
misc: Replace pytest-vcr dependency with pytest-recording
...
`pytest-vcr` [1] is no longer maintained (last commit was in 2020), and
`VCR.py` recommends [2] `pytest-recording` instead.
Also, `pytest-vcr` does not correctly support `httpx` [3].
This change also removes unused cassettes.
[1] https://github.com/ktosiek/pytest-vcr
[2] https://vcrpy.readthedocs.io/en/latest/usage.html#pytest-integration
[3] https://github.com/ktosiek/pytest-vcr/issues/46
2024-07-24 12:39:41 -03:00
Michael Manganiello
7c6dfa8e50
feat: Use ContextVar to share httpx AsyncClient instance between requests
2024-07-23 01:29:32 -03:00
Michael Manganiello
6d8a8714f5
misc: Migrate MobyGamesHandler to async
...
Convert `MobyGamesHandler` methods to be asynchronous, and use an
`httpx` async client, instead of `requests` sync client.
2024-07-22 01:09:36 -03:00
Georges-Antoine Assi
2e91c440e3
Read into mem in chunks
2024-07-16 17:42:25 -04:00
Georges-Antoine Assi
2b2ff875ee
Calculate hashes for rom files
2024-07-15 18:27:29 -04:00
Georges-Antoine Assi
7530fdd576
mega refactor of pr
2024-07-01 15:12:07 -04:00
Michael Manganiello
8281d5679b
misc: Split database handler logic to get/list entities
...
The current implementation for some of the database handlers, where the
same method is used to retrieve either a single entity (when an `id` is
passed), a list of entities, or `None`, makes the typing and overall
design more complex.
This change simplifies database handlers, by having two separate methods
where appropiate:
* A method that receives an `id`, and returns either an entity, or `None`.
* A method that optionally receives filters, and returns (depending on
the current handler implementation) a list of entities, or a `Select`
object that allows chaining more SQLAlchemy operations.
2024-06-30 13:12:48 -03:00
zurdi
ed67cfff12
fixed unit tests
2024-06-17 18:05:48 +02:00
Georges-Antoine Assi
652047ad66
update test cassettes
2024-06-15 12:18:01 -04:00
Georges-Antoine Assi
a62794ba48
fix scan rom test
2024-05-22 09:47:15 -04:00
Georges-Antoine Assi
2b60402a04
start fixing mypy issues
2024-05-21 19:22:14 -04:00
Georges-Antoine Assi
a7cf0d389a
run trunk format on all files
2024-05-21 10:18:13 -04:00
Georges-Antoine Assi
880345f20c
ruff-only pre-commit
2024-05-18 12:05:57 -04:00
Georges-Antoine Assi
2749aaee4a
rename back to old names
2024-05-05 16:59:30 -04:00
Georges-Antoine Assi
9ad28f3294
more refactoring again
2024-05-05 16:32:40 -04:00
Georges-Antoine Assi
def2608c28
refactor db handlers
2024-05-05 15:46:07 -04:00
Georges-Antoine Assi
1a2c914045
refactor handlers out into own files
2024-05-05 12:45:56 -04:00
Georges-Antoine Assi
fd196165b8
add fake redis for tests
2024-03-26 20:37:38 -04:00
Georges-Antoine Assi
f67b984cbb
Hotfix scanning via watcher
2024-02-09 18:16:59 -05:00
Georges-Antoine Assi
b4a48690b0
Merge branch 'master' into asset-refactor
2024-02-06 17:00:01 -05:00
Zurdi
dac6a4c14b
clean utils folder
2024-02-06 22:58:06 +01:00
Georges-Antoine Assi
8e6769cd6a
Merge branch 'master' into asset-refactor
2024-02-06 16:54:55 -05:00
Zurdi
3de72d075c
fixed tests
2024-02-05 11:28:39 +01:00
Georges-Antoine Assi
bf48b9037f
simplify example compose
2024-02-02 00:03:30 -05:00
Georges-Antoine Assi
aae717b34e
update some conftest
2024-02-01 23:27:33 -05:00