mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-24 17:22:34 +02:00
Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 1 to 2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/upload-pages-artifact/releases">actions/upload-pages-artifact's releases</a>.</em></p> <blockquote> <h2>v2.0.0</h2> <h1>Changelog</h1> <ul> <li>⚠️ <strong>BREAKING CHANGE:</strong> Remove built-in <code>chmod</code> commands for <code>v2</code> <a href="https://github.com/JamesMGreene"><code>@JamesMGreene</code></a> (<a href="https://redirect.github.com/actions/upload-pages-artifact/issues/69">#69</a>)</li> <li>Update README for <code>v2</code> <a href="https://github.com/JamesMGreene"><code>@JamesMGreene</code></a> (<a href="https://redirect.github.com/actions/upload-pages-artifact/issues/70">#70</a>)</li> </ul> <p>See details of <a href="https://github.com/actions/upload-pages-artifact/compare/v1.0.10...v2.0.0">all code changes</a> since previous release.</p> <h2>v1.0.10</h2> <h1>Changelog</h1> <ul> <li>readme: fix/improve note about permissions <a href="https://github.com/tshepang"><code>@tshepang</code></a> (<a href="https://redirect.github.com/actions/upload-pages-artifact/issues/65">#65</a>)</li> <li>Revert <code>chmod</code> removal for <code>v1</code> <a href="https://github.com/JamesMGreene"><code>@JamesMGreene</code></a> (<a href="https://redirect.github.com/actions/upload-pages-artifact/issues/68">#68</a>)</li> <li>Add file perms handling <a href="https://github.com/tsusdere"><code>@tsusdere</code></a> (<a href="https://redirect.github.com/actions/upload-pages-artifact/issues/64">#64</a>)</li> </ul> <p>See details of <a href="https://github.com/actions/upload-pages-artifact/compare/v1.0.9...v1.0.10">all code changes</a> since previous release.</p> <h2>v1.0.9</h2> <p>Removed <code>chmod</code> as we moved towards trusting correct file permissions have been set. In the event this isn't the case then we raise an error in the action related to the file permissions.</p> <h2>v1.0.8</h2> <h1>Changelog</h1> <ul> <li>Fail if no artifact file is found to upload <a href="https://github.com/JamesMGreene"><code>@JamesMGreene</code></a> (<a href="https://redirect.github.com/actions/upload-pages-artifact/issues/55">#55</a>)</li> <li>Fix link to releases in README <a href="https://github.com/waldyrious"><code>@waldyrious</code></a> (<a href="https://redirect.github.com/actions/upload-pages-artifact/issues/53">#53</a>)</li> <li>Bump actions/publish-action from 0.2.1 to 0.2.2 <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/upload-pages-artifact/issues/47">#47</a>)</li> <li>Add Dependabot config for Actions usage updates <a href="https://github.com/JamesMGreene"><code>@JamesMGreene</code></a> (<a href="https://redirect.github.com/actions/upload-pages-artifact/issues/46">#46</a>)</li> </ul> <p>See details of <a href="https://github.com/actions/upload-pages-artifact/compare/v1.0.7...v1.0.8">all code changes</a> since previous release.</p> <h2>v1.0.7</h2> <h1>Changelog</h1> <ul> <li>Don't change file permissions of other files <a href="https://github.com/KyeRussell"><code>@KyeRussell</code></a> (<a href="https://redirect.github.com/actions/upload-pages-artifact/issues/44">#44</a>)</li> </ul> <p>See details of <a href="https://github.com/actions/upload-pages-artifact/compare/v1.0.6...v1.0.7">all code changes</a> since previous release.</p> <h2>v1.0.6</h2> <h1>Changelog</h1> <ul> <li>Customize artifact name <a href="https://github.com/yuradanyliuk"><code>@yuradanyliuk</code></a> (<a href="https://redirect.github.com/actions/upload-pages-artifact/issues/41">#41</a>)</li> <li>Fix permissions <a href="https://github.com/yoannchaudet"><code>@yoannchaudet</code></a> (<a href="https://redirect.github.com/actions/upload-pages-artifact/issues/42">#42</a>)</li> <li>Print warnings about changed file permissions in bulk <a href="https://github.com/TooManyBees"><code>@TooManyBees</code></a> (<a href="https://redirect.github.com/actions/upload-pages-artifact/issues/38">#38</a>)</li> <li>Update to latest <code>actions/publish-action</code> <a href="https://github.com/JamesMGreene"><code>@JamesMGreene</code></a> (<a href="https://redirect.github.com/actions/upload-pages-artifact/issues/36">#36</a>)</li> </ul> <p>See details of <a href="https://github.com/actions/upload-pages-artifact/compare/v1.0.5...v1.0.6">all code changes</a> since previous release.</p> <h2>v1.0.5</h2> <h1>Changelog</h1> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="a753861a5d
"><code>a753861</code></a> Merge pull request <a href="https://redirect.github.com/actions/upload-pages-artifact/issues/69">#69</a> from actions/reapply-chmod-removal-for-v2</li> <li><a href="dca6bac0e5
"><code>dca6bac</code></a> Merge branch 'main' into reapply-chmod-removal-for-v2</li> <li><a href="3138c05496
"><code>3138c05</code></a> Merge pull request <a href="https://redirect.github.com/actions/upload-pages-artifact/issues/70">#70</a> from actions/v2-docs-improvements</li> <li><a href="07f501f6a0
"><code>07f501f</code></a> Update README for <code>v2</code></li> <li><a href="9c071e6bed
"><code>9c071e6</code></a> Reapply PR <a href="https://redirect.github.com/actions/upload-pages-artifact/issues/63">#63</a> for v2</li> <li>See full diff in <a href="https://github.com/actions/upload-pages-artifact/compare/v1...v2">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
aki_prj23_transparenzregister
Contributions
See the CONTRIBUTING.md about how code should be formatted and what kind of rules we set ourselves.
Available entrypoints
The project has currently the following entrypoint available:
- data-transformation > Transfers all the data from the mongodb into the sql db to make it available as production data.
- reset-sql > Resets all sql tables in the connected db.
- copy-sql > Copys the content of a db to another db.
- webserver > Starts the webserver showing the analysis results.
DB Connection settings
To connect to the SQL db see sql/connector.py To connect to the Mongo db see [connect]
Create a secrets.json
in the root of this repo with the following structure (values to be replaces by desired config):
The sqlite db is alternative to the postgres section.
{
"sqlite": "path-to-sqlite.db",
"postgres": {
"username": "username",
"password": "password",
"host": "localhost",
"database": "db-name",
"port": 5432
},
"mongo": {
"username": "username",
"password": "password",
"host": "localhost",
"database": "transparenzregister",
"port": 27017
}
}
Alternatively, the secrets can be provided as environment variables. One option to do so is to add a .env
file with
the following layout:
PYTHON_POSTGRES_USERNAME=postgres
PYTHON_POSTGRES_PASSWORD=postgres
PYTHON_POSTGRES_HOST=localhost
PYTHON_POSTGRES_DATABASE=postgres
PYTHON_POSTGRES_PORT=5432
PYTHON_MONGO_USERNAME=username
PYTHON_MONGO_HOST=localhost
PYTHON_MONGO_PASSWORD=password
PYTHON_MONGO_PORT=27017
PYTHON_MONGO_DATABASE=transparenzregister
PYTHON_SQLITE_PATH=PathToSQLite3.db # An overwrite path to an sqllite db
PYTHON_DASH_LOGIN_USERNAME=some-login-to-webgui
PYTHON_DASH_LOGIN_PW=some-pw-to-login-to-webgui
CR=ghcr.io/fhswf/aki_prj23_transparenzregister
TAG=latest
HTTP_PORT=80
The prefix PYTHON_
can be customized by setting a different prefix
when constructing the ConfigProvider.
Description
Languages
Jupyter Notebook
84.5%
HTML
12.1%
Python
3.3%