HMS-Kontoret / .github

Organization repo for templates and general stuff
1 stars 0 forks source link

feat: Automatic database schema documentation to GitHub Pages #8

Open mauritz-lovgren opened 5 months ago

mauritz-lovgren commented 5 months ago

Introduction:

We lack a way to automatically document our database(s) schemas, and having access to the documentation from a hosted site for easy browsing. Manually maintaining such a documentation using Confluence (or other location) is cumbersome and error-prone.

Purpose:

Documentation for the database design is important for understanding the underlying data model when implementing data-centric or data-dependent solutions. The documentation should be available without having to log in to a database.

Benefits:

Increase productivity for both frontend and backend developers by making database documentation quickly and easily available.

Research:

Looked in to several similar database documentation tools that surfaced through Google search or through references from other projects:

Highlighted Features:

Ability to export database documentation that can be used with GitHub Pages (HTML)

Cost Analysis:

Only development adaptation costs for community licensed edition.

Risks and Mitigations:

Alternatives Considered:

Dependencies:

Attachments:

https://medium.com/javarevisited/spring-schemaspy-db-docs-and-github-pages-a966caae347e

lena-osterhus commented 4 months ago

Looks good to me 👌 Would be nice to have this for MDS and Cosmos databases as well!

mauritz-lovgren commented 4 months ago

Looks good to me 👌 Would be nice to have this for MDS and Cosmos databases as well!

Most definitely! The workflow as implemented in ADAT-1480 (https://github.com/HMS-Kontoret/github-workflows/pull/89) should be possible to port to databases in Azure as well (would need some work on the authentication part, otherwise the basic principles should be the same).