Aldaviva / floorplan

🗺️ Floorplan, seating chart, and employee directory for Blue Jeans.
166 stars 58 forks source link

Show contractors #32

Open Aldaviva opened 9 years ago

Aldaviva commented 9 years ago
RubenAmaroPT commented 7 years ago

How do you insert users (employees) on this script? I can't seem to fix this.

Aldaviva commented 7 years ago

@RubenAmaroPT You can go to /admin/ in a web browser, which will show a form where you can type an employee's name, title, and other information, then click Save.

RubenAmaroPT commented 7 years ago

@Aldaviva Thank you for replying, however I didn't type correctly what was my problem, the problem is that when I entered the admin page, It would just show me a blank screen with a add button on the left.

I guess I'm going to try creating the server on linux and see the results. If the error mantains I will reply back. Thank you.

Aldaviva commented 7 years ago

Ah ok. You should be able to click Add and several form fields appear on the right side of the screen, along with a Save button.

Are you seeing an error where the form doesn't appear when you click Add? If so, can you let me know what browser version you are using and any log messages you see in the console log?

RubenAmaroPT commented 7 years ago

Well I tried to open the server again (still in Windows) and go to admin page and it shows me this: http://prntscr.com/f8siok

This is what shows to me when I click add new person. Any idea how can I fix this?

EDIT: Using Chrome Version 58.0.3029.110 (64-bit)

Aldaviva commented 7 years ago

Thanks for the screenshot.

Looks like a bug in this project. Will open a separate issue to track it.

RubenAmaroPT commented 7 years ago

Thank you for having the time to fix this. Good luck on finding and fixing that issue!

RubenAmaroPT commented 7 years ago

Oh, by the way, I have my server already open in linux, is there any way of inserting users already? Because it isn't generating any database in my mongodb. Image: http://prntscr.com/f8xtim

Aldaviva commented 7 years ago

You can manually insert a person into the people collection in the floorplan Mongo database. Here is an example document.

{
  "fullname": "Ben Hutchison",
  "desk": 71,
  "office": "mv3",
  "email": "ben",
  "title": "Sr. Software Engineer",
  "tags": [
    "eng"
  ],
  "linkedInId": "in/aldaviva",
  "mobilePhone": "123-456-7890",
  "workPhone": "098-765-4321"
}
RubenAmaroPT commented 7 years ago

Maybe I'm dumb but I just did what you tell me and gives me no results when I refresh the database. Am I doing right? Have I misplaced something?

Image: http://prntscr.com/fan46z

Aldaviva commented 7 years ago

It looks like the document did get inserted. Can you click the to expand the row that says

(1) ObjectId("59229ba…

You should see all the field values of the object you passed to the insert command.

bdws commented 6 years ago

I'm experiencing the same issue. Per the advice in this thread, I manually entered an employee into the "people" collection in the "floorplan" database, but I am still unable to see the employee by going to the website containing the map of the user's location, or have the option to add an employee on the admin site.

Based on the code, should I have directories on my server for "people" and "endpoints"? Or should these be pointing to the mongodb database?

Here's what I see when looking at the site with the OC map: https://prnt.sc/gobzdv

Here's what I see when looking at the admin site then trying to select "add person": https://prnt.sc/goc66k

I appreciate any guidance.

Aldaviva commented 6 years ago

Thanks @bdws, you've found a bug with the default mountPoint setting getting turned into //. This is the same as #34. I'm working on a fix now.

Aldaviva commented 6 years ago

See #34 for the mountPoint fix.

bdws commented 6 years ago

@Aldaviva Thanks for the quick fix and all of the work you've done for this project. Everything looks good for me now.