I think a field "owner" should be added to the Review type to show the name of the person who made the review.
The functionality of sharing friends is done at a 90%, that 10% being :
Some minor changes regarding interoperability because the reviews are sent to the webapp but not correctly shown to the use but all attributes are now correctly sent to the webapp for showing
I had to harcode the start of a url for adding the reviews in the review builder. I tried with different providers and they all work (.addUrl(RDFS.seeAlso, "https://inrupt.com/.well-known/sdk-local-node/" + review.markerId))
FIXES
General
The locations, Reviews and the Friends work correctly. Tested with more than one friend, locations from more than one friend retireved alltogether, your own locations also show. This also applies to reviews being written from different accounts and showing correctly in the corresponding location
The id's on the locations and mapmarkers now are correclty parsed. Instead of the whole pod url now it is trimmed so that it is only the actual id generated
The locations added to the database now are added with the correct id, wich is the one provided by the pod
The list containing all your friends no longer stops a the first one. It now records all the friends you add without limit
The review is no longer being called twice from the webapp
There are no more refresh token errors
MongoService
Fixed some erros regarding the use of the mongoose queries. JSON.stringify() gave some problems and fixed some mapping errors
The retrireval of the friends now returns the correct list
The retireval of the locations of your friends no longer freezes due to the model methods
The locations are correctly printed in the screen
Adding a new review adds it to the database with the correct information
The reviews are shown to all users who have access to that location, even if not friends with the owner of the review
TO-FIX
The LoMapOnly attribute inside the reviewToThing freezes the application even if the attribute is spelled correclty
The url for the friends are hardcoded with the https:// but I think we have to make it depend on the provider instead: I tested it with a friend between solid comunity and Inrupt Pod and it worked correclty
Summary
Quick note
I think a field "owner" should be added to the Review type to show the name of the person who made the review.
The functionality of sharing friends is done at a 90%, that 10% being :
FIXES
General
The locations, Reviews and the Friends work correctly. Tested with more than one friend, locations from more than one friend retireved alltogether, your own locations also show. This also applies to reviews being written from different accounts and showing correctly in the corresponding location
MongoService
Fixed some erros regarding the use of the mongoose queries. JSON.stringify() gave some problems and fixed some mapping errors
TO-FIX