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

[WIP] Keep a generic log of anonymized data #6

Open
5 tasks
toommz opened this issue Dec 13, 2021 · 0 comments
Open
5 tasks

[WIP] Keep a generic log of anonymized data #6

toommz opened this issue Dec 13, 2021 · 0 comments
Labels
enhancement New feature or request proposal Issues and requests not already approved by the maintainers
Milestone

Comments

@toommz
Copy link
Contributor

toommz commented Dec 13, 2021

TODO

  • Provide basic migrations see Oban
  • Make logging optional
  • Provide (hooks | behaviour) to decorate the log changeset with specific needs (anonymizing done in an async queue? add a status, requested_at and finished_at fields to the table structure and fill them with your own data)
    • may we return the log id in order to find it later from the async queue processing?
    • the {source_id, source_type} identifier tuple may serve as well to find it later

Table structure

id source_id source_type serialized_changeset inserted_at
1 2345 User '{email,<<"redacted">>}' 2021-12-12-00:00:00

serialized_changeset can be created with:

:io_lib.format("~p", [email: "redacted"]) |> :lists.flatten()
@toommz toommz self-assigned this Dec 13, 2021
@toommz toommz added enhancement New feature or request proposal Issues and requests not already approved by the maintainers labels Dec 13, 2021
@toommz toommz added this to the MVP milestone Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request proposal Issues and requests not already approved by the maintainers
Projects
None yet
Development

No branches or pull requests

1 participant