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

fix: show autoform non-rendered property errors #2833

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

krissvaa
Copy link
Contributor

Show autoform non-rendered property errors
Make @id and @Version annotations resolve as nullable fields

Fixes: #2217
Fixes: #2809

Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.77%. Comparing base (1d25d64) to head (74b4a76).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2833      +/-   ##
==========================================
+ Coverage   92.72%   92.77%   +0.04%     
==========================================
  Files          83       83              
  Lines        2845     2850       +5     
  Branches      728      730       +2     
==========================================
+ Hits         2638     2644       +6     
  Misses        156      156              
+ Partials       51       50       -1     
Flag Coverage Δ
unittests 92.77% <100.00%> (+0.04%) ⬆️

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

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

}

public static class NullableFieldModel {
@Id
Copy link
Contributor

Choose a reason for hiding this comment

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

Those fields look nullable by default, unless I'm missing something. You should probably test them under a @NonNullApi annotation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I should, but I should also check that they are indeed nullable without any other annotation.
I will add another test.

krissvaa added a commit that referenced this pull request Oct 25, 2024
krissvaa added a commit that referenced this pull request Oct 25, 2024
krissvaa added a commit that referenced this pull request Oct 25, 2024
krissvaa added a commit that referenced this pull request Oct 25, 2024
@krissvaa krissvaa force-pushed the fix/crud-ignored-property-errors branch from 39d5488 to 35f6656 Compare October 25, 2024 12:59
@krissvaa krissvaa force-pushed the fix/crud-ignored-property-errors branch from 35f6656 to 74b4a76 Compare October 31, 2024 08:42
Copy link

sonarcloud bot commented Oct 31, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
11.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants