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

refactor models so that we have a set of simple base models that can be used for new modules #531

Open
braaar opened this issue Feb 1, 2025 · 0 comments

Comments

@braaar
Copy link
Collaborator

braaar commented Feb 1, 2025

As seen in issues such as #425, there is a desire for a new kind of business logic. It can be hard to implement these features without breaking existing features, so for that reason I suggest we do some refactoring work that will make it easier to make the app more modular. We can do this by writing base classes which contain the most general fields, and having the current models expand on them.

Eventually we can implement alternative versions of the business logic that uses a separate set of classes that expand the very same base models. If we write views, emails and other generalizeable code to use the base model, it will work for all use cases.

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

No branches or pull requests

1 participant