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

Fetaure/installed app api #941

Draft
wants to merge 9 commits into
base: dev
Choose a base branch
from
Draft

Conversation

phycodurus
Copy link
Contributor

DRAFT: this refactor creates the infrastructure for generalized integration points for tom_base to introspect a TOMToolkit INSTALLED_APP. It's worth looking at these commits in isolation because they just set things up without adding any additional, complicating functionality. (That comes next).

All TOM Toolkit INSTALLED_APPs should inherit from this class
rather than the standard django.apps.AppConfig class that the
startapp management command uses by default. TOMToolkitAppConfig
defines (will define)  the instrospectable API of a TOM Toolkit app
and the methods tom_base will call for app-specific customizations.
This allows a TOMToolkit app's app config (i.e. TomTargetsConfig)
to extend (or not) the TOMToolkitAppConfig methods that tom_base
will call to introspect each TOMToolkit INSTALLED_APP.
These would be implemented in each INSTALLED_APP's subclass of
TOMToolkitAppConfig with the app-specific nav-bar content. I'm
not sure where these methods will be called from.
@jchate6
Copy link
Contributor

jchate6 commented Sep 30, 2024

@phycodurus I think we have taken this a different direction. Would you be OK Closing this PR or having a conversation about moving forward?

I feel like we could handle this better with a template and a list of available connection points. I'm not sure we actually gain much by using a base class.

Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't need to include these specifically. They should run automatically when the app is installed.

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.

Add integration points to templates so additional modules can be added without overriding templates
2 participants