guardian / flexible-octopus-converter

An AWS Lambda for converting JSON from Octopus into Thrift.
1 stars 0 forks source link

Filter for unwanted publication destinations at an earlier stage #9

Closed jennygrahamjones closed 4 years ago

jennygrahamjones commented 4 years ago

What does this change?

Following on from https://github.com/guardian/flexible-octopus-converter/pull/8

Before this change, we were filtering on validatePublicationDestinations after establishing there was more than one possible body text. In reality, it turns out that there are situations when we get only one possible body text and it could be marked as for_publication in 'n' or 'y'.

How can we measure success?

No more dead letters in the queue 🙏