Vaihe 1/3: pohjatiedot (palveluyksiköt, palvelut ja työtehtävät)
- Uusi catalog-moduuli: palveluyksikkö → (palvelu) → työtehtävä ilman hintoja. - Pohjatiedot-sivu /catalog/ pääkäyttäjälle ja johdolle (oikeus catalog.manage): lisäys ja muokkaus dialogissa, Siirrä ylös / Siirrä alas, käytöstä poisto ja käyttöön otto. Fokus ja aria-live-ilmoitus jokaisen muutoksen jälkeen. - Rivejä ei poisteta. Käytöstä poistetun yläkohdan alla olevat rivit säilyttävät oman tilansa, mutta eivät ole valittavissa. Nimi on yksilöllinen samalla tasolla kirjainkoosta riippumatta. - Työtehtävän voi siirtää saman yksikön toiseen palveluun tai suoraan yksikön alle. - Luvun 11.1 lista data-migraationa (0002_seed), jos taulut ovat tyhjiä. - CatalogQueries: work_type_options, active_service_units ja get_work_type tehtäviä ja tuntikirjausta varten. - Import-linter-sopimukset, suomennokset, yksikkö-, integraatio- ja selaintestit. - Päivitetty CLAUDE.md ja määrittelyn kohta 16.3. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+33
-5
@@ -48,6 +48,8 @@ source_modules = [
|
||||
"apps.users.application",
|
||||
"apps.customers.domain",
|
||||
"apps.customers.application",
|
||||
"apps.catalog.domain",
|
||||
"apps.catalog.application",
|
||||
]
|
||||
forbidden_modules = ["django"]
|
||||
allow_indirect_imports = true
|
||||
@@ -79,17 +81,37 @@ layers = [
|
||||
]
|
||||
ignore_imports = ["apps.customers.presentation.** -> apps.customers.container"]
|
||||
|
||||
[[tool.importlinter.contracts]]
|
||||
name = "catalog layers"
|
||||
type = "layers"
|
||||
layers = [
|
||||
"apps.catalog.container",
|
||||
"apps.catalog.presentation",
|
||||
"apps.catalog.infrastructure",
|
||||
"apps.catalog.application",
|
||||
"apps.catalog.domain",
|
||||
]
|
||||
ignore_imports = ["apps.catalog.presentation.** -> apps.catalog.container"]
|
||||
|
||||
[[tool.importlinter.contracts]]
|
||||
name = "Presentation does not use infrastructure directly"
|
||||
type = "forbidden"
|
||||
source_modules = ["apps.users.presentation", "apps.customers.presentation"]
|
||||
forbidden_modules = ["apps.users.infrastructure", "apps.customers.infrastructure"]
|
||||
source_modules = [
|
||||
"apps.users.presentation",
|
||||
"apps.customers.presentation",
|
||||
"apps.catalog.presentation",
|
||||
]
|
||||
forbidden_modules = [
|
||||
"apps.users.infrastructure",
|
||||
"apps.customers.infrastructure",
|
||||
"apps.catalog.infrastructure",
|
||||
]
|
||||
allow_indirect_imports = true
|
||||
|
||||
[[tool.importlinter.contracts]]
|
||||
name = "Modules use each other only through application interfaces"
|
||||
type = "forbidden"
|
||||
source_modules = ["apps.customers"]
|
||||
source_modules = ["apps.customers", "apps.catalog"]
|
||||
forbidden_modules = [
|
||||
"apps.users.infrastructure",
|
||||
"apps.users.container",
|
||||
@@ -98,13 +120,19 @@ forbidden_modules = [
|
||||
ignore_imports = [
|
||||
# Integration tests may arrange data with another module's models.
|
||||
"apps.customers.tests.** -> apps.users.infrastructure.**",
|
||||
"apps.catalog.tests.** -> apps.users.infrastructure.**",
|
||||
]
|
||||
|
||||
[[tool.importlinter.contracts]]
|
||||
name = "users does not depend on customers"
|
||||
name = "customers and catalog are independent"
|
||||
type = "independence"
|
||||
modules = ["apps.customers", "apps.catalog"]
|
||||
|
||||
[[tool.importlinter.contracts]]
|
||||
name = "users does not depend on customers or catalog"
|
||||
type = "forbidden"
|
||||
source_modules = ["apps.users"]
|
||||
forbidden_modules = ["apps.customers"]
|
||||
forbidden_modules = ["apps.customers", "apps.catalog"]
|
||||
|
||||
[[tool.importlinter.contracts]]
|
||||
name = "shared layers"
|
||||
|
||||
Reference in New Issue
Block a user