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

refactor(enginenetx): make static-policy API private #1308

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Sep 26, 2023

Now that we've more or less reached the point where we wanted to be with ooni/probe#2531, let's spend some time to refactor the implementation, now that we know very well how it works, such that modifying it in the future would be easier.

The first order of business here seems to hide implementation details and get rid of too many HTTPSDialer prefixes which only cause confusion when looking at the available structs.

Here, in particular, we deal with the static-policy API. To this end, we also need to more some tests around because they need internals.

Also, while there, add a top-level description to some files, so that newcomers have an idea of what each file is about.

Now that we've more or less reached the point where we wanted to be with
ooni/probe#2531, let's spend some time to
refactor the implementation, now that we know very well how to works,
such that modifying it in the future would be easier.

The first order of business here seems to hide implementation details
and get rid of too many HTTPSDialer prefixes which only cause confusion
when looking at the available structs.

Here, in particular, we deal with the static-policy API. To this end,
we also need to more some tests around because they need internals.

Also, while there, add a top-level description to some files, so that
newcomers have an idea of what each file is about.
@bassosimone bassosimone merged commit bf05020 into master Sep 26, 2023
6 checks passed
@bassosimone bassosimone deleted the issue/2531 branch September 26, 2023 14:12
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
Now that we've more or less reached the point where we wanted to be with
ooni/probe#2531, let's spend some time to
refactor the implementation, now that we know very well how it works,
such that modifying it in the future would be easier.

The first order of business here seems to hide implementation details
and get rid of too many HTTPSDialer prefixes which only cause confusion
when looking at the available structs.

Here, in particular, we deal with the static-policy API. To this end, we
also need to more some tests around because they need internals.

Also, while there, add a top-level description to some files, so that
newcomers have an idea of what each file is about.
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.

1 participant