Skip to content

SQSERVICES-1645-backend-servantify-brig-auth-api#2633

Merged
battermann merged 4 commits intodevelopfrom
SQSERVICES-1645-backend-servantify-brig-auth-api
Aug 22, 2022
Merged

SQSERVICES-1645-backend-servantify-brig-auth-api#2633
battermann merged 4 commits intodevelopfrom
SQSERVICES-1645-backend-servantify-brig-auth-api

Conversation

@battermann
Copy link
Contributor

@battermann battermann commented Aug 19, 2022

Checklist

  • The PR Title explains the impact of the change.
  • The PR description provides context as to why the change should occur and what the code contributes to that effect. This could also be a link to a JIRA ticket or a Github issue, if there is one.
  • changelog.d contains the following bits of information (details):
    • A file with the changelog entry in one or more suitable sub-sections. The sub-sections are marked by directories inside changelog.d.

@battermann battermann temporarily deployed to cachix August 19, 2022 09:21 Inactive
@battermann battermann temporarily deployed to cachix August 19, 2022 09:21 Inactive
@battermann battermann changed the title migrated LoginId to schema profunctor SQSERVICES-1645-backend-servantify-brig-auth-api Aug 19, 2022
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Aug 19, 2022
@battermann battermann force-pushed the SQSERVICES-1645-backend-servantify-brig-auth-api branch from a3ba28d to 5ca44c4 Compare August 19, 2022 09:23
@battermann battermann temporarily deployed to cachix August 19, 2022 09:23 Inactive
@battermann battermann temporarily deployed to cachix August 19, 2022 09:23 Inactive
@battermann battermann force-pushed the SQSERVICES-1645-backend-servantify-brig-auth-api branch from 5ca44c4 to 0d2fe98 Compare August 19, 2022 09:24
@battermann battermann temporarily deployed to cachix August 19, 2022 09:24 Inactive
@battermann battermann temporarily deployed to cachix August 19, 2022 09:24 Inactive
@battermann battermann temporarily deployed to cachix August 19, 2022 09:37 Inactive
@battermann battermann temporarily deployed to cachix August 19, 2022 09:37 Inactive
Copy link
Contributor

@fisx fisx left a comment

Choose a reason for hiding this comment

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

looks good!

loginIdFailFast = testCase "LoginId parser: invalid email, valid phone" $ do
let actual :: Maybe LoginId = Aeson.decode "{\"email\":\"invalid-email\",\"phone\":\"+123456789\"}"
let expected = Nothing
assertEqual "should fail if any provided login id is invalid" expected actual
Copy link
Contributor

Choose a reason for hiding this comment

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

nice tests! now you could also do the same for a broken phone number and correct email, to make sure we're actually running all parsers before picking a valid value. (not crazy important, but it's easy and nice.)

@battermann battermann marked this pull request as ready for review August 22, 2022 08:32
@battermann battermann temporarily deployed to cachix August 22, 2022 08:33 Inactive
@battermann battermann temporarily deployed to cachix August 22, 2022 08:33 Inactive
@battermann battermann temporarily deployed to cachix August 22, 2022 09:15 Inactive
@battermann battermann temporarily deployed to cachix August 22, 2022 09:15 Inactive
@battermann battermann merged commit 3fbb76a into develop Aug 22, 2022
@battermann battermann deleted the SQSERVICES-1645-backend-servantify-brig-auth-api branch August 22, 2022 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants