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 controller business logic to service(s) #806

Closed
robfrawley opened this issue Sep 27, 2016 · 3 comments
Closed

Refactor controller business logic to service(s) #806

robfrawley opened this issue Sep 27, 2016 · 3 comments
Labels
Attn: BC Break This issue or PR results in a backwards-compatibility break and therefore requires a major release. Attn: Blocker This item blocks other issue(s) or PR(s) and therefore must be resolved prior. Level: New Feature 🆕 This item involves the introduction of new functionality. State: Confirmed This item has been confirmed by maintainers as legitimate.

Comments

@robfrawley
Copy link
Collaborator

robfrawley commented Sep 27, 2016

With the 1.x codebase, the controller defines a large subset of routing and conditional logic between the different objects required to successfully generate and cache a transformed image, and as the current controller interface requires a request object, such must be mocked when called outside a context where a request object is natively available.

This is inconvenient, and can be improved.

This 2.x feature is to tear the vast majority of business logic out from the controller and define a collection of (or one?) services that implement the required logic to "glue" together the different layers needed. Most importantly, this new functionality should be request-agnostic.

@robfrawley robfrawley added this to the v2.x milestone Sep 27, 2016
@robfrawley robfrawley added Attn: Blocker This item blocks other issue(s) or PR(s) and therefore must be resolved prior. Level: New Feature 🆕 This item involves the introduction of new functionality. State: Confirmed This item has been confirmed by maintainers as legitimate. labels Sep 27, 2016
@robfrawley
Copy link
Collaborator Author

robfrawley commented Sep 27, 2016

Current work on this feature is being contributed by @jehaby in the sandbox repository clone. A formal PR will originate from there once an implementation is finalized, for inclusion in this repo's 2.x branch. Comments, code reviews, and additional contributions welcome!

@robfrawley robfrawley added Attn: BC Break This issue or PR results in a backwards-compatibility break and therefore requires a major release. release: next major and removed major release labels Oct 10, 2016
@robfrawley
Copy link
Collaborator Author

robfrawley commented Oct 10, 2016

@jehaby Just moved this to the "in peer review" stage on the project tracker. I will be taking a look over the next few days to provide feedback on your initial stab at implementing this feature!

@dbu
Copy link
Member

dbu commented Oct 6, 2021

the controller seems cleaned up now, i think this has been done.

@dbu dbu closed this as completed Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Attn: BC Break This issue or PR results in a backwards-compatibility break and therefore requires a major release. Attn: Blocker This item blocks other issue(s) or PR(s) and therefore must be resolved prior. Level: New Feature 🆕 This item involves the introduction of new functionality. State: Confirmed This item has been confirmed by maintainers as legitimate.
Projects
None yet
Development

No branches or pull requests

3 participants