Welcome to daily updates from @sagarkothari88 - a Hive Witness & mobile-app-developer. I daily invest my time with my skillset in #Hive & I daily hive-power-up.
Project - Distriator
Trusted Business Guides Filter
@starkerz suggested that, there should be a way with which, we should be able to view the businesses managed by guides.
Based on this request, we implemented this filter on business-filter screen.
This filter will be available to super-admins & admins
With this, admins can easily filter out businesses managed by a specific guide
Following screenshot gives you the idea how to filter businesses by guide @buttcoins
These changes are tested well locally.
We also deployed it first to the beta environment.
Upon finding everything good & bugs free, we shipped it to production.
Super-Admins & Admins can try out this feature now.
A business object may contain several attributes e.g. latitude, longitude, address line one, line two, city, state, country, display name, hiveusername, and so on.
With Joi in place, we can validate the data sent by the client.
Above screenshot highlights the JOI schema for validating add-a-business
Validating JSON at API level
So far, we have added code for json-validation using JOI
We are yet to map it to mongoose schema & add it to database
Once above task is complete, Add a business API will be ready.
What's next?
Complete Add-A-Business API
Migrate existing excel-sheet-based-businesses to database using add-a-business-api
Once migration is done, we'll integrate update-a-business-API
Add support for setting percentage for each-trusted-business-guide on a business
My contributions on projects on Hive Blockchain
Distriator App (on-going & in-developement) (also known as Hive Freedom Dollar)