Skip to content

fix: nullabe arrays of decoded ids were retrieved as [null]#211

Merged
Mohammad-Alavi merged 2 commits intoapiato:8.xfrom
openforests-git:fix/RC/XL-9314-nullable-arrays-bug
Sep 29, 2024
Merged

fix: nullabe arrays of decoded ids were retrieved as [null]#211
Mohammad-Alavi merged 2 commits intoapiato:8.xfrom
openforests-git:fix/RC/XL-9314-nullable-arrays-bug

Conversation

@rscarrasco
Copy link
Copy Markdown
Contributor

Description

There is an Apiato bug that prevented arrays of decoded ids to be nullable, due to the HashIdTrait processField() method working over null data. This PR fixes that.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 3.42%. Comparing base (354b2df) to head (3b7cce6).
Report is 3 commits behind head on 8.x.

Additional details and impacted files
@@            Coverage Diff             @@
##               8.x    #211      +/-   ##
==========================================
- Coverage     7.78%   3.42%   -4.36%     
- Complexity     658     659       +1     
==========================================
  Files           99      99              
  Lines         2711    2713       +2     
==========================================
- Hits           211      93     -118     
- Misses        2500    2620     +120     

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

@Mohammad-Alavi
Copy link
Copy Markdown
Member

Perfect!
Thanks both of you @rscarrasco @yalsicor 😎

@Mohammad-Alavi Mohammad-Alavi merged commit d6658de into apiato:8.x Sep 29, 2024
@Mohammad-Alavi Mohammad-Alavi deleted the fix/RC/XL-9314-nullable-arrays-bug branch September 29, 2024 11:54
Mohammad-Alavi added a commit that referenced this pull request Oct 1, 2024
* fix: nullabe arrays of decoded ids were retrieved as [null]

* test: add covers attribute

---------

Co-authored-by: Mohammad Alavi <Mohammad.alavi1990@gmail.com>
@yalsicor yalsicor restored the fix/RC/XL-9314-nullable-arrays-bug branch October 1, 2024 17:27
@yalsicor yalsicor deleted the fix/RC/XL-9314-nullable-arrays-bug branch October 1, 2024 17:27
yalsicor pushed a commit to openforests-git/apiato-core that referenced this pull request Oct 1, 2024
* fix: nullabe arrays of decoded ids were retrieved as [null]

* test: add covers attribute

---------

Co-authored-by: Mohammad Alavi <Mohammad.alavi1990@gmail.com>
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.

3 participants