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

Installed plugins view and plugin homepage/configuration links #935

Merged
merged 10 commits into from
Sep 24, 2021

Conversation

glennmatthews
Copy link
Contributor

Fixes: #580, Relates to #547 and #803

Screen Shot 2021-09-21 at 2 26 45 PM

Screen Shot 2021-09-21 at 2 27 07 PM

  • Add two new optional PluginConfig attributes - config_view_name and home_view_name. If these are specified by a plugin, the "actions" buttons in the rightmost column of the Installed Plugins table view will use these links (otherwise the buttons will be present but disabled). (Feature Request: Plugins Configuration View #580)
    • Added example views to the dummy_plugin with some simple page templates.

image

image

  • Add "installed plugin detail" page accessible from the Installed Plugins table view.
    • This view shows the relevant information from the PluginConfig (not including settings as those may be sensitive)
    • The plugin ready method now stores various additional information on the PluginConfig which is used by this view to display an in-depth view of features used by the plugin

Screen Shot 2021-09-21 at 2 27 21 PM

Screen Shot 2021-09-21 at 2 27 37 PM

@glennmatthews
Copy link
Contributor Author

Dang. Looks like there's something in the ready() logic that doesn't like starting from an empty DB. I'll chase it down, but in general this should still be ready for review.

@jedelman8 jedelman8 self-requested a review September 24, 2021 18:03
@glennmatthews glennmatthews merged commit a6551a1 into next Sep 24, 2021
@glennmatthews glennmatthews deleted the gfm-installed-plugins-view branch September 24, 2021 20:52
glennmatthews added a commit that referenced this pull request Sep 24, 2021
link="plugins:plugins_list",
name="Installed Plugins",
weight=100,
permissions=[],
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry I'm late to the party,
I think it would be good to have a permission associated with this menu item and this view to allow Nautobot Admin to limit who can access this view

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently the view is available to all authenticated users. Since there isn't an actual data model underpinning it, it's a bit tricky to use the object-based permissions framework to restrict the view more narrowly than that. I'm open to suggestions though.

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.

None yet

4 participants