Skip to content

Fix getproperty calls on fields for File#1081

Merged
quinnj merged 3 commits intoJuliaData:mainfrom
albheim:main
Apr 23, 2023
Merged

Fix getproperty calls on fields for File#1081
quinnj merged 3 commits intoJuliaData:mainfrom
albheim:main

Conversation

@albheim
Copy link
Copy Markdown
Contributor

@albheim albheim commented Apr 20, 2023

Solves #1080 and adds test for the original instance of the problem.

Would it be worth having a check on all field names? Feels like it is very easy to accidentally use the dot syntax internally when accessing the fields, and only when someone use data where the columns share the names something would be incorrect. Maybe more than only this constructor should be tested with columns using the field names of File?

Copy link
Copy Markdown
Member

@quinnj quinnj left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 23, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (cfb4ffb) 90.22% compared to head (0f81c9e) 90.22%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1081   +/-   ##
=======================================
  Coverage   90.22%   90.22%           
=======================================
  Files           9        9           
  Lines        2271     2271           
=======================================
  Hits         2049     2049           
  Misses        222      222           
Impacted Files Coverage Δ
src/file.jl 94.42% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@quinnj quinnj merged commit ac11e05 into JuliaData:main Apr 23, 2023
quinnj pushed a commit that referenced this pull request Jan 12, 2026
* add test that fails

* use getters for File field access

* fix two missed spots using getproperty
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