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

feat(dump): identify complete entities #2

Closed
adrienaury opened this issue Mar 25, 2024 · 0 comments · Fixed by #4
Closed

feat(dump): identify complete entities #2

adrienaury opened this issue Mar 25, 2024 · 0 comments · Fixed by #4
Assignees

Comments

@adrienaury
Copy link
Member

adrienaury commented Mar 25, 2024

Actual

Each discovered entity generate a log with a status :

  • consistent entity contains at most one value for each IDs
  • inconsistent entity contains at least an ID with multiple values

Expected

Add a new status complete for entities with one value for every IDs

Solution

To be able to check if an entity has all IDs, there need to be a way to pass the expected list of IDs a complete entity should have. Only selected IDs will be dumped.

Example :

$ silo dump storage --id CLIENT_ID --id CLIENT_EMAIL --id CONTRACT_NUMBER
4:03PM INF entity identified CLIENT_ID=1 CLIENT_EMAIL=1 CONTRACT_NUMBER=1 status=complete uuid=6da94051-db8b-4e0f-9c03-a51d5d751e11
4:03PM INF entity identified CLIENT_ID=1 CLIENT_EMAIL=1 status=consistent uuid=71caa4f2-61b8-4494-9b98-33467525adc5
4:03PM WRN entity identified CLIENT_ID=1 CLIENT_EMAIL=3 status=inconsistent uuid=17e58e22-ec19-40e9-b22d-83748e95ee85
@adrienaury adrienaury self-assigned this Mar 27, 2024
@adrienaury adrienaury linked a pull request Mar 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant