-
Notifications
You must be signed in to change notification settings - Fork 0
docs(ahb.db): Update Documentation How To Update Database #633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Updates the README file to reflect the current process of creating the AHB database. It now references the `fundament` python package and the corresponding script for database creation, as well as the private repository containing the XML files.
Provides a comprehensive README for the `ahb.db` database, explaining its purpose, structure, generation process, and maintenance. The documentation clarifies the database's role in the AHB Tabellen application, its dependency on the private `xml-migs-and-ahbs` repository, and the steps required to update the database with new data.
Adds documentation on how to update the AHB database, including its source repository location and why it's private. The README in `src/server/data` now points to the root README for database information, and the detailed database documentation has been moved to the root README.
|
|
||
| #### Creation/Update Process | ||
|
|
||
| The database is created using the [fundament](https://github.com/Hochfrequenz/xml-fundamend-python/) Python package, which processes XML files containing AHB specifications. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The database is created using the [fundament](https://github.com/Hochfrequenz/xml-fundamend-python/) Python package, which processes XML files containing AHB specifications. | |
| The database is created using the [fundamend](https://github.com/Hochfrequenz/xml-fundamend-python/) Python package, which processes XML files containing AHB specifications. |
| #### Source Repository | ||
|
|
||
| The database generation script is located in the private repository: | ||
|
|
||
| - **Repository**: [xml-migs-and-ahbs](https://github.com/Hochfrequenz/xml-migs-and-ahbs) | ||
| - **Script**: `load_ahbs_into_sqlitedb.py` | ||
| - **Access**: Private repository - only accessible to Hochfrequenz organization members | ||
|
|
||
| #### Why Private? | ||
|
|
||
| The source XML files must be paid for, so they are not publicly available, which is why the repository is private. | ||
|
|
||
| ### Maintenance | ||
|
|
||
| To update the database with new AHB data: | ||
|
|
||
| 1. Access the private xml-migs-and-ahbs repository | ||
| 2. Run the `load_ahbs_into_sqlitedb.py` script |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wie vor einigerzeit besprochen: es ist besser (weil reproduzierbarer und weniger individueller setup-aufwand und ohne secret aus 1password rausfummeln), wenn man im xml-migs-and-ahbs repo ein neues release erstellt. die relevante sqlite-db wird dann schon verschlüsselt als release-artefact an das release dran gehängt. vllt an dieser stelle ein link auf ein exemplarisches release oder den release-workflow im privaten XML-repo.
No description provided.