[Fiware-developer-experience] Restaurant Context design for Orion

Alvaro del Castillo acs at bitergia.com
Tue Jul 7 12:19:30 CEST 2015


Hi!

El mar, 07-07-2015 a las 10:43 +0100, Pablo Fernández Moniz escribió:
> Hi!
> 
> 
> Our point of view thinking about the front end.
> 
> 
> Regarding data access from the front end, and store it in Orion, we
> checked in this reply from Fermín in stackoverflow that retrieving
> entities by filtering attributes is, currently, not possible in Orion.
> Do you think that it should be a problem for us?

Right now in ChanChanApp we are retrieving entities in this way:

https://github.com/Bitergia/fiware-chanchan/blob/master/server/routes/orion.js#L164

We are using the type and a regexp in the id. Maybe it is enough for the
devguide app. Not sure.

> 
> 
> A possible solutions should be:
> 
>  - to make IDs of composite type in order to give information about
> the associated restaurant and customer.  This way we can filter again
> using the ID field. Example of Review id: { "id":
> "Review-890_jmcantera_Res-5678", ...}.
> 

Maybe we can combine review type (in this field include the restaurant)
and the id (which include the user as you suggested).

>  - to bring all the entites to the front end and filter them via
> javascript, which is a brute force approach and may not be very
> elegant. 
> 

Yes, if possible we should try to avoid this.

> We also wanted to ask if it is already decided the data/queries that
> we want to retrieve from the app front end, in order to have more
> clear how we will work and focus on the front end requirements.

I think the best doc for this now is the devguide app requirements.

https://docs.google.com/document/d/1FpeuBzPkAkIs90rP16jeOdi5-JuSbcdsiOatE87l3Dw/edit

We are following it. But it is high level so we should discuss specific
details. Pablo, maybe you can focus in a first scenario (showing
restaurants in a map view?) and then enrich it.

Cheers

> 
> 
> 
> KR,
> 
> 
> ULPGC team
> 
> 
> 
> 
> 
> 
> 
> 2015-07-06 14:59 GMT+01:00 Alvaro del Castillo <acs at bitergia.com>:
>         Hi!
>         
>         El lun, 06-07-2015 a las 13:11 +0000, JOSE MANUEL CANTERA
>         FONSECA
>         escribió:
>         > Responding in an empty emails as I didn’t realise I was not
>         subscribed
>         > to the list
>         >
>         >
>         > I think customer reviews are part of the context information
>         to be
>         > stored in Orion. But reviews are entities associated to both
>         customers
>         > and restaurants. So we will have something like what is
>         proposed below
>         
>         Good approach, context information, but not from a restaurant
>         entity,
>         but from a specific entity: reviews. Not sure if we are
>         forcing orion
>         usage a bit, but it is a developer guide app for it, so it
>         could be ok.
>         
>         >
>         >
>         > By the way Alvaro, please provide a first draft of the data
>         models to
>         > be used. I would like to review them before we start coding
>         
>         We are playing with the code to load the data in Orion, in an
>         flexible
>         approach so the model could be changed later. Give us one-two
>         days
>         before having a first data model.
>         
>         Cheers!
>         
>         
>         >
>         >
>         > ----
>         >
>         >
>         > Restaurant
>         >
>         >
>         > {
>         >    id: “Res-5678”,
>         >    name: “Casa Pepa”,
>         >    average_score: {
>         >      “place”: 7,
>         >      “service”: 8,
>         >      “food”: 5
>         >    },
>         >   “location”: xxxx
>         > }
>         >
>         >
>         > Review
>         >
>         > {
>         >    “id”: “Review-890”,
>         >    “author”: “jmcantera”,
>         >   “subject”: “Res-5678”,
>         >   “creationDate”, “xxxx”,
>         >   “score”: {
>         >   }
>         > }
>         >
>         >
>         > Customer
>         >
>         >
>         > {
>         >   “id”: “jmcantera”,
>         >    “name”: “Jose Manuel Cantera”
>         > }
>         >
>         >
>         >
>         ______________________________________________________________________
>         >
>         > Este mensaje y sus adjuntos se dirigen exclusivamente a su
>         > destinatario, puede contener información privilegiada o
>         confidencial y
>         > es para uso exclusivo de la persona o entidad de destino. Si
>         no es
>         > usted. el destinatario indicado, queda notificado de que la
>         lectura,
>         > utilización, divulgación y/o copia sin autorización puede
>         estar
>         > prohibida en virtud de la legislación vigente. Si ha
>         recibido este
>         > mensaje por error, le rogamos que nos lo comunique
>         inmediatamente por
>         > esta misma vía y proceda a su destrucción.
>         >
>         > The information contained in this transmission is privileged
>         and
>         > confidential information intended only for the use of the
>         individual
>         > or entity named above. If the reader of this message is not
>         the
>         > intended recipient, you are hereby notified that any
>         dissemination,
>         > distribution or copying of this communication is strictly
>         prohibited.
>         > If you have received this transmission in error, do not read
>         it.
>         > Please immediately reply to the sender that you have
>         received this
>         > communication in error and then delete it.
>         >
>         > Esta mensagem e seus anexos se dirigem exclusivamente ao seu
>         > destinatário, pode conter informação privilegiada ou
>         confidencial e é
>         > para uso exclusivo da pessoa ou entidade de destino. Se não
>         é vossa
>         > senhoria o destinatário indicado, fica notificado de que a
>         leitura,
>         > utilização, divulgação e/ou cópia sem autorização pode estar
>         proibida
>         > em virtude da legislação vigente. Se recebeu esta mensagem
>         por erro,
>         > rogamos-lhe que nos o comunique imediatamente por esta mesma
>         via e
>         > proceda a sua destruição
>         > _______________________________________________
>         > Fiware-developer-experience mailing list
>         > Fiware-developer-experience at lists.fiware.org
>         >
>         https://lists.fiware.org/listinfo/fiware-developer-experience
>         
>         
>         --
>         Alvaro del Castillo San Félix
>         acs at bitergia.com - Chief Technical Officer (CTO)
>         http://www.bitergia.com
>         "Software metrics for your peace of mind"
>         
>         
>         _______________________________________________
>         Fiware-developer-experience mailing list
>         Fiware-developer-experience at lists.fiware.org
>         https://lists.fiware.org/listinfo/fiware-developer-experience
>         
> 
> 
> 
> 
> -- 
> 
> Pablo Fernández Moniz
> 
> GIT Analyst
> 
> 
> Web    Linkedin   Twitter
> 


-- 
Alvaro del Castillo San Félix
acs at bitergia.com - Chief Technical Officer (CTO)
http://www.bitergia.com
"Software metrics for your peace of mind"





More information about the Fiware-developer-experience mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy