-
Notifications
You must be signed in to change notification settings - Fork 7
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
Refactor to class #30
Conversation
Coverage Report
|
As someone who's been tracking this progress all week, my suggestion for reviewing this is to look at the code state at the latest commit, not the changes. GitHub doesn't know how to show this many changes, it's messy. But the code is much cleaner. |
2729461
to
c51c6b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks good to me, reviewed in person.
Pull Request
Related to #4577
About
@property
decorator to make some fields read-only. it serves a similar benefit toconst
in node.__setitem__
method. is it better to be consistent?RemoteCKAN
is created outside of any dataclass to avoid any potential serialization issue when/if we decide to store an intermediateHarvestSource
instance in somewhere likes3
.Record
instantiation occurs primarily inharvest_to_id_hash
but only for records that need to be created or updated NOT deleted. for the sake of record-keeping ( no pun-intended ) I instantiatedRecord
for deleted records immediately before deleting them on ckan.PR TASKS