Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change notes have been used in the application as a log of changes we will notify subscribers about. Each ones also has an optional 'note' that content can use to describe the nature of the change to subscribers. This has generated historic confusion for developers and makes these concepts difficult for new starters to instantly grasp.
- Loading branch information
Showing
11 changed files
with
52 additions
and
52 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
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
2 changes: 1 addition & 1 deletion
2
lib/brexit_checker/change_notes.yaml → lib/brexit_checker/notifications.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
change_notes: | ||
notifications: | ||
- uuid: "5fe018d7-edb1-4d7a-858e-065e46d0917e" | ||
type: addition | ||
action_id: T092 | ||
|
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
4 changes: 2 additions & 2 deletions
4
spec/factories/brexit_checker/change_note.rb → .../factories/brexit_checker/notification.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
FactoryBot.define do | ||
factory :brexit_checker_change_note, class: BrexitChecker::ChangeNote do | ||
factory :brexit_checker_notification, class: BrexitChecker::Notification do | ||
id { SecureRandom.uuid } | ||
action_id { SecureRandom.uuid } | ||
type { "addition" } | ||
date { "2019-08-07" } | ||
|
||
initialize_with { BrexitChecker::ChangeNote.new(attributes) } | ||
initialize_with { BrexitChecker::Notification.new(attributes) } | ||
end | ||
end |
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