Mailinglist Archive: opensuse-buildservice (63 mails)

< Previous Next >
Re: [opensuse-buildservice] Proposal to use more namespaces to organise controllers
On 01/13/2017 10:43 AM, Evan Rolfe wrote:
Hi all, I have a PR in which I've started to use namespaces to organise
some new controllers and wanted to make sure everybody is onboard with
this pattern since currently the only namespace we have in the
controllers is Webui.

Those controllers are:




In the case of Source::KeyInfoController this is an alternative to
adding another method to SourceController which already has > 1600
lines. Namespacing will also allow us to follow a
"one-controller-per-resource" (REST) pattern which would make the
controller code simpler and more uniform.

Here is a pretty good article about this from our "Lord and Savior DHH™"

Please let me know what you think.



I like the idea. Seems to be a nice way to structure our code.


Björn Geuken - Rails Developer - Open Build Service
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer,
HRB 21284 (AG Nürnberg)
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups