You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clarifies and adds additional information to the README. In particular,
it updates the workflow outline to include information about testing the
changes in FarmData2 and updating any tests.
Copy the useful libraries from the FarmData2 repository:
17
-
- Change into the `FD2-SampleDBs` directory
18
-
-`bin/buildFD2Libs.bash`
23
+
To change, modify, update, add a database:
24
+
25
+
1. Take care of [Preliminaries above](#preliminaries).
26
+
2. Create and switch to a new feature branch from the `development` branch in the FD2-SampleDBs repository.
27
+
3. Make database changes in your feature branch.
28
+
4.[Build the database](#building-the-databases) with your changes.
29
+
5. Create and switch to a new feature branch from `development` in the FarmData2 repository.
30
+
6.[Manually Install the Database](#manually-installing-a-database).
31
+
7. Use the farmOS instance to manually explore the database and ensure that your changes are as intended. Make any corrections.
32
+
8. Run the full FarmData2 test suite.
33
+
-`cd ~/FarmData2`
34
+
-`runAllTests.bash`
35
+
9. Fix any tests that were broken by your database update.
36
+
10. Commit the patched tests to your feature branch in the FarmData2 repo.
37
+
11. Commit your changes to the Database to your feature branch in FD2-SampleDBs repo. Be sure to include:
38
+
- The changes you have made to the code.
39
+
- The newly created database files (e.g. `db.sample.tar.gz`)
40
+
12. Ensure that both feature branches are up to date with their `development` branches.
41
+
13. Push your feature branches.
42
+
14. Create a pull request to the `development` branch in the appropriate upstream for each of your feature branches.
19
43
20
44
## Building the Databases
21
45
@@ -44,29 +68,10 @@ The `buildFD2libs.bash` command will ensure that the libraries from FarmData2 th
44
68
45
69
The libraries should be maintained only from the FarmData2 repository. When new a library is updated in FarmData2 or added to FarmData2 and the changes are needed here the `buildFD2libs.bash` and `.gitignore` files should be updated and the `buildFD2libs.bash` script should be run again so that the changes are copied and adapted.
46
70
47
-
### Development Workflow
48
-
49
-
To change, modify, update, add a database:
50
-
51
-
- Prerequisites:
52
-
- Fork the `FD2-SampleDBs` upstream repository
53
-
- Clone your fork into the FarmData2 Development Environment
54
-
1. Ensure that your `development` branch is synchronized with the `upstream`
55
-
2. Create a new feature branch from the `development` branch
56
-
3. Make and test changes in your feature branch
57
-
4. Run the appropriate script(s) to build the database
58
-
5. Install and test that the new database works
59
-
- See [Manually Installing a Database](#manually-installing-a-database) above
60
-
6. Commit to your feature branch:
61
-
- The changes you have made to the code.
62
-
- The newly created database files (e.g. `db.base.tar.gz`)
63
-
7. Pull and merge any new changes to the `development` branch into your feature branch
64
-
8. Create a pull request to the `development` branch in the upstream
65
-
66
-
A maintainer will:
71
+
## Maintainers
67
72
68
-
1. Review your pull request and provide feedback
69
-
2. If/when appropriate squash merge your pull request into the `development` branch
73
+
1. Review pull requests and provide feedback
74
+
2. If/when appropriate squash merge pull request into the `development` branch
70
75
- The squash merge commit message must be a conventional commit message.
71
76
- See [Conventional Commits](https://conventionalcommits.org)
72
77
- In addition, `BREAKING CHANGE:` must be included in the footer of the commit message to produce a breaking change.
0 commit comments