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

Fixes to support multiple Apps per package #4845

Merged
merged 7 commits into from
Nov 30, 2023

Conversation

snaselj
Copy link
Contributor

@snaselj snaselj commented Nov 22, 2023

Closes: NaN

What's Changed

  • Fixed the following methods to use to use app_config.name instead of app_label + conditional logic.
    • nautobot.core.api.utils.get_serializer_for_model
    • nautobot.core.utils.lookup.get_route_for_model
    • nautobot.core.utils.lookup.get_related_class_for_model
    • nautobot.extras.plugins.tables.InstalledPluginsTable
    • nautobot.extras.plugins.views.InstalledPluginsView

TODO

  • Outline Remaining Work, Constraints from Design

@HanlinMiao
Copy link
Contributor

@snaselj What else is there to be done to get it across the finish line?

@snaselj
Copy link
Contributor Author

snaselj commented Nov 28, 2023

@snaselj What else is there to be done to get it across the finish line?

This PR is currently taken over by @whitej6, there will probably be more fixes comming here. Or would you rather finish this one and add other fixes to separate PRs? @HanlinMiao

…r conditional logic to prepend if nto in plugin list
@whitej6 whitej6 marked this pull request as ready for review November 29, 2023 00:47
@whitej6
Copy link
Contributor

whitej6 commented Nov 29, 2023

@HanlinMiao it is ready for review.

@glennmatthews glennmatthews merged commit 0e655f5 into develop Nov 30, 2023
22 checks passed
@glennmatthews glennmatthews deleted the u/snaselj-napps-108-sub-app branch November 30, 2023 22:46
timizuoebideri1 pushed a commit that referenced this pull request Dec 8, 2023
* fix: get_serializer_for_model to use model.__module__

* Changes to use app_config.name instead of app_label & removed need for conditional logic to prepend  if nto in plugin list

* extras and users needed to be prepended with nautobot.

---------

Co-authored-by: Hanlin Miao <46973263+HanlinMiao@users.noreply.github.com>
Co-authored-by: Jeremy White <jeremy.lee.w@me.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
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