Vaihe 1/4: asiakastyöt (numerointi, tagit, linkit, jäsenet, muutoshistoria)
- Uusi jobs-moduuli: asiakastyön kentät ilman rahakenttiä, juokseva vuosinumero VVVV-NNNN (laskuririvi lukitaan), tagit, linkit dialogissa, jäsenet ja muutoshistoria nimiarvoineen. - Tilojen oikeudet: lasku luotu / laskutettu johto tai työn laskuttaja, arkistointi vain johto; alihankkija näkee vain jäsenyystyönsä eikä muokkaa. - Lista ja haku (numero, nimi, asiakas), suodattimet, omat työt oletuksena, arkistoidut piilossa, myöhässä tekstinä ja kuvakkeena. - Asiakasvalitsin hakuineen ja pikalisäyksineen (myös pikavastaanottoa varten). - Asiakkaan sivulle asiakastyöt-osio; valikkoon Asiakastyöt. - Lukurajapinnat muihin moduuleihin: UserQueries.choices, CustomerQueries.summaries, CatalogQueries.service_units; jobs.*-oikeudet. - Import-linter-sopimukset, käännökset, testit (domain, application, integraatio, selain) sekä määrittelyn ja CLAUDE.md:n päivitys. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -50,6 +50,8 @@ source_modules = [
|
||||
"apps.customers.application",
|
||||
"apps.catalog.domain",
|
||||
"apps.catalog.application",
|
||||
"apps.jobs.domain",
|
||||
"apps.jobs.application",
|
||||
]
|
||||
forbidden_modules = ["django"]
|
||||
allow_indirect_imports = true
|
||||
@@ -93,6 +95,18 @@ layers = [
|
||||
]
|
||||
ignore_imports = ["apps.catalog.presentation.** -> apps.catalog.container"]
|
||||
|
||||
[[tool.importlinter.contracts]]
|
||||
name = "jobs layers"
|
||||
type = "layers"
|
||||
layers = [
|
||||
"apps.jobs.container",
|
||||
"apps.jobs.presentation",
|
||||
"apps.jobs.infrastructure",
|
||||
"apps.jobs.application",
|
||||
"apps.jobs.domain",
|
||||
]
|
||||
ignore_imports = ["apps.jobs.presentation.** -> apps.jobs.container"]
|
||||
|
||||
[[tool.importlinter.contracts]]
|
||||
name = "Presentation does not use infrastructure directly"
|
||||
type = "forbidden"
|
||||
@@ -100,11 +114,13 @@ source_modules = [
|
||||
"apps.users.presentation",
|
||||
"apps.customers.presentation",
|
||||
"apps.catalog.presentation",
|
||||
"apps.jobs.presentation",
|
||||
]
|
||||
forbidden_modules = [
|
||||
"apps.users.infrastructure",
|
||||
"apps.customers.infrastructure",
|
||||
"apps.catalog.infrastructure",
|
||||
"apps.jobs.infrastructure",
|
||||
]
|
||||
allow_indirect_imports = true
|
||||
|
||||
@@ -123,6 +139,44 @@ ignore_imports = [
|
||||
"apps.catalog.tests.** -> apps.users.infrastructure.**",
|
||||
]
|
||||
|
||||
[[tool.importlinter.contracts]]
|
||||
name = "jobs uses other modules only through application interfaces and containers"
|
||||
type = "forbidden"
|
||||
source_modules = ["apps.jobs"]
|
||||
forbidden_modules = [
|
||||
"apps.users.infrastructure",
|
||||
"apps.customers.infrastructure",
|
||||
"apps.customers.presentation",
|
||||
"apps.catalog.infrastructure",
|
||||
"apps.catalog.presentation",
|
||||
]
|
||||
# The jobs container reaches their infrastructure only through their own containers.
|
||||
allow_indirect_imports = true
|
||||
ignore_imports = [
|
||||
# Integration tests may arrange data with another module's models.
|
||||
"apps.jobs.tests.** -> apps.users.infrastructure.**",
|
||||
"apps.jobs.tests.** -> apps.customers.infrastructure.**",
|
||||
"apps.jobs.tests.** -> apps.catalog.infrastructure.**",
|
||||
]
|
||||
|
||||
[[tool.importlinter.contracts]]
|
||||
name = "Only the jobs container wires other modules' containers"
|
||||
type = "forbidden"
|
||||
source_modules = [
|
||||
"apps.jobs.domain",
|
||||
"apps.jobs.application",
|
||||
"apps.jobs.infrastructure",
|
||||
"apps.jobs.presentation",
|
||||
]
|
||||
forbidden_modules = ["apps.users.container", "apps.customers.container", "apps.catalog.container"]
|
||||
allow_indirect_imports = true
|
||||
|
||||
[[tool.importlinter.contracts]]
|
||||
name = "Other modules do not depend on jobs"
|
||||
type = "forbidden"
|
||||
source_modules = ["apps.users", "apps.customers", "apps.catalog"]
|
||||
forbidden_modules = ["apps.jobs"]
|
||||
|
||||
[[tool.importlinter.contracts]]
|
||||
name = "customers and catalog are independent"
|
||||
type = "independence"
|
||||
|
||||
Reference in New Issue
Block a user