Skip to content

Conversation

@hf-krechan
Copy link
Collaborator

No description provided.

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.
@hf-krechan hf-krechan changed the title Update Documentation How To Update Database docs(ahb.db): Update Documentation How To Update Database Aug 1, 2025
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Aug 1, 2025

#### 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Comment on lines +193 to +210
#### 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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants