CMPUT301F18T24 / Mark-Me

This is an Android app for keeping track of medical issues.
Apache License 2.0
4 stars 4 forks source link

Elastic Search - Users #46

Open vppatel111 opened 5 years ago

vppatel111 commented 5 years ago

I've created mappings for users information in elastic search and I implemented a method that searches for a user by username. I also renamed userID to username so it works with the elastic search database and the name makes more sense.

vppatel111 commented 5 years ago

I implemented getting a user and adding a user to elastic search. I've discovered that extra information from the userModel such as the list of observers was getting added to the elastic search which interferes with our original userModel object when we get from the elastic search database. There were two possible solutions: Format the data using a custom dataclass before saving to the database or format each result when retrieving from the database. I went with the former for ease of implementation albeit a bit messy.

vppatel111 commented 5 years ago

I still need to implement a list of users as patients for a care provider. Possibly leave it until the next milestone?