impronunciable / hackdash

Ideas for a hackathon
http://hackdash.org
MIT License
70 stars 61 forks source link

Where to get User _ids for Team? #121

Closed almereyda closed 9 years ago

almereyda commented 9 years ago

The readme talks about IDs, but I don't know where to get them from. Any hints?

pjnovas commented 9 years ago

@almereyda those are the ids from users collection on your mongo database. You can get them from the URL by entering a profile like: [your-domain]/users/[_id] or by querying your database.

almereyda commented 9 years ago

This is tough. My Mongo is running in a linked container on a PaaS (Dokku).

For showing a profile as you proposed, I would know the _id beforehand, so this doesn't work, too. Are there no simpler ways?

On 27 April 2015 at 15:02, Pablo Novas notifications@github.com wrote:

@almereyda https://github.com/almereyda those are the ids from users collection on your mongo database. You can get them from the URL by entering a profile like: [your-domain]/users/[_id] or by querying your database.

— Reply to this email directly or view it on GitHub https://github.com/danzajdband/hackdash/issues/121#issuecomment-96666240 .

pjnovas commented 9 years ago

That section is meant to set profile's (which are already inside the database) as the team for the site. You can add those ids beforehand and if I'm not wrong, it wont break, if is not found wont do anything.

What you can do is hide Team section from html, I didn't think about not showing Team section, so it could be better to not show Team section when the ids array is empty, I'm gonna add it as a feature.

Thanks.

almereyda commented 9 years ago

Well, I'd rather have a way to get the _id, like in a user's profile when I am site admin ;)

On 27 April 2015 at 16:16, Pablo Novas notifications@github.com wrote:

That section is meant to set profile's (which are already inside the database) as the team for the site. You can add those ids beforehand and if I'm not wrong, it wont break, if is not found wont do anything.

What you can do is hide Team section from html, I didn't think about not showing Team section, so it could be better to not show Team section when the ids array is empty, I'm gonna add it as a feature.

Thanks.

— Reply to this email directly or view it on GitHub https://github.com/danzajdband/hackdash/issues/121#issuecomment-96697929 .