Comments (4)
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;
from dbtoolsbundle.
Won't be easy to do without makinacorpus/php-query-builder#5
from dbtoolsbundle.
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:
- A date range anonymizer, range is given by user: we simply compute a random number of day or hours or minutes (depending some
granularity
option) in that range, and set it. - A date delta anonymizer, more or less X day, hours, minutes (
granularity
again) and simply date add the number (which can be negative, by the way).
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.
from dbtoolsbundle.
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)
from dbtoolsbundle.
Related Issues (20)
- Add SQL Server 2022 to test matrix HOT 1
- Implement a nice reusable timer class
- Support MySQL5.7 HOT 3
- Anonymize a single entity HOT 3
- Filtering HOT 4
- doctrine/dbal:^4.0 and doctrine/orm:^3.0 support HOT 1
- slowly remove doctrine hard dependency HOT 3
- Standalone version HOT 1
- Create a PHAR version of the standalone version HOT 1
- Create a Bridge namespace, move Symfony and standalone integration in there HOT 1
- Symfony configuration to standalone configuration file generation
- Allow environment variables in standalone app config file
- Merge "bundle configuration" and "configuration reference" documentation sections
- Issue on anonimization for entities with inheritance - Property App\Entity\SubComponent::$id does not exist HOT 9
- Better discoverability for packs HOT 1
- Provide a symfony/flex recipe
- Anonymization filter on table
- [Question] Multi Tenancy/DB handling HOT 2
- Anonymization - Sample table creation fails if sample is too big with sqlsrv
- Laravel Support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbtoolsbundle.