-
Notifications
You must be signed in to change notification settings - Fork 3
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
Content carousel support #129
Conversation
Codecov Report
@@ Coverage Diff @@
## master #129 +/- ##
=======================================
Coverage 82.21% 82.21%
=======================================
Files 13 13
Lines 461 461
=======================================
Hits 379 379
Misses 60 60
Partials 22 22
Continue to review full report at Codecov.
|
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.
👍
app_test.go
Outdated
if !isIgnorableMessage(syntheticTID) { | ||
t.Error("Synthetic message marked as normal") | ||
} | ||
if !isIgnorableMessage(carouselRepublishTID) { | ||
t.Error("Courousel republish message marked as normal") |
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.
Carousel
:)
app_test.go
Outdated
t.Error("Courousel republish message marked as normal") | ||
} | ||
if !isIgnorableMessage(carouselGeneratedTID) { | ||
t.Error("Courousel generated message marked as normal") |
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.
And again Carousel
LICENSE
Outdated
@@ -0,0 +1,21 @@ | |||
MIT License | |||
|
|||
Copyright (c) 2016 Financial Times |
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.
2017
app.go
Outdated
return strings.HasPrefix(tid, "SYNTHETIC") | ||
} | ||
|
||
var carouselTransactionIDRegExp = regexp.MustCompile(`^(tid_[\S]+)_carousel_[\d]{10}.*$`) |
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.
I'd prefer all the declarations at the top of the file. Also I wonder whether this should be ^(tid_[^_]+)_...
This PR includes: