-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EDP-DDM-28658] github: issue 18, fixed puml files, added partials, r…
…eviewed and added updates to document /admin-portal/data-model/admin-portal-data-model-management.adoc Change-Id: I9cf9fb2c94abf321a00c3ee3bf8abeb0bca4c3a6 (cherry picked from commit 5856e7060470bf10569c785791fbfb65dbad6680)
- Loading branch information
1 parent
062a41c
commit bb3d386
Showing
4 changed files
with
179 additions
and
40 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.../images/architecture/platform/administrative/administrative-zone-subsystems.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
...e/registry/administrative/regulation-management/admin-portal/db-tables-management-er.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
@startuml | ||
' hide the spot | ||
hide circle | ||
|
||
' avoid problems with angled crows feet | ||
skinparam linetype ortho | ||
|
||
entity "Table" as table { | ||
*id : UUID | ||
-- | ||
name: string | ||
historicalFlag: boolean | ||
objectReference: | ||
description: String | ||
} | ||
|
||
entity "Index" as index { | ||
*id : UUID | ||
-- | ||
name: string | ||
columns: array[Index.Column] | ||
} | ||
|
||
entity "Index.Column" as index_column { | ||
name: string | ||
sorting: enum[ASC, DESC, NONE] | ||
} | ||
|
||
entity "UniqueConstraint" as unique_constraint extends index | ||
|
||
entity "PrimaryKeyConstraint" as primary_key_constraint extends unique_constraint | ||
|
||
entity "Column" as column { | ||
*id : UUID | ||
-- | ||
name: string | ||
description: string | ||
type: enum[clarify types] | ||
defaultValue: object | ||
notNull: boolean | ||
} | ||
|
||
entity "ForeignKey" as foreign_key { | ||
*id : UUID | ||
-- | ||
name: string | ||
targetTable: string | ||
columnPairs: array[ForeignKey.ColumnPair] | ||
} | ||
|
||
entity "ForeignKey.ColumnPair" as foreign_key_column_pair { | ||
sourceColumnName: string | ||
targetColumnName: string | ||
} | ||
|
||
entity "DdmRolePermission" as ddm_role_permission { | ||
*permissionId : UUID | ||
-- | ||
roleName : string | ||
objectName : string // it's table name | ||
columnName : string | ||
operation: enum[INSERT, SELECT, UPDATE, DELETE] | ||
} | ||
|
||
|
||
table ||..o{ index | ||
table ||..o{ column | ||
table ||..o{ foreign_key | ||
table ||..o{ unique_constraint | ||
table ||..o{ primary_key_constraint | ||
|
||
foreign_key +-- foreign_key_column_pair | ||
index +-- index_column | ||
@enduml |
85 changes: 85 additions & 0 deletions
85
...stry/administrative/regulation-management/admin-portal/db-tables-management-sequence.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
@startuml | ||
|
||
autonumber | ||
skinparam responseMessageBelowArrow true | ||
|
||
actor "Regulations\n administrator" as User | ||
actor "Regulations\n inspector" as Reviewer | ||
|
||
participant "Administrative portal" as FrontEnd | ||
participant "Registry regulations\n management service" as BackendService | ||
participant "Change inspection service" as Gerrit | ||
participant "Registry regulations\n publishing service" as Jenkins | ||
|
||
activate User | ||
User -> FrontEnd: Create candidate version of the regulations | ||
FrontEnd -> BackendService: Create candidate version of the regulations | ||
activate BackendService | ||
BackendService -> Gerrit: Create a separate branch | ||
activate Gerrit | ||
BackendService -> Gerrit: Get updated version of DataModelSnapshot | ||
BackendService <-- Gerrit: DataModelSnapshot | ||
|
||
BackendService -> Gerrit: Get change history of DataModelSnapshot | ||
FrontEnd <-- BackendService: DataModelSnapshot | ||
|
||
BackendService -> BackendService: Processing change history | ||
FrontEnd <-- BackendService: History | ||
User <-- FrontEnd: Regulations candidate version | ||
|
||
User -> FrontEnd: Request to save changes of\n regulations candidate version | ||
FrontEnd -> BackendService: New version of DataModelSnapshot | ||
|
||
User -> FrontEnd: Request for change inspection of\n regulations candidate version | ||
FrontEnd -> BackendService: Send the candidate version for review | ||
|
||
deactivate User | ||
|
||
BackendService -> Gerrit: Get DataModelSnapshot of the document\n that is up-to-date when creating the change branch | ||
BackendService <-- Gerrit: DataModelSnapshot | ||
|
||
BackendService -> Gerrit: Get changed DataModelSnapshot | ||
BackendService <-- Gerrit: DataModelSnapshot | ||
BackendService -> BackendService: build Diff document | ||
BackendService -> BackendService: conversion of Diif document\n in liquibase changeset | ||
|
||
BackendService -> BackendService: Add information to liquibase сhangelog\n from liquibase changeset | ||
BackendService -> Gerrit: Save liquibase changeset | ||
deactivate BackendService | ||
|
||
activate Reviewer | ||
Reviewer -> FrontEnd: Request for version inspection | ||
FrontEnd -> BackendService: Request for version inspection | ||
|
||
activate BackendService | ||
BackendService -> Gerrit: Get candidate version status | ||
BackendService <-- Gerrit: Condition status (conflicts and tests) | ||
BackendService -> Gerrit: Get DataModelSnapshot\n from the candidate version change branch | ||
|
||
'Add diff here | ||
|
||
BackendService -> Gerrit: Get document with change history | ||
BackendService <-- Gerrit: History | ||
FrontEnd <-- BackendService: Candidate version | ||
Reviewer <-- FrontEnd: Candidate version | ||
|
||
Reviewer -> FrontEnd: Request to apply changes | ||
deactivate Reviewer | ||
|
||
FrontEnd -> BackendService: Request to apply changes | ||
|
||
BackendService -> Gerrit: Merge PR | ||
deactivate BackendService | ||
|
||
Gerrit --> Jenkins: Send event to start RegistryRegulationJob | ||
|
||
activate Jenkins | ||
Jenkins -> Jenkins: Create DB structure\n and informing metadata table\n using liquibase changelog | ||
Jenkins -> Jenkins: Create DataModelSnapshot\n using DB | ||
|
||
Jenkins -> Gerrit: Save updated DataModelSnapshot | ||
deactivate Jenkins | ||
Gerrit -> Gerrit: merge changes to master | ||
deactivate Gerrit | ||
|
||
@enduml |