Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize tenants before sites #524

Merged
merged 2 commits into from
Jun 3, 2021
Merged

Initialize tenants before sites #524

merged 2 commits into from
Jun 3, 2021

Conversation

jlemesh
Copy link
Contributor

@jlemesh jlemesh commented May 28, 2021

New Behavior

Sites can have Tenants but you can't initialise sites with tenants because tenants startup script runs after sites. This PR allows Sites initialization with associated Tenant.
...

Contrast to Current Behavior

Startup scripts run order changed to:
-> run tenant groups (prerequisite for tenants)
-> run tenants
-> run sites

...

Discussion: Benefits and Drawbacks

Allows functionality that should be here by design. I can't see any drawbacks.
...

Changes to the Wiki

No changes required.

...

Proposed Release Note Entry

Startup scripts run order changed to: tenant groups, tenants, sites.

...

Double Check

  • I have read the comments and followed the PR template.
  • I have explained my PR according to the information in the comments.
  • My PR targets the develop branch.

@jlemesh jlemesh changed the title Fix: iinitialize tenants before sites Fix: initialize tenants before sites May 28, 2021
@jlemesh
Copy link
Contributor Author

jlemesh commented Jun 1, 2021

@cimnine, @tobiasge

Hi, could you please have a look? Or is there something obvious missing in this PR?
Thanks

@cimnine cimnine changed the title Fix: initialize tenants before sites Initialize tenants before sites Jun 3, 2021
@cimnine cimnine added the bug This issue describes a confirmed bug. label Jun 3, 2021
@cimnine cimnine added this to the next milestone Jun 3, 2021
@cimnine cimnine merged commit b8ff0a1 into netbox-community:develop Jun 3, 2021
@cimnine
Copy link
Collaborator

cimnine commented Jun 3, 2021

Thank you for this PR – it is much appreciated. I know that it can be frustrating when you have to wait for a PR to be reviewed / merged. But please know that this project is managed by volunteers who do have day-jobs, families and other hobbies. I therefore ask you to have a little more patience next time around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes a confirmed bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants