- πΊπ¦Ukraine proweb.ua
#2
The website encountered an unexpected error. Please try again later.
Error: Class "Drupal\fivestar\Feeds\Target\FiveStar" not found in Drupal\feeds\Entity\FeedType->getMappingTargets() (line 305 of modules/contrib/feeds/src/Entity/FeedType.php).in
/admin/structure/feeds/manage/product/mapping
/admin/structure/feeds/manage/product/tamper - π³π±Netherlands megachriz
Re #7
I see that in the patch from #2 the namespace is incorrect:
+++ b/src/Feeds/Target/FiveStar.php @@ -0,0 +1,34 @@ +namespace Drupal\feeds\Feeds\Target;
It should be:
namespace Drupal\fivestar\Feeds\Target;
The multiplication value (now 20) should not be hard-coded. Because I think that this value should depend on the number of stars that are configured on the field. If it are five stars (the default), then it should indeed be 20. But if for example the number of stars is configured to be 8, then I assume that a multiplication of 20 is too high.
- πΊπΈUnited States tr Cascadia
I think this would be easy to put into Fivestar if we had a test case that demonstrated it works. That way it would also be trivial for someone to come along and say, hey, what about 8 stars? Because the test case could be trivially patched to set the number of stars to something different than the default and prove that it still works properly. Or, here's a thought, have the test use a non-default number of stars so that there are no built-in assumptions.
The Feeds module has a bunch of tests for FeedsTarget plugins - these serve as great starting points and examples.
@ivnish, the issue is still assigned to you - are you still planning to work on this?
- Issue was unassigned.
- last update
over 1 year ago 4 pass - last update
over 1 year ago 4 pass - last update
over 1 year ago 4 pass