Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

[CDEC-403] Remove partial field accessors from HandlerSpec, InductiveValidationError, InvariantViolation and ValidationResult data types. #3263

Merged
merged 4 commits into from
Jul 19, 2018

Conversation

Jimbo4350
Copy link
Contributor

Description

Remove partial field accessors from HandlerSpec, InductiveValidationError, InvariantViolation and ValidationResult data types.

Linked issue

https://iohk.myjetbrains.com/youtrack/issue/CDEC-403

Type of change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • 🛠 New feature (non-breaking change which adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
  • 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
  • 🔨 New or improved tests for existing code
  • ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

  • I have read the style guide document, and my code follows the code style of this project.
  • If my code deals with exceptions, it follows the guidelines.
  • I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.

Testing checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.

QA Steps

Screenshots (if available)

erikd
erikd previously requested changes Jul 18, 2018
| UnknownHandler Word8 ByteString
-- | ConvHandler hsReplyType
= ConvHandler !MessageCode
| UnknownHandler !Word8 !ByteString
deriving (Show, Generic, Eq)

instance Bi HandlerSpec where
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't seem to have golden/bitripping tests for HandlerSpec. At least not in the infra package.

We need that before we go changing things.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do, I'll create a ticket.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests created in #3268 and merged. Rebased [CDEC-403] onto develop with golden and bitripping tests still passing.

Copy link
Contributor

@mhuesch mhuesch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

build InductiveInvalidBoot{..} = bprint
build (InductiveInvalidBoot
inductiveInvalidBoot
inductiveInvalidError) = bprint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for removing uses of RecordWildcards. Maybe at some point we can go through and drop it from default-extensions / drop all uses.

@erikd erikd dismissed their stale review July 19, 2018 21:52

Issues addresses

@Jimbo4350 Jimbo4350 merged commit de0b762 into develop Jul 19, 2018
@Jimbo4350 Jimbo4350 deleted the jordan/CDEC-403 branch July 19, 2018 21:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants