Manage: Creating a new organization
Pre-requisites
- Preferably have the logo of the new company handy
Create a new organization in Manage
Note: db_object_uuid in main.go is the same as the org uuid in the Clickup ticket.
- Copy the organization-block template
"Demo Company"from Attracs/attracs-manage/blob/master/main.go and change it's information to fit your new organization.- Change the UUID! When generating or copying from a ticket the new UUID for the company, search through the main.go file to make sure there are no duplicates!!
- Example Demo Company template
attracs.Organization{ DB_OBJECT_UUID: attracs.NewDatabaseObjectUUID("b6fb31e8-35ce-4645-bb28-d8a43d8d1b4f"), Name: "Demo Company", Website: "https://attracs.com", EmailDomains: attracs.StringList{"@attracs.com"}, Picture: "https://storage.googleapis.com/attracs/media/images/logos/attracs_200x200.png", },
- Open the Manage organization file and continue to the next step:
- The location on the file of where you should add this organization block is described in the next step, depending if you're adding a Nightly-org or if your adding a Stable-org or promoting a Nightly-org to Stable.
Nightly-specific steps
- Add your organization block under this section, to the end of the list:
// orgs only in localhost dev and nightly: promote to above list when needed in stable if Framework.HostInfo.IsLocalhost() || Framework.Params.Nightly { orgs = append(orgs,- Make sure you are adding the new organization under organizations and not under applications! Application blocks start with
manage.Application{, organization blocks start withattracs.Organization{.
- Make sure you are adding the new organization under organizations and not under applications! Application blocks start with
- Create a PR and get it approved.
- Nightly only: wait for the Github CI to complete. Restart and run the
populate-orgscommand for the manage-nightly applications in Managevisor one by one. You can click the input line in the Managevisor shell to start writing- After restarting, when you see this message in the shell, the application is working normally:
[mhttp]: Listening to 0.0.0.0:5006 for HTTP as manage-nightly.attracs.com (reverse proxy)
- After restarting, when you see this message in the shell, the application is working normally:
Stable-specific steps
TODO: Unsure how much this is different from nightly steps
Create a new organization continued
- Upload logo to Google Cloud storage as transparent png and set permissions to public
- Location is at "no org" âžť attracs services âžť cloud storage âžť attracs/media/images/logos
- Upload logo file
- edit permissions add public , allusers, reader
- then copy URL and add it to manage organisation
- Using Manage:
- Admin page:
- Add yourself as system admin to the organization
- Enable required applications for your organization:
- https://manage-nightly.attracs.com/admin#organizations âžť select organisation you want âžť applications and click slider to enable.
- CITY-SPECIFIC configuration: Non-admin organization page:
- Set organization member properties:
tmsOperator explained:
TMS Operator on palvelukeskuksille. Ulkoisille käyttäjille kuten autoilijoille ei sitä laiteta päälle. Kun minulla ei ole sitä niin en pääse mihinkään työkaluihin vielä sisään.
- Set organization member properties:
tmsOperator explained:
- Admin page:
-
-
-
- name:
tmsOperator, 2. Displayname:TMS Operator, 3. Description:-, 4. Visibility:Admin, 5. User editable:False, 6. type:Boolean, 7. Has Default value:True, 8. Default value:False
- name:
-
-
-
-
- Add yourself to organisation from https://manage-nightly.attracs.com/admin#organizations âžť org you created âžť ADD MEMBERS âžť your account email. 2. Add person who will be admin on the org
-
-
- Create new teams to access TMS -applications. (If the new admin person doesn't do this)
Note: Apparently some applications require that an org-specific JSON file is present in tms-booking/server/data/conf_org, otherwise the application pages refuse the load, showing only a gray page.