Skip to content

Commit

Permalink
feat(db): Add db (#6)
Browse files Browse the repository at this point in the history
* feat(db): Add draft db work

* feat(db): Add more draft db work

* Update tests/unit/test_irc.py

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(typo): Remove paren

* chore(lib): Add data interfaces

* chore: Address feedback

* Update templates/config.yaml

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore: Address feedback

* refactor(pydantic): Use pydantic models

* chore(lint): Fix linting issues in src/

* tests(irc): Start from scratch

* feat(irc): Pydantic baby

* feat(observer): Standardize connection name

* tests(db): Add db observer tests

* chore(deps): Add mocker

* tests(irc): Extend irc tests

* tests(irc): More irc tests

* refactor(logger): Don't log file content creation

* chore(naming: Rename to main

* chore(license): Remove empty line

* chore(lint): Fix linting issues

* chore(static): Fix bandit issues

* docs(): Update src-docs

* chore(license): Add license header

* chore(license): Ignore templated files

* chore(fmt): Black is the new black

* chore(hooks): Add upgrade hook

* chore(status): Add Maintanence on stop

* chore(config): Remove property decorator

* chore(relation): Pass a list of relation IDs

* chore(endpoint): Split once

* chore(config): Handle KeyError in model

* chore(docstring): Remove obsolete part

* refactor(irc): Move out conf to constants

* refactor(irc): Use data hash directly

* refactor(irc): Rename file var

* refactor(irc): Use https

* refactor(db): Use from_relation

* chore(lint): Fix linting issues

* tests(irc): Basic integration

* refactor(db): Use uri in model

* tests(irc): More irc tests

* chore(db): Use MaintenanceStatus

* chore(db): Add endpoints_changed

* chore(systemd): Idempotent service enable

* chore(config): Handle KeyError

* ci(): Make lint happi

* tests(): Assert message

* tests(): reAssert message

* chore(): No reason no cry

* chore(): Raise custom error

* chore(): Log config exception

* chore(): Better error message

* chore(logging): Lazy swazy

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
merkata and github-actions[bot] authored Oct 1, 2024
1 parent 61323f5 commit 3ea9512
Show file tree
Hide file tree
Showing 30 changed files with 5,802 additions and 137 deletions.
1 change: 1 addition & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ header:
- 'lib/**'
- 'LICENSE'
- '.licenserc.yaml'
- 'templates/**'
- '.trivyignore'
- 'trivy.yaml'
- '.wokeignore'
Expand Down
3 changes: 3 additions & 0 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ bases:
run-on:
- name: ubuntu
channel: "22.04"
parts:
charm:
build-packages: [cargo, rustc, pkg-config, libffi-dev, libssl-dev]
20 changes: 20 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.

options:
ident_enabled:
type: boolean
default: false
description: |
Configures whether to enable IRC ident server.
Reference: |
https://github.com/matrix-org/matrix-appservice-irc/blob/develop/config.sample.yaml#L437
bridge_admins:
type: string
description: |
Comma separated list of admins to be allowed to manage the bridge.
This takes the form of user1:domainX.com,user2:domainY.com...
bot_nickname:
type: string
description: |
Name of the bot that will connect to the IRC network from Matrix.
Loading

0 comments on commit 3ea9512

Please sign in to comment.