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

feat(enginenetx): support getting stats on a domain endpoint #1311

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Sep 26, 2023

We need this functionality to ask the stats questions like "what are all the available tactics for www.example.com:443 along with their stats?". In turn, this information is needed to implement a new policy that uses existing stats to choose what to do.

While there, rename files to make it clear which files contain policies and which contain state trackers. Useful because upcoming changes will add files containing state-based policy.

While there, stop being paranoid about cloning a nil map to a nil map, acknowledge this is not important and making it round trip correctly would require more code we don't need, and simply adjust tests to accept nil and empty map as equal.

Part of ooni/probe#2531

Make it clear which files contain policies and which contain
state trackers. Useful because upcoming changes will add files
containing state-based policy.

Part of ooni/probe#2531
We need this functionality to ask the stats questions like "what are
all the available tactics for www.example.com:443 along with their
stats?". In turn, this information is needed to implement a new policy
that uses existing stats to choose what to do.

Part of ooni/probe#2531
@bassosimone bassosimone changed the title refactor(enginenetx): add scope to file names feat(enginenetx): support getting stats on a domain endpoint Sep 26, 2023
@bassosimone bassosimone merged commit 619d536 into master Sep 26, 2023
6 of 8 checks passed
@bassosimone bassosimone deleted the issue/2531 branch September 26, 2023 16:15
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
We need this functionality to ask the stats questions like "what are all
the available tactics for www.example.com:443 along with their stats?".
In turn, this information is needed to implement a new policy that uses
existing stats to choose what to do.

While there, rename files to make it clear which files contain policies
and which contain state trackers. Useful because upcoming changes will
add files containing state-based policy.

While there, stop being paranoid about cloning a nil map to a nil map,
acknowledge this is not important and making it round trip correctly
would require more code we don't need, and simply adjust tests to accept
nil and empty map as equal.

Part of ooni/probe#2531
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