Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sferadev/dhis-meta-repo
DHIS2 Metadata git repository builder
https://github.com/sferadev/dhis-meta-repo
dhis2 unmaintained
Last synced: 27 days ago
JSON representation
DHIS2 Metadata git repository builder
- Host: GitHub
- URL: https://github.com/sferadev/dhis-meta-repo
- Owner: SferaDev
- License: gpl-3.0
- Created: 2020-03-16T18:39:19.000Z (over 4 years ago)
- Default Branch: development
- Last Pushed: 2023-01-05T16:28:00.000Z (almost 2 years ago)
- Last Synced: 2024-10-09T10:54:09.768Z (about 1 month ago)
- Topics: dhis2, unmaintained
- Language: TypeScript
- Homepage:
- Size: 1.13 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DHIS2 Metadata git repository builder
A simple script that creates/updates an opinionated git repository with all the metadata found in a given DHIS2 instance.
Since DHIS2 does not support metadata versioning, it's impossible to track down changes.
This script supports incremental changes as git commits authored by a DHIS2 user on the day the last change was introduced.
The changes are queried using the ``/metadata`` endpoint using ``d2-api``.
## Setup
```
$ yarn install
```## Development
```
$ yarn start
```## Configuration file
File `config.json` must be provided, the path of the configuration file can be changed with argument ``-c`` or ``--config``.
All the properties have a default value in case the configuration file is not complete.
```
{
"debug": true,
"dhis": {
"baseUrl": "http://play.dhis2.org/demo",
"username": "admin",
"password": "district"
},
"repo": {
"url": "[email protected]:/.git",
"branch": "branch",
"ssh": {
"publicKey": "/home//.ssh/id_rsa.pub",
"privateKey": "/home//.ssh/id_rsa",
"passphrase": ""
},
"commiter": {
"name": "DHIS Meta Repo",
"email": "meta-repo@dhis"
},
"temporal": true,
"hideAuthor": false,
"pushToRemote": true
},
"logger": {
"level": "trace",
"fileName": "debug.log"
},
"metadata": {
"exclusions": ["externalFileResources", "eventFilters"],
"special": ["organisationUnits"]
}
}
```