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

Add a Verizon parser #50

Merged
merged 4 commits into from
Aug 24, 2021
Merged

Add a Verizon parser #50

merged 4 commits into from
Aug 24, 2021

Conversation

pke11y
Copy link
Contributor

@pke11y pke11y commented Aug 20, 2021

This PR adds an email parser for Verizon circuit maintenance notifications.

Unit/Provider tests included:

  • Confirmed notification with 1 circuit
  • Confirmed notifications with 4 circuits
  • Cancelled notification with 2 circuits

chadell
chadell previously approved these changes Aug 23, 2021
Copy link
Collaborator

@chadell chadell left a comment

Choose a reason for hiding this comment

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

It looks good! just few simple points to complete it

circuit_maintenance_parser/__init__.py Show resolved Hide resolved
"""Execute parsing."""
data = data_base.copy()
try:
logger.debug("PARSING")
Copy link
Collaborator

Choose a reason for hiding this comment

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

parsing what? maybe a more detailed message would help :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was only temporary, but will keep and add more detail if that works. Can remove if required.

"""Verizon provider custom class."""

_parser_classes: Iterable[Type[Parser]] = [HtmlParserVerizon1]
_default_organizer = "[email protected]"
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe not the most "generic" email, but until we don't have other, it should work

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agreed, but the only one we have right now.

chadell
chadell previously approved these changes Aug 23, 2021
Copy link
Collaborator

@chadell chadell left a comment

Choose a reason for hiding this comment

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

LGTM

glennmatthews
glennmatthews previously approved these changes Aug 23, 2021
circuit_maintenance_parser/parsers/verizon.py Outdated Show resolved Hide resolved
Co-authored-by: Glenn Matthews <[email protected]>
@chadell chadell dismissed stale reviews from glennmatthews and themself via 7e3c917 August 24, 2021 05:36
Copy link
Collaborator

@chadell chadell left a comment

Choose a reason for hiding this comment

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

LGTM

@chadell chadell merged commit 2d9edd2 into networktocode:develop Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants