-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop unmaintained
diff
library for logging MediaAtom
changes
This removes the unmaintained bizzabo/diff library ("ai.x" %% "diff") from media-atom-maker, as a prelude to the Scala 2.13 upgrade in PR #1140 (the diff library is only available for Scala 2.11 & 2.12). The library is only used for the media-atom-maker audit log, logging a diff when certain fields on MediaAtom entities change. The diff text only goes to the ELK logs in the free-format message & description fields. Originally, there was some functionality in the media-atom-maker UI involving an audit button, but this was removed with #759 in February 2018, and the ELK became the place this information was sent to (the only place) with #767. See also #868 (comment) for a bit of additional context. All this means that the exact format of the diff logged to the ELK is not that important - right now, the information could only really be used by a developer as an informative diagnostic - there is no process that cares if format changes. We looked at using alternative diffing libraries (diffx or difflicious) to produce the diff, but getting them to produce the format we wanted (a one-line diff with only changed fields taken from an accept-list, and no colouring) looked like it would take a bit of work - so, given that there were only a few fields to look at, we wrote a custom diff function, and extracted the diffing method out, so it could be easily unit-tested.
- Loading branch information
Showing
3 changed files
with
23 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters