Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ Upgrade Web Server service (Pydantic v2) #6584

Merged
Changes from 1 commit
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
956c3b7
upgrade reqs
giancarloromeo Oct 23, 2024
45119e5
run bump-pydantic
giancarloromeo Oct 23, 2024
9979a3f
add common-library dependency
giancarloromeo Oct 23, 2024
29ab6c2
fix import
giancarloromeo Oct 23, 2024
a75e832
fix import
giancarloromeo Oct 23, 2024
dc1f60d
continue fixing
giancarloromeo Oct 23, 2024
fdb7238
fix arbitrary type field
giancarloromeo Oct 23, 2024
c1db89a
continue fixing
giancarloromeo Oct 23, 2024
9586ea8
continue fixing
giancarloromeo Oct 23, 2024
e7ba88a
continue fixing
giancarloromeo Oct 24, 2024
c5dd024
fix settings validator
giancarloromeo Oct 24, 2024
1e97ead
continue fixing
giancarloromeo Oct 24, 2024
82ba4bd
remove deprecated
giancarloromeo Oct 24, 2024
be74c41
fix model_config attr
giancarloromeo Oct 24, 2024
8015258
remove deprecated
giancarloromeo Oct 24, 2024
44d97de
continue fixing
giancarloromeo Oct 24, 2024
cf01290
continue fixing
giancarloromeo Oct 24, 2024
2b12826
continue fixing
giancarloromeo Oct 24, 2024
a50f41a
fix deprecated dict()
giancarloromeo Oct 24, 2024
6b9d7fa
fix deprecated json()
giancarloromeo Oct 24, 2024
557f51d
Merge branch 'pydantic_v2_migration_do_not_squash_updates' into is448…
giancarloromeo Oct 24, 2024
335ff84
fix type
giancarloromeo Oct 24, 2024
c7958b0
Merge branch 'is4481/upgrade-web-server-service' of github.com:gianca…
giancarloromeo Oct 24, 2024
e0db4a9
fix validation
giancarloromeo Oct 24, 2024
a135e42
continue fixing
giancarloromeo Oct 24, 2024
0c639bf
continue fixing
giancarloromeo Oct 24, 2024
48b6c26
no sort_keys anymore
giancarloromeo Oct 24, 2024
5a6a7d1
fix rootmodel
giancarloromeo Oct 24, 2024
1d0e14d
fix validate_call
giancarloromeo Oct 24, 2024
f7cdf05
fix mypy
giancarloromeo Oct 24, 2024
39b9898
remove deprecated from_orm
giancarloromeo Oct 25, 2024
1cb84d6
fix frozen settings
giancarloromeo Oct 25, 2024
6eba301
change thumbnail field type
giancarloromeo Oct 25, 2024
efefd0a
upgrade deprecated
giancarloromeo Oct 25, 2024
b323706
fix auto_default_from_env prop
giancarloromeo Oct 25, 2024
a605f2f
fix envs
giancarloromeo Oct 25, 2024
32043a4
fix sleep
giancarloromeo Oct 25, 2024
2c062e3
fix first elem get
giancarloromeo Oct 25, 2024
b9a4f88
fix import
giancarloromeo Oct 25, 2024
a2e1af6
fix envvar
giancarloromeo Oct 25, 2024
8421102
fix test
giancarloromeo Oct 25, 2024
fe53763
revert time
giancarloromeo Oct 25, 2024
00970e3
fix diagnostic settings mock
giancarloromeo Oct 25, 2024
2e6fc93
fix usernotfound error
giancarloromeo Oct 25, 2024
28f6d1a
continue fixing
giancarloromeo Oct 25, 2024
d11850d
fix Url
giancarloromeo Oct 25, 2024
5b2fd38
fix mypy
giancarloromeo Oct 25, 2024
820592c
fix url
giancarloromeo Oct 25, 2024
f1d4df5
fix mypy
giancarloromeo Oct 28, 2024
faf684d
Merge branch 'pydantic_v2_migration_do_not_squash_updates' into is448…
giancarloromeo Oct 28, 2024
893d0dc
fix test
giancarloromeo Oct 28, 2024
bb36b72
continue fixing
giancarloromeo Oct 28, 2024
2100adc
fix test
giancarloromeo Oct 28, 2024
b500cd6
continue fixing
giancarloromeo Oct 28, 2024
f1a2f46
fix
giancarloromeo Oct 28, 2024
8a7bc17
continue fixing
giancarloromeo Oct 28, 2024
9a3b124
silent sonar
giancarloromeo Oct 28, 2024
dcf7d83
fix test
giancarloromeo Oct 28, 2024
76e52b3
fix
giancarloromeo Oct 28, 2024
0aae043
fix test
giancarloromeo Oct 28, 2024
6b46049
fix test
giancarloromeo Oct 28, 2024
eec18e0
fix typecheck
giancarloromeo Oct 28, 2024
4409fa2
fix bytesize validation
giancarloromeo Oct 28, 2024
dd17474
fix extra
giancarloromeo Oct 29, 2024
65d0f7c
continue fixing
giancarloromeo Oct 29, 2024
1c056e5
Merge branch 'pydantic_v2_migration_do_not_squash_updates' into is448…
giancarloromeo Oct 29, 2024
5ab5d99
upgrade new code
giancarloromeo Oct 29, 2024
cc4b2cd
continue fixing
giancarloromeo Oct 29, 2024
3d916b2
continue fixing
giancarloromeo Oct 29, 2024
5aa6da7
fix
giancarloromeo Oct 29, 2024
4781498
fix
giancarloromeo Oct 29, 2024
744e366
update strategies
giancarloromeo Oct 29, 2024
d0e1f4b
fix import
giancarloromeo Oct 29, 2024
fa50fac
fix typecheck
giancarloromeo Oct 29, 2024
60ee4c8
fix urls
giancarloromeo Oct 29, 2024
1e29d7b
fix test
giancarloromeo Oct 29, 2024
7f76165
fix
giancarloromeo Oct 29, 2024
aca5dcd
fix
giancarloromeo Oct 29, 2024
c4784bb
fix test
giancarloromeo Oct 29, 2024
0402d82
fix bytesize
giancarloromeo Oct 29, 2024
44add09
fix env vars
giancarloromeo Oct 30, 2024
f634ec4
fix env vars
giancarloromeo Oct 30, 2024
976acf7
fix env vars
giancarloromeo Oct 30, 2024
e6d1d71
fix
giancarloromeo Oct 30, 2024
4432e00
continue fixing
giancarloromeo Oct 30, 2024
b685088
fix validation field
giancarloromeo Oct 30, 2024
f6f5908
fix validation
giancarloromeo Oct 30, 2024
ecd48d2
fix dump
giancarloromeo Oct 30, 2024
f948082
remove deprecated
giancarloromeo Oct 30, 2024
7604a40
continue fixing
giancarloromeo Oct 30, 2024
d1cc36b
fix date
giancarloromeo Oct 30, 2024
574a80a
continue fixing
giancarloromeo Oct 30, 2024
b0d44b6
fix
giancarloromeo Oct 30, 2024
a2bf2f3
fix
giancarloromeo Oct 30, 2024
723ca36
fix field
giancarloromeo Oct 30, 2024
48cac88
Merge branch 'pydantic_v2_migration_do_not_squash_updates' into is448…
giancarloromeo Oct 30, 2024
b44186a
add env vars
giancarloromeo Oct 30, 2024
8df92e8
remove unused ignore
giancarloromeo Oct 30, 2024
17a2049
add env vars
giancarloromeo Oct 30, 2024
c3d76a2
fix message
giancarloromeo Oct 30, 2024
ef0fc2f
fix msg
giancarloromeo Oct 30, 2024
c7fd828
fix invitations
giancarloromeo Oct 30, 2024
a83a7a6
fix sessionsettings
giancarloromeo Oct 30, 2024
19f787a
revert msg
giancarloromeo Oct 30, 2024
9404441
continue fixing
giancarloromeo Oct 30, 2024
7592d97
fix
giancarloromeo Oct 30, 2024
b865a76
fix mypy
giancarloromeo Oct 30, 2024
b810b5e
fix
giancarloromeo Oct 30, 2024
c9ab39f
fix
giancarloromeo Oct 30, 2024
fc5de11
fixing
giancarloromeo Oct 31, 2024
45e9a08
fix fields
giancarloromeo Oct 31, 2024
35e8c9d
fix tests
giancarloromeo Oct 31, 2024
83635d2
fix dynamic scheduler settings
giancarloromeo Oct 31, 2024
af87df5
fix import
giancarloromeo Oct 31, 2024
d3d9b71
remove env vars
giancarloromeo Oct 31, 2024
dba3ce2
remove env vars
giancarloromeo Oct 31, 2024
9001bd5
fix urls
giancarloromeo Oct 31, 2024
42bea1e
fix optional
giancarloromeo Oct 31, 2024
5119159
fix projects
giancarloromeo Oct 31, 2024
e1e182b
continue fixing
giancarloromeo Oct 31, 2024
b5b8495
coerce num to str
giancarloromeo Oct 31, 2024
c63bb66
revert for now
giancarloromeo Nov 1, 2024
5298ad9
fix test
giancarloromeo Nov 1, 2024
34be411
fix nullable
giancarloromeo Nov 1, 2024
10ed6a0
fix nullable
giancarloromeo Nov 1, 2024
fb633f2
fix url
giancarloromeo Nov 1, 2024
83a34e5
fix nullable
giancarloromeo Nov 1, 2024
cf0a1ca
fix rootmodel
giancarloromeo Nov 1, 2024
8b9f93f
pin pydantic-settins version
giancarloromeo Nov 1, 2024
871ecea
continue fixing
giancarloromeo Nov 1, 2024
7e00d51
fix error_msg
giancarloromeo Nov 1, 2024
e377829
fix error_code
giancarloromeo Nov 1, 2024
3c1dee5
fix datetime
giancarloromeo Nov 1, 2024
9641b16
fix
giancarloromeo Nov 1, 2024
22ea2f7
fix
giancarloromeo Nov 1, 2024
99127a4
fix typecheck
giancarloromeo Nov 1, 2024
ddf210e
fix message
giancarloromeo Nov 1, 2024
5ccfac9
Merge branch 'pydantic_v2_migration_do_not_squash_updates' into is448…
giancarloromeo Nov 1, 2024
958d4dd
fix typecheck
giancarloromeo Nov 1, 2024
d6c71c6
continue fixing
giancarloromeo Nov 1, 2024
ce882a5
continue fixing
giancarloromeo Nov 1, 2024
abecfa5
Merge branch 'pydantic_v2_migration_do_not_squash_updates' into is448…
giancarloromeo Nov 1, 2024
1b3128f
fix error
giancarloromeo Nov 1, 2024
d672a77
fix pagination
giancarloromeo Nov 1, 2024
0332dec
fix error msg
giancarloromeo Nov 1, 2024
e695d8e
fix sql
giancarloromeo Nov 1, 2024
05d515c
fix datetime
giancarloromeo Nov 4, 2024
a66f145
fix gid
giancarloromeo Nov 4, 2024
f934a6a
fix validation
giancarloromeo Nov 4, 2024
f1ba05f
fix date timezone
giancarloromeo Nov 4, 2024
59b423e
fix required
giancarloromeo Nov 4, 2024
4905f4c
fix user prefs
giancarloromeo Nov 4, 2024
3c6cc75
fix query
giancarloromeo Nov 4, 2024
cf63244
fix column check
giancarloromeo Nov 4, 2024
ded3b25
Update packages/models-library/src/models_library/api_schemas_directo…
giancarloromeo Nov 5, 2024
bbe8ea2
remove pattern
giancarloromeo Nov 5, 2024
509a7ac
revert nullable
giancarloromeo Nov 5, 2024
f6e2128
remove constraint
giancarloromeo Nov 5, 2024
0034952
fix model_dump_json option
giancarloromeo Nov 5, 2024
9db58f7
fix fields
giancarloromeo Nov 5, 2024
d292788
fix
giancarloromeo Nov 5, 2024
59a64dc
remove frozen
giancarloromeo Nov 5, 2024
9a1bc00
fix jsondump
giancarloromeo Nov 5, 2024
f24cd19
minor fix
giancarloromeo Nov 5, 2024
4634acb
fix comments
giancarloromeo Nov 5, 2024
c74b2b2
fix nullable
giancarloromeo Nov 5, 2024
7b7d020
fix enum
giancarloromeo Nov 5, 2024
274e2cb
fix schema
giancarloromeo Nov 6, 2024
8aac73d
revert none
giancarloromeo Nov 6, 2024
399abc8
remove ignore
giancarloromeo Nov 6, 2024
e1b8401
revert gid cast
giancarloromeo Nov 6, 2024
c7d5f0c
fix comment
giancarloromeo Nov 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
continue fixing
giancarloromeo committed Oct 30, 2024
commit 4432e008d4f28137dcb503d716b44f54f854439b
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@ async def _fake_init_creation_of_wallet_payment_method(
await asyncio.sleep(1)
payment_method_id = PaymentMethodID(f"{_FAKE_PAYMENT_METHOD_ID_PREFIX}_{uuid4()}")
form_link = (
URL(settings.PAYMENTS_FAKE_GATEWAY_URL)
URL(f"{settings.PAYMENTS_FAKE_GATEWAY_URL}")
giancarloromeo marked this conversation as resolved.
Show resolved Hide resolved
.with_path("/payment-methods/form")
.with_query(id=payment_method_id)
)
Original file line number Diff line number Diff line change
@@ -362,7 +362,7 @@ async def test_payment_not_found(


def test_payment_transaction_state_and_literals_are_in_sync():
state_literals = PaymentTransaction.model_fields["state"].type_
state_literals = PaymentTransaction.model_fields["state"].annotation
assert (
TypeAdapter(list[state_literals]).validate_python(
[f"{s}" for s in PaymentTransactionState]