Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

MVC Rework #83

Merged
merged 1 commit into from Jan 23, 2019
Merged

MVC Rework #83

merged 1 commit into from Jan 23, 2019

Conversation

dhollinger
Copy link
Member

Rework the application into a Model, View, Controller style framework without changing user-facing functionality.

Benefits:

  • Cleaner, easier to follow code structure
  • More modular for adding functionality with less effort
  • Be able to manage user data (authentication) within the model

Drawbacks:

  • Unused components (Probably won't benefit from views)
  • Larger Directory Structure
  • More complicated packaging process (no gemspec file)

@@ -0,0 +1,21 @@
development:
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: Remove this from the repository.

Rakefile Outdated Show resolved Hide resolved
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Dec 31, 2018
@voxpupuli voxpupuli deleted a comment Jan 22, 2019
@voxpupuli voxpupuli deleted a comment Jan 22, 2019
@voxpupuli voxpupuli deleted a comment Jan 22, 2019
@voxpupuli voxpupuli deleted a comment Jan 22, 2019
@voxpupuli voxpupuli deleted a comment Jan 22, 2019
@voxpupuli voxpupuli deleted a comment Jan 22, 2019
@voxpupuli voxpupuli deleted a comment Jan 22, 2019
@dhollinger dhollinger changed the title WIP: MVC Rework MVC Rework Jan 22, 2019
@coveralls
Copy link

coveralls commented Jan 22, 2019

Coverage Status

Coverage decreased (-2.3%) to 52.189% when pulling 1264129 on dhollinger:mvc_rework into b089f4e on voxpupuli:master.

All API routes have been moved to controllers in
Api::V1::<ControllerName>. These controllers are configured to respond
to their original urls for backwards compatibility. This compatibility
will be removed in 2.0.0.

All r10k helpers have been moved to a new R10kHelpers file in
`app/helpers/r10k_helpers.rb`. All global controller methods are now
private methods within the main ApplicationController, while
controller-specific methods now exist in their controllers. Any
non-public method is now private.

All library-based code is now contained in a `PuppetWebhook` module
within the `lib/` directory in the root of the codedir. Theses include
body parsers, mcollective client, and chatops clients.

New tests have been added for the parsers, controllers, and helpers
@dhollinger dhollinger merged commit 0d26ecd into voxpupuli:master Jan 23, 2019
@dhollinger dhollinger deleted the mvc_rework branch January 23, 2019 20:27
@voxpupuli voxpupuli deleted a comment Jan 24, 2019
@voxpupuli voxpupuli deleted a comment Jan 24, 2019
@dhollinger dhollinger mentioned this pull request Jan 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
2.0.0
  
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

3 participants