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

Add NSO integration #288

Merged
merged 23 commits into from
Mar 19, 2024
Merged

Add NSO integration #288

merged 23 commits into from
Mar 19, 2024

Conversation

romanukes
Copy link
Contributor

@romanukes romanukes commented Oct 27, 2023

TODO:

  • Move tests
  • Check for compatibility with Nautobot 2.0 (Remove device_role, slugs, etc.)
  • Add CommandFilterListView and Navigation. Disable view if NSO is disabled.

@romanukes romanukes changed the title WIP - Add NSO integration Add NSO integration Jan 8, 2024
@cmsirbu
Copy link
Contributor

cmsirbu commented Feb 12, 2024

Quick note to say that integration docs structure has been slightly changed by #265 (to align with the way it's done by SSoT), which will require a bit of an update in this PR and a rebase.

Copy link
Contributor

@smk4664 smk4664 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am curious what CommandFilter is used for. Is it not possible to do something similar without adding a new model?

nautobot_chatops/integrations/nso/models.py Outdated Show resolved Hide resolved
nautobot_chatops/migrations/0008_auto_20231228_2231.py Outdated Show resolved Hide resolved
Copy link
Contributor

@smk4664 smk4664 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, we will be removing the model and switching to another method for filtering commands.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed on call, we are going to try to replace this model with a config instead, so we do not add a required model in the database for an optional integration.

@romanukes romanukes requested a review from smk4664 March 18, 2024 16:00
@@ -48,7 +49,7 @@
with contextlib.suppress(ObjectDoesNotExist):
admin = User.objects.get(name="admin")
ChatOpsAccountLink.objects.update_or_create(
user_id="jactwicuqb8bu8pau8mgjydzeo",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To match the Mattermost SQL dump. Mattermost integration didn't work without this change

Copy link
Contributor

@smk4664 smk4664 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for all of your work for this!

@smk4664 smk4664 merged commit 43bb10c into nautobot:develop Mar 19, 2024
16 checks passed
@smk4664 smk4664 mentioned this pull request Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants