Skip to content
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

Retrieve SMTP config from SMTP integrator #338

Merged
merged 18 commits into from
Nov 9, 2023
Merged

Conversation

arturo-seijas
Copy link
Collaborator

@arturo-seijas arturo-seijas commented Oct 27, 2023

Applicable spec: N/A

Overview

Retrieve SMTP config from SMTP integrator

Rationale

Leverage the new SMTP integrator charm

Juju Events Changes

Module Changes

  • New smtp observer module
  • Changes in state
  • Changes in charm

Library Changes

  • Added smtp lib

Checklist

src/charm.py Outdated Show resolved Hide resolved
src/smtp_observer.py Show resolved Hide resolved
src/smtp_observer.py Outdated Show resolved Hide resolved
@amandahla
Copy link
Contributor

One last question: Is SMTP required by Indico? Should be added to _are_relations_ready?

@arturo-seijas
Copy link
Collaborator Author

One last question: Is SMTP required by Indico? Should be added to _are_relations_ready?

Indico can work without an SMTP server

amandahla
amandahla previously approved these changes Nov 3, 2023
Copy link
Contributor

@amandahla amandahla left a comment

Choose a reason for hiding this comment

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

LGTM

yanksyoon
yanksyoon previously approved these changes Nov 8, 2023
Copy link
Contributor

@yanksyoon yanksyoon left a comment

Choose a reason for hiding this comment

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

LGTM, I do think that emitting config_changed event should be refactored as soon as it can be :p

src/smtp_observer.py Show resolved Hide resolved
Copy link
Contributor

github-actions bot commented Nov 8, 2023

Test coverage for ff3d1df

Name                       Stmts   Miss Branch BrPart  Cover   Missing
----------------------------------------------------------------------
src/charm.py                 325      8     82      9    96%   481->exit, 528->531, 624->663, 709, 769-770, 852->868, 854->863, 863->868, 876-877, 925->exit, 963-969
src/database_observer.py      33      0      4      0   100%
src/smtp_observer.py          16      0      0      0   100%
src/state.py                  44      0      4      0   100%
----------------------------------------------------------------------
TOTAL                        418      8     90      9    97%

Static code analysis report

Run started:2023-11-08 12:14:19.410061

Test results:
  No issues identified.

Code scanned:
  Total lines of code: 2461
  Total lines skipped (#nosec): 7
  Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0

Run metrics:
  Total issues (by severity):
  	Undefined: 0
  	Low: 0
  	Medium: 0
  	High: 0
  Total issues (by confidence):
  	Undefined: 0
  	Low: 0
  	Medium: 0
  	High: 0
Files skipped (0):

Copy link
Contributor

@gregory-schiano gregory-schiano left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@amandahla amandahla left a comment

Choose a reason for hiding this comment

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

LGTM

@arturo-seijas arturo-seijas merged commit 858ac3b into main Nov 9, 2023
20 of 22 checks passed
@arturo-seijas arturo-seijas deleted the use-smtp-integrator branch November 9, 2023 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants