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

feat: plugin configuration further improvements #34

Merged
merged 19 commits into from
Sep 26, 2024

Conversation

mfiedorowicz
Copy link
Member

  • clear diode permissions (migration)
  • add default settings with usernames and diode target (placeholder)
  • allow plugin configuration with PLUGINS_CONFIG:
    • diode_target_override, which takes precedence over diode target stored in the settings model (db)
    • diode_to_netbox_username, netbox_to_diode_username, diode_username to customise diode related usernames
  • rename legacy users to new usernames (using new default or custom ones)

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
…config

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
block modifying diode target via GUI if diode_target_override is present

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
new usernames obtained from plugin config (either default ones or PLUGINS_CONFIG)

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Copy link

github-actions bot commented Sep 25, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1523 1507 99% 0% 🟢

New Files

File Coverage Status
netbox_diode_plugin/plugin_config.py 100% 🟢
TOTAL 100% 🟢

Modified Files

File Coverage Status
netbox_diode_plugin/init.py 100% 🟢
netbox_diode_plugin/forms.py 100% 🟢
netbox_diode_plugin/tests/test_forms.py 100% 🟢
netbox_diode_plugin/tests/test_views.py 100% 🟢
netbox_diode_plugin/views.py 99% 🟢
TOTAL 100% 🟢

updated for commit: 3e886a9 by action🐍

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
@leoparente leoparente self-requested a review September 25, 2024 20:59
Copy link
Contributor

@leoparente leoparente left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
@mfiedorowicz mfiedorowicz merged commit 855e92f into develop Sep 26, 2024
5 checks passed
@mfiedorowicz mfiedorowicz deleted the plugin-configuration-improvements-part-2 branch September 26, 2024 19:35
@orb-ci
Copy link

orb-ci commented Sep 26, 2024

🎉 This PR is included in version 0.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants