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

THRIFT-5635: update erlang client #2677

Closed
wants to merge 1 commit into from
Closed

THRIFT-5635: update erlang client #2677

wants to merge 1 commit into from

Conversation

kpy3
Copy link
Contributor

@kpy3 kpy3 commented Sep 24, 2022

Try to update Erlang client with modern features and tools

  • Added useful compiler, ref and dialyzer flags

  • Added types to record fields in states

  • Added missing specs for function

  • Reformat source code using erlfmt (de-facto standard in Erlang world)

  • Replace deprecated and removed syntax constructs and functions with counterparts

  • https://issues.apache.org/jira/browse/THRIFT-5635

  • If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?

  • Did you squash your changes to a single commit? (not required, but preferred)

  • Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?

  • If your change does not involve any code, include [skip ci] anywhere in the commit message to free up build resources.

@kpy3 kpy3 marked this pull request as draft September 24, 2022 09:07
@Jens-G
Copy link
Member

Jens-G commented Sep 24, 2022

Much appreciated!

@Jens-G Jens-G added the erlang label Oct 25, 2022
@Jens-G
Copy link
Member

Jens-G commented Jul 11, 2023

Is this still draft?

@kpy3 kpy3 marked this pull request as ready for review July 12, 2023 06:47
@kpy3
Copy link
Contributor Author

kpy3 commented Jul 12, 2023

Hi @Jens-G,

in general I've made almost all planned changes, some missed tweaks for multiplexer can be added via another PR, I think. So in my opinion this PR is ready for review.

@kpy3 kpy3 changed the title WIP: THRIFT-5635: update erlang client THRIFT-5635: update erlang client Jul 12, 2023
Summary of changes:

 - Add useful compiler options
 - Format sources using erlfmt
 - Switch to modern callbacks in thrift_* modules
 - Add static analysis (dialyzer), disabled by default
 - Add/fix types for API calls

NOTE: Enabling static analysis requires additional tweaks in multiplexer module.
@Jens-G Jens-G closed this in 4576409 Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants