Change `AbstractAnonymizer::__construct()` signature in order to finalize `Context` implementation properly
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Review PR #235 and the existing AbstractAnonymizer constructor and Context implementation first. Follow the related @todo, #[\Deprecated], and trigger_deprecation() markers; done means the constructor accepts Options and Context and the backward-compatibility layer is removed for the 3.0 path.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
In many occasions, we need to share context for a single anonyzation run between anonymizers:
- Global "salt" option, for hashing (actual).
- Global "base_path" option introduced in #228 (not merged yet) for file loading.
- Future sample table list (in order to avoid creating and populating the same table many times when the same anonymizer with a fixed list is used more than once).
- And probably more in the future.
All this data must go directly to anonymizers, but using the Options instance is wrong:
- Even if we propagate some data into it, it is not shared (so goodbye sample table sharing).
- Adding more and more options into it makes anonymizers unable to use those options names for themselves.
The less impactful solution I found is the following:
- Create a new
Contextclass, which will carry all this information. - Change constructor of
AbstractAnonymizerin order to accept this new parameter.
The PR #235 is a working proof of concept that introduce a new Context class in a backward compatibility fashion. If this PR is accepted, in 3.0, we will need to do the following change:
- Change
AbstractAnonymizer::__construct()signature, in order to accept bothOptions $optionsandContext $contextparameters. - Remove all backward compatibility layer accordinly.
- Follow many
@todo,#[\Deprecated]and associated\trigger_deprecation()calls we left in there to indicate us the right path for removal.
- Lingua principale
- PHP
- Stelle
- 235
- Fork
- 17
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di makinacorpus/DbToolsBundle
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
makinacorpus/DbToolsBundle#259 ·
-
Command-line option --config is not applied when creating database connections in standalone modeAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
makinacorpus/DbToolsBundle#260 ·
-
Laravel 12.0 & 13.0 supportForse di nuovo libera @Lonnytunes l’ha presa 169 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement good first issue
makinacorpus/DbToolsBundle#254 · 6 commenti · 1 assegnatario ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
makinacorpus/DbToolsBundle#252 · 2 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
makinacorpus/DbToolsBundle#237 ·
Tutte le issue di makinacorpus/DbToolsBundle
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
taskforcesh/bullmq#5238 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects itForse già presa @bfs2021 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Automattic/jetpack#55517 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
-
area/import type/enhancement when/later
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno