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

#1365 #1369 prevent crash on image and location columns #1411

Conversation

wizofaus
Copy link

@wizofaus wizofaus commented Mar 2, 2024

unit test will only work with mocked data or if you explicitly create list on your site with correct columns

return this;
}

internal override object ToJson()
Copy link
Author

Choose a reason for hiding this comment

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

incomplete as I'm not sure when this is used

@@ -692,6 +693,10 @@ private static object GetJsonPropertyValue(JsonElement propertyValue, FieldType
{
return null;
}
else if (propertyValue.ValueKind == JsonValueKind.Object)
{
return propertyValue.ToObject<System.Dynamic.ExpandoObject>();
Copy link
Author

Choose a reason for hiding this comment

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

this is a "just in case" for other field types that happen to be treated as objects

@jansenbe jansenbe self-assigned this Mar 4, 2024
@jansenbe jansenbe added the area: model 📐 Related to the core SDK models label Mar 4, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.60%. Comparing base (63545f3) to head (30ad21d).
Report is 1841 commits behind head on dev.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1411      +/-   ##
==========================================
- Coverage   82.42%   81.60%   -0.83%     
==========================================
  Files         416      624     +208     
  Lines       28590    43720   +15130     
  Branches        0     4579    +4579     
==========================================
+ Hits        23565    35677   +12112     
- Misses       5025     6697    +1672     
- Partials        0     1346    +1346     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

jansenbe added a commit that referenced this pull request Mar 13, 2024
@jansenbe jansenbe merged commit c9fe94a into pnp:dev Mar 13, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: model 📐 Related to the core SDK models
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants