- Issue created by @darkodev
- First commit to issue fork.
- Assigned to bharath-kondeti
- last update
6 months ago 720 pass - last update
6 months ago 720 pass - Status changed to Needs review
6 months ago 6:39am 5 June 2024 - Status changed to Needs work
6 months ago 7:02am 5 June 2024 - 🇳🇱Netherlands megachriz
'parent:fid' is actually a dynamic property. It is generated in
\Drupal\feeds\Feeds\Source\BasicFieldSource
. Besides 'parent:fid', you also have 'parent:uid', 'parent:created', 'parent:title' and many others.So simply declaring $parent_fid as a variable here is not a sustainable solution.
So I think that BaseItem needs to check in methods `get()` and `set()` if the property to set exists. And if not, write to `$data` property like DynamicItem does. I don't know however if there any drawbacks in that approach, but I think the risk for that is low.
- last update
6 months ago 720 pass - Status changed to Needs review
6 months ago 12:35pm 5 June 2024 - Status changed to Needs work
6 months ago 1:01pm 5 June 2024 - 🇳🇱Netherlands megachriz
Almost. BaseItem should check first if the requested field exists as property in the class. And if not, fallback to the
$data
array. - last update
6 months ago 719 pass, 3 fail - Status changed to Needs review
6 months ago 7:38am 10 June 2024 - 🇮🇳India bharath-kondeti Hyderabad
@MegaChriz Tried to fix the review. Please check and do let me know, if anymore changes are needed.
- Status changed to Needs work
6 months ago 8:17am 10 June 2024 - 🇳🇱Netherlands megachriz
- I think that
property_exists()
should be used in bothBaseItem::get()
andBaseItem::set()
. BaseItem::get()
should check if$this->data[$field]
exists before returning that.BaseItem::toArray()
should merge the object vars with$data
array and then remove the extra data array from it.- In SyndicationItem.php there is a blank line removed that should not have been removed.
- Note that the code is currently failing tests.
- I think that
- last update
6 months ago 719 pass, 3 fail - 🇮🇳India bharath-kondeti Hyderabad
Reverted the blank line code on SyndicationItem.php for failing tests. I will working on the remaining.
- 🇮🇳India ankitv18
Reviewed the MR!174 and suggested few changes
cc: @MegaChriz
- last update
5 months ago 721 pass, 2 fail - last update
5 months ago 719 pass, 3 fail - last update
5 months ago 719 pass, 3 fail - last update
5 months ago 719 pass, 3 fail - last update
5 months ago 719 pass, 3 fail - last update
5 months ago 719 pass, 3 fail