Skip to content

Commit 7519f0b

Browse files
committed
Basic Mode
1 parent bd1069e commit 7519f0b

File tree

6 files changed

+61
-28
lines changed

6 files changed

+61
-28
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
3939
For those with less experience using source control, we recommend this [page](/docs/scintro.md) for a quick introduction to source control / change control basics.
4040
41-
### Health Connect Cloud (HCC)
42-
git-source control is the recommended source control for HCC. [This page](/docs/hcc.md) covers HCC specific usage of git-source-control, including the recommended development workflow, initial setup, and CICD pipelining.
41+
### Health Connect Cloud
42+
git-source control is the recommended source control for Health Connect Cloud. [This page](/docs/hcc.md) covers HCC specific usage of git-source-control, including the recommended development workflow, initial setup, and CICD pipelining.
4343
4444
### Studio
4545
Add a file for tracking by right-clicking on it in the workspace/project view and choosing Git > Add.

docs/expert.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
### Feature branches
2+
3+
The first step in making changes in Health Connect Cloud using git-source-control is making a feature branch. In order for changes to be tracked by source control properly, each change (also called a feature) should be made on it's own branch, so as to not interfere with other changes, and allow for testing of its effects on the production environment. To create a new feature branch, navigate to the Git UI in the namespace you plan on doing development.
4+
5+
First, make sure that you are in the development branch. It should be bolded and at the top of the Local Branches in the sidebar. If it is not, as pictured below, click on the "development" branch and press checkout branch.
6+
7+
![Development branch in Git UI Sidebar](images/hcc/developmentsidebar.png)
8+
9+
Once you are in the development branch, press the "+" next the the Local Branches tab, and create a new branch by typing out a name for it. (No spaces or special characters are allowed in branch names).
10+
11+
![Creating a new via sidebar](images/hcc/newbranch.png)
12+
![Naming new branch](images/hcc/newbranchnaming.png)
13+
14+
Finally, you should click on the new branch you just made in the sidebar, and then press "Push".
15+
16+
![Push your new branch](images/hcc/pushbranch.png)
17+
18+
This makes sure that your branch will be tracked in Gitlab, so that other users can checkout your branch to test your changes on their own namespaces.
19+
20+
After this, you can start working on the change.
21+
22+
### Merge Requests
23+
24+
Once you have made all the changes for the specific feature you are working on, and have tested in your namespace, it will be time to merge all of these changes into the development branch. To start, make sure that all your changes have been commited to your feature branch. To do this, navigate to the Git UI, and after making sure you are in the right feature branch, press the "Workspace" tab at the top of the sidebar.
25+
26+
![Workspace tab in the sidebar](images/hcc/sidebar.png)
27+
28+
This will bring you to the workspace view. All the changes you made to files should be in the bottom left of the workspace view. ![Changed files in workspace](images/hcc/workspacechanges.png)
29+
30+
Clicking on one of these files will bring up a line by line view of the changes that have been made. Make sure that these are the changes you want to make, and then select all the files. Next, enter a commit message that should describe that changes that have been made.
31+
32+
![Enter commit message](images/hcc/commitmessage.png)
33+
34+
You can enter more details below, and then press the commit button underneath. This will commit the changes you have made to your feature branch. Once all of your changes have been committed, you should be ready to merge into the development branch.
35+
36+
In the Git UI, first checkout the development branch, by selecting it from the Local Branches and pressing "Checkout branch". Next, find the feature branch that you have been working on, select it from the local branches, and press "Merge Branch".
37+
38+
![Merge Branch](images/hcc/mergebranch.png)
39+
40+
41+
42+

docs/hcc.md

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,39 @@
1-
# git-source-control for Health Connect Cloud
1+
# git-source-control for Health Connect Cloud Overview
22

33
## Development Workflow
44

5-
git-source-control has two main use modes: Basic and Expert. For Health Connect Cloud, we recommend beginning with basic mode, since it includes all of the necessary functionality for proper source control development while being easy to use for those with little development / source control experience. The recommended workflow for HCC is to create featyre branches, merge them into development, and then git pull the changes in the shared development namespace. The rest of this section explains this workflow more in depth for those with less source control experience.
5+
git-source-control has two main use modes: Basic and Expert. For Health Connect Cloud, we recommend beginning with basic mode, since it includes all of the necessary functionality for proper source control development while being easy to use for those with little development / source control experience. The recommended workflow for Health Connect Cloud is to create interface branches, create merge requests into development, and then pull the changes into the shared development namespace. The rest of this section explains this workflow more in depth for those with less source control experience.
66

7-
### Feature branches
87

9-
The first step in making changes in Health Connect Cloud using git-source-control is making a feature branch. In order for changes to be tracked by source control properly, each change (also called a feature) should be made on it's own branch, so as to not interfere with other changes, and allow for testing of its effects on the production environment. To create a new feature branch, navigate to the Git UI in the namespace you plan on doing development.
8+
### Interface branches
109

11-
First, make sure that you are in the development branch. It should be bolded and at the top of the Local Branches in the sidebar. If it is not, as pictured below, click on the "development" branch and press checkout branch.
10+
The first step in making changes in Health Connect Cloud using git-source-control is making an interface (feature) branch. In order for changes to be tracked by source control properly, each change (also called a feature) should be made on it's own branch, so as to not interfere with other changes, and allow for testing of its effects on the production environment. To create a new feature branch, use the source control menu and select "Create new branch".
1211

13-
![Development branch in Git UI Sidebar](images/hcc/developmentsidebar.png)
12+
![Creating a new branch](images/hcc/newbranchmenu.png)
1413

15-
Once you are in the development branch, press the "+" next the the Local Branches tab, and create a new branch by typing out a name for it. (No spaces or special characters are allowed in branch names).
14+
You will be prompted to enter a name for your new branch (no spaces or special characters), after which your environment will switch to that new branch. All new branches are fresh copies of the development branch.
1615

17-
![Creating a new via sidebar](images/hcc/newbranch.png)
18-
![Naming new branch](images/hcc/newbranchnaming.png)
16+
### Making changes
1917

20-
Finally, you should click on the new branch you just made in the sidebar, and then press "Push".
18+
Now that you are in your new branch (you can see which branch you are in in the source control menu), you can start making changes. As you make changes to different business processes, rules, and productions, make sure that all of these changes are saved properly before you try to sync and merge.
2119

22-
![Push your new branch](images/hcc/pushbranch.png)
20+
### Syncing and Merge Requests
2321

24-
This makes sure that your branch will be tracked in Gitlab, so that other users can checkout your branch to test your changes on their own namespaces.
22+
Once you have made all the changes for the specific feature you are working on, and have tested in your namespace, it will be time to merge all of these changes into the development branch.
2523

26-
After this, you can start working on the change.
24+
To start, press the sync button from the source control menu.
2725

28-
### Merge Requests
26+
![Sync option in menu](images/hcc/sync.png)
2927

30-
Once you have made all the changes for the specific feature you are working on, and have tested in your namespace, it will be time to merge all of these changes into the development branch. To start, make sure that all your changes have been commited to your feature branch. To do this, navigate to the Git UI, and after making sure you are in the right feature branch, press the "Workspace" tab at the top of the sidebar.
28+
This will bring up the sync interface, where you are able to see all the of the files you have changed, as well as add a descriptive comment for the changes you made. When you sync, these changes will be pushed to the git remote.
3129

32-
![Workspace tab in the sidebar](images/hcc/sidebar.png)
30+
![Sync Interface](images/hcc/syncinterface.png)
3331

34-
This will bring you to the workspace view. All the changes you made to files should be in the bottom left of the workspace view. ![Changed files in workspace](images/hcc/workspacechanges.png)
32+
Use the link in the output of the sync in order to create a merge request in the git remote (don't worry if you close out of the sync tab, you can also navigate to GitLab manually). Here, you should make sure that you are merging your interface branch into the development environment, and notify / add the relevant reviewers. Once this merge request is approved, it will be merged into the development branch, so that all of your changes will now be a part of development.
3533

36-
Clicking on one of these files will bring up a line by line view of the changes that have been made. Make sure that these are the changes you want to make, and then select all the files. Next, enter a commit message that should describe that changes that have been made.
37-
38-
![Enter commit message](images/hcc/commitmessage.png)
39-
40-
You can enter more details below, and then press the commit button underneath. This will commit the changes you have made to your feature branch. Once all of your changes have been committed, you should be ready to merge into the development branch.
41-
42-
In the Git UI, first checkout the development branch, by selecting it from the Local Branches and pressing "Checkout branch". Next, find the feature branch that you have been working on, select it from the local branches, and press "Merge Branch".
43-
44-
![Merge Branch](images/hcc/mergebranch.png)
34+
### Pull
4535

36+
In for the changes in development to be reflected in your namespace, you should swicth to the development namespace from the GitUI, and then access the git pull page (from the favorites bar), and pull any changes. You should see the changes you made now reflected in your local namespace again. It is good practice to git pull every once in a while to make sure that your local development branch is up to date with all of the changes made to the remote development.
4637

4738

4839

docs/images/hcc/newbranchmenu.png

79.4 KB
Loading

docs/images/hcc/sync.png

78.6 KB
Loading

docs/images/hcc/syncinterface.png

155 KB
Loading

0 commit comments

Comments
 (0)