You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running the OutputBuilderDiff class to compare two sets of endpoints, the added and removed lists contain duplicate entries. This issue likely occurs because the Endpoint class does not implement the == and hash methods, leading to improper comparison and hashing of endpoint objects.
To Reproduce
Steps to reproduce the behavior:
Run the OutputBuilderDiff class with two sets of endpoint data.
Observe the added and removed lists in the output.
Notice that many endpoints are incorrectly listed as both added and removed, despite having the same URL, method, and parameters.
Expected behavior
The added list should contain only the endpoints that are present in the new set but not in the old set. The removed list should contain only the endpoints that are present in the old set but not in the new set. Endpoints that are unchanged should not appear in either list.
Screenshots
Versions
OS: macOS
Version: v0.16.0
Additional context
The bug is likely due to the Endpoint class not implementing the == and hash methods. This may lead to endpoints with the same properties being treated as different objects. Implementing the == method to compare the URL, method, and parameters of the endpoints, and the hash method to generate a hash based on these properties, should ensure proper functionality in hash-based data structures.
The text was updated successfully, but these errors were encountered:
Describe the bug
When running the
OutputBuilderDiff
class to compare two sets of endpoints, theadded
andremoved
lists contain duplicate entries. This issue likely occurs because theEndpoint
class does not implement the==
andhash
methods, leading to improper comparison and hashing of endpoint objects.To Reproduce
Steps to reproduce the behavior:
OutputBuilderDiff
class with two sets of endpoint data.added
andremoved
lists in the output.Expected behavior
The
added
list should contain only the endpoints that are present in the new set but not in the old set. Theremoved
list should contain only the endpoints that are present in the old set but not in the new set. Endpoints that are unchanged should not appear in either list.Screenshots
Versions
Additional context
The bug is likely due to the
Endpoint
class not implementing the==
andhash
methods. This may lead to endpoints with the same properties being treated as different objects. Implementing the==
method to compare the URL, method, and parameters of the endpoints, and thehash
method to generate a hash based on these properties, should ensure proper functionality in hash-based data structures.The text was updated successfully, but these errors were encountered: