-
Notifications
You must be signed in to change notification settings - Fork 24
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
Changing Colt parsing to use Subject and remove ICal #105
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you clarify why you've removed ICalParserColt1
? Based on my limited understanding it seems like this PR should be adding a new processor/parser option, not removing/replacing the iCal support.
@glennmatthews the objective was to consolidate the number of parsers. Update notifications do no contain an ICal attachment. Most of the useful information is contained in the subject for all notifications. So we're extracting the account number from the CSV file now instead of the ICal attachment and all of the rest is in the subject. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -87,11 +87,6 @@ | |||
# Path(dir_path, "data", "cogent", "cogent2_result.json"), | |||
# ), | |||
# Colt | |||
( | |||
ICalParserColt1, | |||
Path(dir_path, "data", "colt", "colt1"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are removing this parser, why do we keep the test data file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be an old version. The test has been removed. The data file is still in the repo as the colt1
is an .ics
attachment included in the colt3.eml
.
Hm, okay. I had thought that a goal of this library was to prefer the standard iCal format where possible since it's an emerging standard. Disregarding a (standardized, easy-to-parse) iCal attachment from this specific provider in favor of (fragile, error-prone) HTML parsing feels like a step backwards to me. I'll defer to you and @chadell on this point though. |
@glennmatthews you are right about the preference for the |
That's correct. We need the subject parser to get update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR is an update for Colt notifications to accommodate maintenance notification status updates, which do not contain
.ics
files. All info is in the email subject.