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

Implementer Friendliness for Avni [DMP 2024] #754

Open
shraddha761 opened this issue Jul 12, 2024 · 1 comment
Open

Implementer Friendliness for Avni [DMP 2024] #754

shraddha761 opened this issue Jul 12, 2024 · 1 comment

Comments

@shraddha761
Copy link
Contributor

shraddha761 commented Jul 12, 2024

Describe the bug
Implemented a feature that compares JSON files within ZIP archives, focusing on identifying differences such as modifications, additions, and removals. The feature processes JSON files, even those within nested directories, and outputs a structured comparison report.

Steps to Reproduce
Implement the MetadataDiffService class to handle the extraction and comparison of JSON files from ZIP archives.
Set up the MetadataDiffController to expose an endpoint /compare-metadata for comparing two uploaded ZIP files.
Upload two ZIP files containing JSON metadata via the /compare-metadata endpoint.
Trigger the comparison process and observe the JSON difference output.

Expected Behavior
The service should accurately compare the JSON files within the ZIP archives, outputting differences in a structured format that includes:

added: New fields or objects.
modified: Existing fields or objects that have changed.
removed: Fields or objects that were deleted.
The filename should only appear at the top level.

#avniproject/avni-product#1536.

@vinayvenu
Copy link
Member

@shraddha761 this is good as a stub, but please provide more detail so it is clear what the intention of this work is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New Issues
Development

No branches or pull requests

2 participants