-
Notifications
You must be signed in to change notification settings - Fork 142
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
rewrite diff plugin #370
Comments
Hi, unless a completely different approach is considered for the object diff, I would suggest splitting the controller_object_diff.py file into multiple files, one for each object type, containing a class that would implement the methods of an abstract class(acting as an interface). The definition of which keys to keep from the 2 lists, updating and removing keys, expanding values, etc - any logic specific to an object type would go in it's own class. I also think it would help a lot to have a very easy test setup, where one would just clone the repo, add api_list and compare_list and run tests on their local machines. The more test cases, the better, as it would give more confidence for people collaborating to it. |
You seem to have the idea very clear... PRs are welcome! ^_^ |
So a few notes to just mention. One the API has a limited number of items it can return in one call and needs to be considered. Another is it needs to be able to compare items not only at the object name level but ownership (such as org and user) to ensure that you are comparing the same two objects. |
This is partially done with the new export module, we need to push for more endpoints to be covered and then it will be complete. |
creating this because that is the solution to all the other diff issues that are open and I am closing those referencing this issue to track the rewrite of the diff plugin.
The text was updated successfully, but these errors were encountered: