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 the encoder for the cursors of the edges of a connection customizable #678

Merged
merged 3 commits into from
May 23, 2020
Merged

Make the encoder for the cursors of the edges of a connection customizable #678

merged 3 commits into from
May 23, 2020

Conversation

ste93cry
Copy link
Member

Q A
Bug fix? no
New feature? yes
BC breaks? yes
Deprecations? no
Tests pass? yes
Documented? yes
License MIT

Sometimes it's useful to change the way the cursor of the edges of a connection are encoded/decoded, e.g. in the tests or if base64 is not the format users want to use for their applications. With this PR the ConnectionBuilder now accepts a new parameter that allows such customization. I chose to put the parameter as first rather that as the last (sadly breaking BC) because I think that even if rare it's probably more common the willing of changing how the cursor is encoded instead of how the edges or the connection itself are built, but of course this can be re-evaluated.

@ste93cry ste93cry requested a review from mcg-web May 23, 2020 12:35
Copy link
Member

@mcg-web mcg-web left a comment

Choose a reason for hiding this comment

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

This look good to me but I have a question. You should also add a BC note in UPGRADE-1.0.md about the order of arguments for ConnectionBuilder

Copy link
Member

@mcg-web mcg-web left a comment

Choose a reason for hiding this comment

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

what do you think of these proposals ?

Copy link
Member

@mcg-web mcg-web left a comment

Choose a reason for hiding this comment

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

Thank you @ste93cry 👍

@mcg-web mcg-web merged commit 313f199 into overblog:master May 23, 2020
@ste93cry ste93cry deleted the feature/custom-connection-cursor-encoder branch May 23, 2020 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants