Colin Goutte
c3434ec1f7
Merge branch 'feature_35_feed_database'
2023-08-27 16:05:59 +02:00
Colin Goutte
58faa101a5
Fix input data
2023-08-27 16:03:30 +02:00
Colin Goutte
e52034c9e7
Update aliases for database management
2023-08-27 16:03:02 +02:00
Colin Goutte
88b12f1433
Sample test for import
2023-08-27 15:04:23 +02:00
Colin Goutte
85cf2157db
Simple pagination creates great speed impovement for import
2023-08-27 14:48:25 +02:00
Colin Goutte
116f0a21c7
Use reald data takes 150 seconds on my machine
2023-08-27 14:30:16 +02:00
Colin Goutte
bec79eff4e
WIP: Fix overview and missign description
2023-08-27 14:17:44 +02:00
Colin Goutte
9788748d33
WIP: seems working
2023-08-27 14:05:24 +02:00
Colin Goutte
7624d264c8
RED: Script start, genre needs rework
2023-08-27 13:55:59 +02:00
Colin Goutte
fb14953acb
add whole metadata
2023-08-27 13:42:27 +02:00
Colin Goutte
bbb32d55c2
Green: test work, fix import script too
2023-08-27 13:31:08 +02:00
Colin Goutte
8c9a4d5295
Fix type casting, now we have an unexpected succes :)
2023-08-27 13:28:46 +02:00
Colin Goutte
130c4cb7b2
RED: Genre was poorly serialized, write test to fix this
2023-08-27 13:21:43 +02:00
Colin Goutte
a08c18d51d
Merge branch 'refactor_pydantic'
2023-08-27 12:48:28 +02:00
Colin Goutte
b410fa9bc8
Shorly update description
2023-08-27 12:48:28 +02:00
Colin Goutte
5c00c51b43
Refactor: Make use of pydantic schemas where possible
2023-08-27 12:48:28 +02:00
Colin Goutte
4543f2f0d7
cleanup: make use of pydatic schemas for create
2023-08-27 12:48:28 +02:00
Colin Goutte
f88b8410bf
Add short useful alias for refactoring
2023-08-27 12:48:28 +02:00
Colin Goutte
6c60ffcfd2
Merge branch 'feature_34_api_endpoint'
2023-08-26 23:47:01 +02:00
Colin Goutte
0ac827b95c
Green: implement custom object for arrays, update is ok
2023-08-26 23:46:35 +02:00
Colin Goutte
68e11a3275
RED: Cannot bind list to string for genres
2023-08-26 22:31:55 +02:00
Colin Goutte
e565b445ff
green: actually delete movies
2023-08-26 17:52:39 +02:00
Colin Goutte
49c1b79329
RED: Test deletion
2023-08-26 17:36:43 +02:00
Colin Goutte
6bbea876a0
cosmit: intresting test first
2023-08-26 17:36:22 +02:00
Colin Goutte
6e77545ef9
Refactor: unittest like
2023-08-26 17:24:58 +02:00
Colin Goutte
8b8a1ed30a
Nicer scripts and directive foor databases
2023-08-26 17:20:54 +02:00
Colin Goutte
df1dbbbc18
Green: convert 422 to 400 on input errors
2023-08-26 17:20:32 +02:00
Colin Goutte
c058c7513c
RED: test for message and status_code
2023-08-26 17:19:32 +02:00
Colin Goutte
2a02a839b7
Candy: add test coverage
2023-08-25 23:28:03 +02:00
Colin Goutte
5ee4cb6041
Green: Remove custom schema adapter
...
Nice we have the releasse date we missed
2023-08-25 23:14:28 +02:00
Colin Goutte
17bf8bb645
Green
2023-08-25 23:11:29 +02:00
Colin Goutte
ec2f661a49
RED: Add schema, fail on purpose to check
2023-08-25 23:10:07 +02:00
Colin Goutte
a030fb0b4f
Green: we can get simple attributes back and forth
2023-08-25 22:58:09 +02:00
Colin Goutte
504008b75b
RED: For now we only test primitive type to move soon to pydantic
2023-08-25 22:41:44 +02:00
Colin Goutte
b309418af4
RED: not storing values :/
2023-08-25 22:25:26 +02:00
Colin Goutte
5039cd66aa
Green: ouput schema seems ok
2023-08-25 22:21:59 +02:00
Colin Goutte
e40df4886f
Implement 404 on missing id
2023-08-25 22:10:43 +02:00
Colin Goutte
1fd9f7a9a6
RED: 404 and schema test fail
2023-08-25 22:06:35 +02:00
Colin Goutte
73482bea56
Merge branch 'feature_3_3_database'
2023-08-25 21:24:46 +02:00
Colin Goutte
0a5857ead2
Base implem of create and restore db
2023-08-25 21:20:09 +02:00
Colin Goutte
e9f5b70a33
Merge branch 'attemp_check_name' into feature_3_3_database
2023-08-25 15:34:07 +02:00
Colin Goutte
bcee4fd482
Screwed up with git
2023-08-25 15:33:08 +02:00
Colin Goutte
5bb54cc9dc
Better directive for tests
2023-08-25 15:31:29 +02:00
Colin Goutte
a64ab9189e
Add pdbpp for dev
2023-08-25 15:12:38 +02:00
Colin Goutte
33ea9742b2
Add directiv in normal makefile for venv
2023-08-25 15:12:00 +02:00
Colin Goutte
faf4841016
GREEN: But this is really coding *against* the framework
...
This is noe the proper way to do it. FastAPI define schemas to do such
work.
The 'name' parameter was not passed (but seemed to work on live) and i
was looking for a database issue.
There might have been some colisions on import
However this show how to evolve from a mindset to another.
2023-08-25 15:11:32 +02:00
Colin Goutte
6dce239b1e
DB fixes
2023-08-25 14:23:02 +02:00
Colin Goutte
e8aaa18baa
accessing Orm throught test api does not seems to work, skip it for now
2023-08-25 12:40:36 +02:00
Colin Goutte
5f96a4b82a
RED: we still need to created the view
2023-08-25 12:10:37 +02:00
Colin Goutte
97cf596ea7
RED: Now fails with missing attribute
2023-08-25 12:05:35 +02:00