WildAid / o-fish-web

Web application for the Officer's Fishery Information Sharing Hub (O-FISH). The web app allows agencies to gain insights from the aggregated information gathered during a routine vessel inspection (submitted via the web app).
Apache License 2.0
31 stars 41 forks source link

Map on View Boarding page #240

Closed o-fish-wildaid closed 3 years ago

o-fish-wildaid commented 3 years ago

A map should appear with the location on the View Boarding page - /#/boardings/view - as per the design at https://mongodb.invisionapp.com/share/VJXLVXNPGW4#/screens/420742269_Boarding_Record

mcastre commented 3 years ago

@o-fish-wildaid @Sheeri Hi! id like to work on this issue. Do you have a preference of which map service you would like to use? Google Maps, MapBox, etc.

Sheeri commented 3 years ago

Hi @mcastre - we do not have a particular preference; however, we do have some requirements:

That's how it would be retrieved from our database, and the format is [longitude, latitude]

mcastre commented 3 years ago

@Sheeri ok ill give it a go!

mcastre commented 3 years ago

@Sheeri is there a Slack channel or something to report an issue with building the o-fish app? im having trouble importing the sample data from o-fish-realm using the steps outlined at here.

when i run this command my terminal hangs after i enter my password.

mongorestore --drop --uri "mongodb+srv://mcastre@ofish.cgr73.mongodb.net/wildaid" /Users/martincastre/Desktop/martin-env/o-fish-realm/WildAidSampleBackup

Sheeri commented 3 years ago

Hi! At the bottom of every build page is a link to the troubleshooting page at https://wildaid.github.io/problems/, which points to the community forums for that type of help: https://developer.mongodb.com/community/forums/tag/o-fish/

It looks like you put the username in the URI but not your password - the uri should be:

"mongodb+srv://mcastre:PASSWORD@ofish.cgr73.mongodb.net/wildaid"

if that doesn't clear things up, definitely ask on the forum (but please don't post your password....)

Sheeri commented 3 years ago

@mcastre were you able to import the realm app? We do have office hours tomorrow if you want synchronous help - I'll be there!

Sheeri commented 3 years ago

Closing; this works and was an issue with permissions. https://github.com/WildAid/o-fish-web/blob/main/src/components/boardings/boarding-view/basic-info/basic-info.section.js