Skip to content

Commit

Permalink
Merge pull request #1111 from morucci/fix-missing-eerror-doc
Browse files Browse the repository at this point in the history
Fix missing EError doc in AllEventTypes
  • Loading branch information
mergify[bot] authored Jan 29, 2024
2 parents 90d25b0 + 117042c commit 11bc6e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ All notable changes to this project will be documented in this file.
### Removed
### Fixed

- [janitor] `update-idents` unables to process when some Error docs are in the index.

## [1.11.0] - 2024-01-12

### Added
Expand Down
3 changes: 2 additions & 1 deletion src/Monocle/Backend/Documents.hs
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ instance FromJSON EChangeState where
)

-- | When adding new document type, update the `instance FromJSON EDocType` too.
-- | and please make sure to update `allEventTypes` accordingly
data EDocType
= EChangeCreatedEvent
| EChangeMergedEvent
Expand All @@ -339,7 +340,7 @@ data EDocType

allEventTypes :: [EDocType]
allEventTypes =
filter (`notElem` [EChangeDoc, EOrphanTaskData, ECachedAuthor]) [minBound .. maxBound]
filter (`notElem` [EChangeDoc, EOrphanTaskData, ECachedAuthor, EErrorDoc]) [minBound .. maxBound]

instance From EDocType Text where
from = \case
Expand Down

0 comments on commit 11bc6e8

Please sign in to comment.