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: MeasurementTarget -> MeasurementInput #1609

Merged
merged 4 commits into from
Jun 4, 2024
Merged

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Jun 4, 2024

While starting to work on richer input, I realised that it would be very handy to reserve the name "target" to describe a richer input target as the tuple containing options and some input.

However, using such a naming would ~clash with the definition of MeasurementTarget, which is a string definition that is only there to say semantically that the Input field of a measurement is the "thing" that we measure, as well as to apply a specific JSON serialization policy that is consistent with the historical behavior of OONI Probe.

Therefore, for making semantic space for a richer input target, I am going to refactor MeasurementTarget to be MeasurementInput.

No functional change.

Part of ooni/probe#2607.

While starting to work on richer input, I realised that it would
be very handy to reserve the name "target" to describe a richer input
target as the tuple containing options and some input.

However, using such a naming would clash with the definition of
MeasurementTarget, which is a string definition that is only there
to say semantically that the Input field of a measurement is the
thing that we should really measure.

Therefore, for making semantic space for targets, I am going to
refactor MeasurementTarget to be MeasurementInput.

No functional change.

Part of ooni/probe#2607
@bassosimone bassosimone requested a review from hellais as a code owner June 4, 2024 10:20
@DecFox
Copy link
Contributor

DecFox commented Jun 4, 2024

LGTM!

@bassosimone
Copy link
Contributor Author

I have a LGTM from @DecFox so I am going to merge as soon as tests are all green.

@bassosimone bassosimone merged commit 485c208 into master Jun 4, 2024
17 of 19 checks passed
@bassosimone bassosimone deleted the invctrl5 branch June 4, 2024 10:33
@bassosimone bassosimone added the 2024-06-richer-input Tracking 2024-06 richer input work label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2024-06-richer-input Tracking 2024-06 richer input work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants