dispatch icon indicating copy to clipboard operation
dispatch copied to clipboard

Renaming organizations

Open keithherron opened this issue 4 years ago • 6 comments

Is your feature request related to a problem? Please describe.

Essentially yes. I'm currently unable to (or not clear on how to) change the default org name, and would prefer not to have incidents named e.g. dispatch-default-project-1. dispatch-companyname-project-1 would be preferred

Describe the solution you'd like

I'd like my instance to have only one organization. Ideally it would be 'companyname' as opposed to 'default'.

Is it possible to rename the default organization?

If so, how? And could a feature be added to simplify the process.

If not, what would be the recommend way to accomplish deploying dispatch with a single organization of 'companyname'?

Describe alternatives you've considered

I've considered creating org 'companyname' alongside org 'default' and deploying web server redirects to "pin" users to a certain org via the URL e.g. https://dispatch.example.org/companyname/ but I think handling within dispatch would be better.

keithherron avatar Nov 04 '22 17:11 keithherron

@keithherron we don't currently support renaming orgs at the moment, as renaming the org involves renaming the database schema where all the tables live (dispatch_organization_default for the default org) and that can lead to db issues. The only way is to create a new organization.

mvilanova avatar Nov 10 '22 18:11 mvilanova

We could look into allowing folks to specify the org name during the installation process in the future.

mvilanova avatar Nov 10 '22 18:11 mvilanova

Thanks for the response! FWIW since writing this I've had some success in renaming from default using essentially

db init alter schema dispatch_organization_default RENAME to dispatch_organization_companyname update dispatch_core.organization set slug='companyname' where id=1; update dispatch_core.organization set name='companyname' where id=1;

Seems to work, although the instance is not yet hosting live data. Is there a downside or gotcha to moving forward like that?

I also notice the instance still attempts to load /default instead of /companyname, although I haven't yet pinpointed why

keithherron avatar Nov 10 '22 18:11 keithherron

Is there a downside or gotcha to moving forward like that?

We haven't experimented enough with it to be able to tell with certainty.

mvilanova avatar Nov 10 '22 18:11 mvilanova

This issue is stale, because it has been open for 30 days with no activity. Remove the stale label or comment, or this will be closed in 5 days.

github-actions[bot] avatar Dec 11 '22 00:12 github-actions[bot]

This issue was closed, because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Dec 17 '22 00:12 github-actions[bot]