-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add DateAnonymizer #32
Comments
Also add options to be able to anonymize int by adding noise. #[ORM\Column]
// This will add to the value a random interval between -P1D and P1D
#[Anonymize(type: 'date', options: ['delta' => 'P1D'])]
private ?int $age = null; |
Won't be easy to do without makinacorpus/php-query-builder#5 |
Actually, things changed, I implemented makinacorpus/php-query-builder#8 instead, which gives us date addition and subtraction over all supported vendors. Now let's implement this feature as we discussed:
I don't see any other use case here, there's no use of a "percent" parameter which wouldn't make any sense for dates ? We could also add a "date range anonymizer" multi-column which anonmizes 2 columns at once (start and stop) which would keep the first bound always less than the second bound. |
This has been implemented, see #127 It is already on the main branch and will be available in the next release (1.1.x expected for the next week) |
No description provided.
The text was updated successfully, but these errors were encountered: