cablelabs / lpwanserver

LPWAN Provisioning & Management Server
https://lpwanserver.com
Apache License 2.0
37 stars 11 forks source link

Remove application-company association #231

Closed rhythnic closed 5 years ago

rhythnic commented 5 years ago

Creating apps as the admin, with companyId=1 is causing errors, because there's no data for a company 1. Errors occur in e2e tests and navbar is hidden if admin's companyId is changed to 2. Going to attempt removing application-company association.

rhythnic commented 5 years ago

Attempted to get rid of companies entirely, but our companies table is used to create company on LoRa, which is necessary. From slack:

On LoRa Server, applications require service-profiles, which require an organization. In lpwanserver, a local organization record is used to create the LoRa Server org. You probably know all this. Wondering how best to provide LoRa with an organization if we've gotten rid of organization, without hacking it too badly or taking too much development time.

rhythnic commented 5 years ago

Instead, I added the admin user to the cablelabs group and made the cablelabs group a global admin. This fixed the problem of not being able to create an application in the UI.