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

Remove superfluous _validate from Data node #5089

Merged
merged 6 commits into from
Sep 2, 2021

Conversation

ltalirz
Copy link
Member

@ltalirz ltalirz commented Aug 19, 2021

The Data nodeclass overwrote the _validate function but
(a) did no validation
(b) included commented code that referenced a private git repository
(c) returned None instead of True.

The outcommented code involved validation of the source attribute and
the referenced issue pointed out that the value of this attribute was
not officially standardized (potentially leading users to using it in
different ways).

Since there has not been validation of this field since 2015, it seems
safe to assume that it cannot be easily reintroduced at this point.

@codecov
Copy link

codecov bot commented Aug 19, 2021

Codecov Report

Merging #5089 (0cf8ee3) into develop (1dac2fe) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #5089      +/-   ##
===========================================
- Coverage    80.71%   80.71%   -0.00%     
===========================================
  Files          534      534              
  Lines        36967    36966       -1     
===========================================
- Hits         29835    29834       -1     
  Misses        7132     7132              
Flag Coverage Δ
django 75.54% <ø> (+0.01%) ⬆️
sqlalchemy 74.64% <ø> (-<0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
aiida/orm/nodes/data/data.py 61.25% <ø> (-0.29%) ⬇️
aiida/orm/nodes/node.py 96.31% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1dac2fe...0cf8ee3. Read the comment docs.

The Data nodeclass overwrote the `_validate` function but
 (a) did no validation
 (b) included commented code that referenced a private git repository
 (c) returned `None` instead of `True`.

The outcommented code involved validation of the `source` attribute and
the referenced issue pointed out that the value of this attribute was
not officially standardized (potentially leading users to using it in
different ways).

Since there has not been validation of this field since 2015, it seems
safe to assume that it cannot be easily reintroduced at this point.
Copy link
Member

@ramirezfranciscof ramirezfranciscof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @ltalirz ! Just one little comment but other than that this looks good to go for me, ping me if you need final approval once you rebase/update.

aiida/orm/nodes/node.py Outdated Show resolved Hide resolved
ltalirz and others added 2 commits September 1, 2021 10:16
Co-authored-by: Francisco Ramirez <ramirezfranciscof@users.noreply.github.com>
@ltalirz
Copy link
Member Author

ltalirz commented Sep 1, 2021

thanks, done!

@ramirezfranciscof
Copy link
Member

Mmm strange i thought that would fix the CI doc problem. Do you understand what is wrong with this? I'll try compiling the docs locally.

aiida/orm/nodes/node.py Outdated Show resolved Hide resolved
ltalirz and others added 2 commits September 2, 2021 12:30
Co-authored-by: Francisco Ramirez <ramirezfranciscof@users.noreply.github.com>
@ltalirz
Copy link
Member Author

ltalirz commented Sep 2, 2021

thanks a lot!

@ltalirz
Copy link
Member Author

ltalirz commented Sep 2, 2021

sure, please go ahead!

Copy link
Member

@ramirezfranciscof ramirezfranciscof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good gogogo =P

@ramirezfranciscof ramirezfranciscof merged commit 73c785f into aiidateam:develop Sep 2, 2021
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