TC2.26 - IOT Applications exploiting suggestion MicroService

Test Case Title

TC2.26 - IOT Applications exploiting suggestion MicroService

Goal

I can:

Get suggestions in a circle area selecting language and user profile

Prerequisites

Using a PC or Mobile with a web browser.

Simple skill on use IotBlocks on Nodered.

The following functionalities are available only for specific Snap4city users with specific privileges.

Expected successful result

Obtaining suggestions and seeing how they work.

They can also work by using simple REST CALL.

Steps

 

 

  1. Drag and drop the node “Recommendation within circle” under the menu S4CSearch:

  2. Open the configuration tab and select a language, a profile and the circle area where looking for the suggestions:

  3. The suggestions are reported as a list and grouped by similarity:

  1. It is possible to split every single element on the list and select one with a switch node filtered on the group value:  

  1. The flow can be the follow:

  2. The response of this flow is a list of three suggestions belong to the group “Wine and Food”, selected by the suggester on the language, the profile and the circle area indicated in the “recommendations-within-circle”:

TC2.26 - IOT Applications exploiting suggestion MicroService | Snap4City

Error

×

Error message

  • Unable to send e-mail. Contact the site administrator if the problem persists.
  • Unable to send e-mail. Contact the site administrator if the problem persists.
  • Notice: Trying to get property of non-object in user_is_logged_in() (line 1576 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_is_logged_in() (line 1576 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in og_field_access() (line 578 of /var/www/html/drupal/sites/default/modules/og/og.module).
  • Notice: Trying to get property of non-object in user_access() (line 806 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_access() (line 818 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_access() (line 819 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_access() (line 825 of /var/www/html/drupal/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_access() (line 828 of /var/www/html/drupal/modules/user/user.module).
  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/drupal/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/drupal/includes/bootstrap.inc).
  • Error: __clone method called on non-object in og_user_access_entity() (line 2249 of /var/www/html/drupal/sites/default/modules/og/og.module).
The website encountered an unexpected error. Please try again later.