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

[NEAT-107] Cleanup validation module part2 #315

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

doctrino
Copy link
Collaborator

@doctrino doctrino commented Mar 16, 2024

Problem

Most the issues data classes have set order=True. The problem with this is that issues can only be sorted with other issues of the same type. (The default ordering methods you get from dataclasses by setting order=True is too strict for our use case)

Solution

Removed the order=True and implemented a __lt__ and __eq__ on the base class that will be used by all child classes to sort.

@doctrino doctrino force-pushed the cleanup-validation-module-part2 branch from a3b933f to 2c47562 Compare March 16, 2024 13:56
@doctrino doctrino marked this pull request as ready for review March 16, 2024 13:56
…dule-part2

# Conflicts:
#	cognite/neat/rules/issues/base.py
#	cognite/neat/rules/issues/dms.py
#	cognite/neat/rules/issues/fileread.py
#	cognite/neat/rules/issues/importing.py
#	cognite/neat/rules/issues/spreadsheet.py
#	cognite/neat/rules/issues/spreadsheet_file.py
#	tests/tests_unit/rules/test_issues/test_issues_metatests.py
@doctrino doctrino merged commit 1d82da8 into main Mar 18, 2024
6 checks passed
@doctrino doctrino deleted the cleanup-validation-module-part2 branch March 18, 2024 13:16
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 this pull request may close these issues.

2 participants