Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Handle newtype abstract #4076

Merged
merged 5 commits into from
Jun 6, 2024
Merged

Make Handle newtype abstract #4076

merged 5 commits into from
Jun 6, 2024

Conversation

fisx
Copy link
Contributor

@fisx fisx commented Jun 3, 2024

https://wearezeta.atlassian.net/browse/WPB-9597

(Fell out of https://wearezeta.atlassian.net/browse/WPB-8880)

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Jun 3, 2024
@fisx fisx force-pushed the fisx/make-handle-abstract branch from 701882c to 56d395b Compare June 6, 2024 10:39
@fisx fisx marked this pull request as ready for review June 6, 2024 10:43
Copy link
Contributor

@pcapriotti pcapriotti 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. Minor comment below.

\(alice, Handle newHandle, domain, config) ->
not (isBlacklistedHandle (Handle newHandle)) ==>
\(alice, fromHandle -> newHandle, domain, config) ->
not (isBlacklistedHandle (fromJust (parseHandle newHandle))) ==>
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to change isBlacklistedHandle to take a Handle instead of parsing it again here?

@fisx fisx merged commit 520964b into develop Jun 6, 2024
9 checks passed
@fisx fisx deleted the fisx/make-handle-abstract branch June 6, 2024 15:10
@echoes-hq echoes-hq bot added echoes: technical-roadmap/throughput More specific category, to highlight task aiming at improving the development velocity and effici... echoes: technical-roadmap/technical-debt More specific category, to highlight Technical Debt being tackled. labels Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: technical-roadmap/technical-debt More specific category, to highlight Technical Debt being tackled. echoes: technical-roadmap/throughput More specific category, to highlight task aiming at improving the development velocity and effici... 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