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

Colt Parser #61

Merged
merged 15 commits into from
Sep 7, 2021
Merged

Colt Parser #61

merged 15 commits into from
Sep 7, 2021

Conversation

pke11y
Copy link
Contributor

@pke11y pke11y commented Sep 4, 2021

Initial commit for the Colt parser. Adds new CSV type base parser.

WIP: further tests to be added once #56 is merged. Currently this is required to ensure e2e email test is successful.

Includes individual tests for each attachment - iCal and CSV.

Adds email type to the e2e tests using .eml file with .ics and .csv attachments.

@chadell
Copy link
Collaborator

chadell commented Sep 6, 2021

@pke11y good work! going on the right direction!

@@ -10,6 +10,7 @@
from circuit_maintenance_parser.provider import (
GenericProvider,
Cogent,
Colt,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know this was the pattern before, but this is gonna change, so better if you do not update this file, less conflicts to fix :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah ok, I see the other PR now. Will remove.

@chadell
Copy link
Collaborator

chadell commented Sep 6, 2021

#56 PR is merged ;)

Comment on lines 48 to 55
# organizer = (
# str(component.get("ORGANIZER")) if component.get("ORGANIZER") else self.default_organizer
# )
# provider = (
# str(component.get("X-MAINTNOTE-PROVIDER"))
# if component.get("X-MAINTNOTE-PROVIDER")
# else self.default_provider
# )
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# organizer = (
# str(component.get("ORGANIZER")) if component.get("ORGANIZER") else self.default_organizer
# )
# provider = (
# str(component.get("X-MAINTNOTE-PROVIDER"))
# if component.get("X-MAINTNOTE-PROVIDER")
# else self.default_provider
# )


data = {
"circuits": [],
# "provider": provider,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# "provider": provider,

Comment on lines 73 to 74
# "organizer": organizer,
# "uid": str(component.get("UID")),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# "organizer": organizer,
# "uid": str(component.get("UID")),

chadell
chadell previously approved these changes Sep 6, 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

@chadell chadell merged commit 5081cff into networktocode:develop Sep 7, 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.

2 participants