Set eventSource to the EdgeEventHandle type in AEP Response Event Handle#109
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #109 +/- ##
==========================================
- Coverage 90.16% 89.91% -0.25%
==========================================
Files 16 16
Lines 569 555 -14
==========================================
- Hits 513 499 -14
Misses 56 56 |
|
@nporter-adbe Can you investigate why the coverage dropped for this PR? It appears all your changes have 100% coverage, but I wonder if the changes to the tests are causing a code path to no longer get executed. |
|
@kevinlind Yeah, that's interesting given the changes have 100% diff coverage. From what I can tell, it's caused by the fact I removed/simplified some code covered by testing, thus reducing the overall file size. Reducing the file size by removing tested code has resulted in the uncovered code to represent a larger portion of the file, which is NetworkResponseHandler.swift in this case. |
|
@nporter-adbe Okay, that makes sense. It's odd that Codecov is reporting |
|
I'm still debating whether it should be set to event source or type. |
|
@shalehaha My take is that |
|
Yes, the current way we define type/source always confuses me. But when I look at https://github.com/adobe/aepsdk-core-ios/blob/main/AEPCore/Sources/eventhub/EventType.swift, it more related to the feature/service, like analytics/target/rules. I think that is also what the |
|
@shalehaha Yeah, I can see both sides of the coin here, I wish we could revisit the definition of type/source for all events. My preference here is to keep as much consistency as possible and have |
|
@shalehaha we discussed this originally for the Edge extension, we wanted to swap the type and source as it feels like it makes more sense that way, but we gave up to that idea for consistency across extensions. I think it shouldn't matter that much since we are using constants anyways when registering the listeners. |
emdobrin
left a comment
There was a problem hiding this comment.
Looks good @nporter-adbe
Sets the event source for edge response events to the value of the handle type.
More info: #108