dda-devops-build/doc/architecture/BuildCreationAndCall.md

54 lines
1.2 KiB
Markdown
Raw Normal View History

2023-03-14 11:04:52 +00:00
# Devops Frontend with application and domain
2023-03-12 15:55:15 +00:00
```mermaid
classDiagram
class DevopsBuild {
__init__(project, config)
do_sth(project)
}
class ProjectRepository {
2023-03-14 11:04:52 +00:00
get_devops(project): Devops
set_devops(project, build)
2023-03-12 15:55:15 +00:00
}
2023-03-14 11:04:52 +00:00
class Devops
2023-03-12 15:55:15 +00:00
class BuildService {
do_sth(project, build)
}
DevopsBuild *-- BuildService
BuildService *-- ProjectRepository
DevopsBuild *-- ProjectRepository
```
In case of simple operations we will not need the BuildService in between.
## Init Sequence
```mermaid
sequenceDiagram
MyBuild ->> DevOpsBuild: create_config
MyBuild ->> DevOpsBuild: __init__(project, config)
activate DevOpsBuild
2023-03-14 11:04:52 +00:00
DevOpsBuild ->> Devops: __init__
DevOpsBuild ->> ProjectRepository: set_devops(build)
2023-03-12 15:55:15 +00:00
deactivate DevOpsBuild
```
## do_sth Sequence
```mermaid
sequenceDiagram
MyBuild ->> DevOpsBuild: do_sth(project)
activate DevOpsBuild
DevOpsBuild ->> BuildService: do_sth(project)
activate BuildService
2023-03-14 11:04:52 +00:00
BuildService ->> ProjectRepository: get_devops
2023-03-12 15:55:15 +00:00
BuildService ->> BuildService: do_some_complicated_stuff(build)
deactivate BuildService
deactivate DevOpsBuild
```