samcrane8 / FlyRight

A drone flight registration system to help local law enforcement.
MIT License
17 stars 6 forks source link

Setup Drone + Department on Dev Build #22

Closed samcrane8 closed 5 years ago

samcrane8 commented 5 years ago

It's great that an admin user is automatically generated, but several other things should be autogenerated as well:

Tonewall commented 5 years ago

Now that I thought of it, for autogenerating a department, should I just create a giant department that covers pretty much the whole world? Since we don't know where people will be developing from, an autogenerated department could be generated at a far place from the map and they'll have to scroll to that location every time.

samcrane8 commented 5 years ago

That's actually the reason why I didn't set it up in the first place: because like you said, we don't know where people will be when they use this.

I'd say do a department at roughly the same size as GTPD, or even honestly just copy GTPD. If we start getting users like that then we can adapt and try to fix it, but that's a problem that we can solve when it happens. Plus I don't want to give people the wrong idea of how large departments generally are.

Tonewall commented 5 years ago

Alright yeah, that makes sense.

samcrane8 commented 5 years ago

Cool. Also as a reminder, the file you will want to edit is called business-logic-server/create_superuser.py

Also, maybe change the name of the file to something more accurate, like setup_user_and_department.py? The only other file you will have to change is business-logic-server/entrypoint.sh since that's the file that calls this script.

Tonewall commented 5 years ago

Noted, I think we'll start working on the other projects I mentioned tomorrow so I'll try to see how far I can get before it gets interrupted

samcrane8 commented 5 years ago

👍