Skip to content

Commit d9cc478

Browse files
authored
Merge pull request #27 from dxc-technology/sca01
Updated various sequences
2 parents fb3acd5 + 6f73e75 commit d9cc478

File tree

7 files changed

+248
-137
lines changed

7 files changed

+248
-137
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to the Sequences As Code (SaC) project will be documented in
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [1.0.2] - 2020-08-23
8+
## [1.0.3] - 2020-08-24
99

1010
- Updated some sequence diagrams
1111

images/sachelp.createnewinstance.svg

Lines changed: 37 additions & 22 deletions
Loading

images/sachelp.updateinstance.svg

Lines changed: 46 additions & 24 deletions
Loading

src/sequences/sachelp/images/createnewinstance.svg

Lines changed: 37 additions & 22 deletions
Loading

src/sequences/sachelp/images/updateinstance.svg

Lines changed: 46 additions & 24 deletions
Loading

src/sequences/sachelp/uml/createnewinstance.uml

Lines changed: 36 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,34 @@ title
66

77
end title
88

9-
start
10-
:Start;
11-
:Complete the prerequisites;
12-
note left
9+
actor Developer
10+
participant "Start" as A #lightGreen
11+
participant "Create New Repository" as B #white
12+
participant "Seed" as C #white
13+
participant "Fork" as D #white
14+
participant "Clone" as E #white
15+
participant "Update Package.json" as F #white
16+
participant "Replace SaC links" as G #white
17+
participant "Install Dependencies" as H #white
18+
participant "Add Missions & Sequences" as I #white
19+
participant "Test" as J #white
20+
participant "Commit" as K #white
21+
participant "Deploy" as L #white
22+
participant "Browse" as M #orange
23+
24+
Developer -> A: Complete the prerequisites;
25+
note right
1326
Prerequisites listed in a dedicated sequence diagram under the help menu.
1427
end note
15-
:Create and configure a new git repository;
28+
Developer -> B: Create and configure a new git repository;
1629
note right
1730
Protect the master branch
1831
Enable branch protection rules
1932
Require reviews on PRs
2033
etc. etc.
2134
end note
22-
:Seed the repository with the current release of SaC, which is available at [[https://github.com/dxc-technology/Sequences-as-Code{Right click to open in a new window or a new tab} SaC repository]];
23-
note left
35+
Developer -> C: Seed the repository with the current release of SaC, which is available at [[https://github.com/dxc-technology/Sequences-as-Code{Right click to open in a new window or a new tab} SaC repository]];
36+
note right
2437
[[https://github.com/dxc-technology/Sequences-as-Code{Right click to open in a new window or a new tab} SaC repositories]] default pipeline includes
2538
- markdown spelling checks
2639
- dockerfile, json and js linting
@@ -30,30 +43,32 @@ note left
3043
- SVG diagrams generated from the sequence UML files and are committed to repository
3144
- code to deploy your site to the repositories GitHub pages site when the Master branch is updated.
3245
end note
33-
:Fork your newly created repository [[https://github.com/your_organization/your_repository{Right click to open in a new window or a new tab} Your repository]];
34-
:Clone your fork on your local machine;
35-
:Update the homepage value in the package.json file with the (case sensitive) address of your new repository;
46+
Developer -> D: Fork your newly created repository [[https://github.com/your_organization/your_repository{Right click to open in a new window or a new tab} Your repository]];
47+
Developer -> E: Clone your fork on your local machine
48+
Developer -> F: Update the homepage value in the package.json file with the (case sensitive) address of your new repository
3649
note right
3750
The base url for generated site needs to be set correctly for your missions and sequences to render.
3851
end note
39-
:Find and replace all references to the [[https://github.com/dxc-technology/Sequences-as-Code{Right click to open in a new window or a new tab} SaC repository]] with the address of your instace of the repository;
40-
note left
52+
Developer -> G: Find and replace all references to the [[https://github.com/dxc-technology/Sequences-as-Code{Right click to open in a new window or a new tab} SaC repository]] with the address of your instance of the repository;
53+
note right
4154
You can ignore the references in the sample uml and svg files as you presumably will be replacing those files.
4255
end note
43-
:Open a terminal session, go to your local folder and run <i>npm install</i>;
56+
Developer -> H: Open a terminal session, go to your local folder and run <i>npm install</i>;
4457
note right
4558
This is to install the dependencies in the local node_modules folder
4659
end note
47-
:Add missions and sequences;
60+
Developer -> I: Add missions and sequences
61+
note right
4862
:Remove the sample mission and sequence, entitled Your mission, created when you created the instance of the [[https://github.com/dxc-technology/Sequences-as-Code{Right click to open in a new window or a new tab} SaC repository]];
49-
note left
5063
Delete the entry for yourmission from missions.json.
5164
Delete the associated images/yourmission.svg and uml/yourmission.uml files from the sequences/yourmission folder.
5265
end note
53-
:Run unit tests;
54-
:Update any unit tests that need to be updated;
55-
:Commit your changes;
56-
:Deploy;
57-
:Verify your site is up and running. It should be available at [[https://github.com/pages/your_organization/your_repository{Right click to open in a new window or a new tab} Your repositories GitHub pages site]];;
58-
stop
66+
Developer -> J: Run unit tests
67+
note right
68+
Remember to update any unit tests that need to be updated;
69+
end note
70+
Developer -> K: Commit your changes
71+
Developer -> L: Deploy
72+
Developer -> M: Verify your site is up and running. It should be available at [[https://github.com/pages/your_organization/your_repository{Right click to open in a new window or a new tab} Your repositories GitHub pages site]];
73+
5974
@enduml

src/sequences/sachelp/uml/updateinstance.uml

Lines changed: 45 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,63 @@ title
66

77
end title
88

9-
start
10-
:Start;
11-
:Open a terminal session;
12-
:Go to your cloned copy of your dedicated instance of SaC;
13-
note left
14-
Clone will be of [[https://github.com/your_organization/your_repository{Right click to open in a new window or a new tab} Your repository]]
9+
actor Developer
10+
participant "Start" as A #lightGreen
11+
participant "Go to Clone" as B #white
12+
participant "Backup Clone" as C #white
13+
participant "Get Latest Release" as D #white
14+
participant "Apply Release" as E #white
15+
participant "Update package.json" as F #white
16+
participant "Replace SaC links" as G #white
17+
participant "Install Dependencies" as H #white
18+
participant "Reapply Missions & Sequences" as I #white
19+
participant "Remove Sample Mission" as J #white
20+
participant "Test" as K #white
21+
participant "Commit" as L #white
22+
participant "Deploy" as M #white
23+
participant "Browse" as N #orange
24+
25+
Developer -> A: Open a terminal session
26+
Developer -> B: Go to your cloned copy of your dedicated instance of SaC
27+
note right
28+
Clone will be of [[https://github.com/your_organization/your_repository{Right click to open in a new window or a new tab} Your repository]]
1529
end note
16-
:Back up your cloned files;
17-
:Get the updated version of SaC from the [[https://github.com/dxc-technology/Sequences-as-Code/releases{Right click to open in a new window or a new tab} Releases tab]] of the SaC repository;
18-
:Update the homepage value in the package.json file with the (case sensitive) address of your repository;
30+
Developer -> C: Back up your cloned files
31+
Developer -> D: Get the updated version of SaC from the [[https://github.com/dxc-technology/Sequences-as-Code/releases{Right click to open in a new window or a new tab} Releases tab]] of the SaC repository
32+
Developer -> E: Apply the latest version
33+
Developer -> F: Update the homepage value in the package.json file with the (case sensitive) address of your new repository
1934
note right
2035
The base url for generated site needs to be set correctly for your missions and sequences to render.
2136
end note
22-
:Find and replace all references to the [[https://github.com/dxc-technology/Sequences-as-Code{Right click to open in a new window or a new tab} SaC repository]] with the address of your instance of the repository;
23-
note left
37+
Developer -> G: Find and replace all references to the [[https://github.com/dxc-technology/Sequences-as-Code{Right click to open in a new window or a new tab} SaC repository]] with the address of your instance of the repository
38+
note right
2439
You can ignore the references in the sample uml and svg files as you presumably will be replacing those files.
2540
end note
26-
:Open a terminal session, go to your local folder and run <i>npm install</i>;
41+
Developer -> H: Open a terminal session, go to your local folder and run <i>npm install</i>
2742
note right
2843
This is to install any new or updated dependencies in the local node_modules folder
2944
end note
30-
:Reapply your missions and sequences;
45+
Developer -> I: Remove the sample mission and sequence, entitled Your mission, provided with the new release of the [[https://github.com/dxc-technology/Sequences-as-Code{Right click to open in a new window or a new tab} SaC repository]]
46+
note right
47+
Delete the entry for yourmission from missions.json.
48+
Delete the associated images/yourmission.svg and uml/yourmission.uml files from the sequences/yourmission folder.
49+
end note
50+
Developer -> J: Reapply your missions and sequences
3151
note right
3252
Re configure your missions and sequences in missions.json.
3353
Re add your sequence uml and svg files to the appropriate sequences sub-folder.
3454
end note
35-
:Remove the sample mission and sequence, entitled Your mission, provided with the new release of the [[https://github.com/dxc-technology/Sequences-as-Code{Right click to open in a new window or a new tab} SaC repository]];
36-
note left
37-
Delete the entry for yourmission from missions.json.
38-
Delete the associated images/yourmission.svg and uml/yourmission.uml files from the sequences/yourmission folder.
55+
Developer -> K: Run unit tests
56+
note right
57+
Remember to update any unit tests that need to be updated
58+
end note
59+
Developer -> L: Commit your changes
60+
Developer -> M: Deploy
61+
Developer -> N: Verify your site is up and running. It should be available at [[https://github.com/pages/your_organization/your_repository{Right click to open in a new window or a new tab} Your repositories GitHub pages site]]
62+
note right
63+
Remember to update any unit tests that need to be updated
3964
end note
40-
:Run unit tests;
41-
:Update any unit tests that need to be updated;
42-
:Commit your changes;
43-
:Deploy;
44-
:Verify your site is up and running. It should be available at [[https://github.com/pages/your_organization/your_repository{Right click to open in a new window or a new tab} Your repositories GitHub pages site]];;
45-
stop
65+
Developer -> L: Commit your changes
66+
Developer -> M: Deploy
67+
Developer -> N: Verify your site is up and running. It should be available at [[https://github.com/pages/your_organization/your_repository{Right click to open in a new window or a new tab} Your repositories GitHub pages site]]
4668
@enduml

0 commit comments

Comments
 (0)