Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 73203ab

Browse files
authored
Merge branch 'tough-dev-school:master' into lesson1
2 parents a010229 + 352aa9b commit 73203ab

File tree

22 files changed

+21
-21
lines changed

22 files changed

+21
-21
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ jobs:
2626
run: cp config/.env.template config/.env
2727

2828
- name: Set up QEMU
29-
uses: docker/setup-qemu-action@v2
29+
uses: docker/setup-qemu-action@v3
3030

3131
- name: Set up Docker Buildx
32-
uses: docker/setup-buildx-action@v2
32+
uses: docker/setup-buildx-action@v3
3333

3434
- name: Build the image
35-
uses: docker/bake-action@v3
35+
uses: docker/bake-action@v4
3636
with:
3737
files: docker-compose.yml
3838
targets: web

.importlinter

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ containers =
1616
layers =
1717
(urls) | (admin)
1818
(views)
19-
(infrastructure)
19+
(container)
2020
(logic)
21+
(infrastructure)
2122
(models)
22-
(container)
2323

2424

2525
[importlinter:contract:apps-independence]
File renamed without changes.

server/apps/identity/intrastructure/django/__init__.py renamed to server/apps/identity/infrastructure/django/__init__.py

File renamed without changes.

server/apps/identity/intrastructure/django/decorators.py renamed to server/apps/identity/infrastructure/django/decorators.py

File renamed without changes.
File renamed without changes.

server/apps/identity/intrastructure/services/__init__.py renamed to server/apps/identity/infrastructure/services/__init__.py

File renamed without changes.

server/apps/identity/intrastructure/services/placeholder.py renamed to server/apps/identity/infrastructure/services/placeholder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class UserResponse(pydantic_model.BaseModel):
1717
# TODO: use redis-based caching
1818
@final
1919
class LeadCreate(http.BaseFetcher):
20-
"""Service around creating new users and fething their :term:`lead_id`."""
20+
"""Service around creating new users and fetching their :term:`lead_id`."""
2121

2222
_url_path = '/users'
2323

@@ -33,7 +33,7 @@ def __call__(
3333
timeout=self._api_timeout,
3434
)
3535
response.raise_for_status()
36-
return UserResponse.parse_raw(response.text)
36+
return UserResponse.model_validate_json(response.text)
3737

3838

3939
@final

server/apps/identity/logic/usecases/user_create_new.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import attr
44

5-
from server.apps.identity.intrastructure.services import placeholder
5+
from server.apps.identity.infrastructure.services import placeholder
66
from server.apps.identity.models import User
77
from server.common.django.types import Settings
88

server/apps/identity/logic/usecases/user_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import attr
44

5-
from server.apps.identity.intrastructure.services import placeholder
5+
from server.apps.identity.infrastructure.services import placeholder
66
from server.apps.identity.models import User
77
from server.common.django.types import Settings
88

0 commit comments

Comments
 (0)