Message from discussion
Move settings to the datbase?
Received: by 10.204.145.140 with SMTP id d12mr245704bkv.6.1350016362880;
Thu, 11 Oct 2012 21:32:42 -0700 (PDT)
X-BeenThere: fat-free-crm-dev@googlegroups.com
Received: by 10.204.0.70 with SMTP id 6ls2678617bka.2.gmail; Thu, 11 Oct 2012
21:32:41 -0700 (PDT)
Received: by 10.204.129.9 with SMTP id m9mr246490bks.1.1350016361497;
Thu, 11 Oct 2012 21:32:41 -0700 (PDT)
Received: by 10.204.129.9 with SMTP id m9mr246489bks.1.1350016361468;
Thu, 11 Oct 2012 21:32:41 -0700 (PDT)
Return-Path: <nathan....@gmail.com>
Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181])
by gmr-mx.google.com with ESMTPS id k7si731513bks.2.2012.10.11.21.32.41
(version=TLSv1/SSLv3 cipher=OTHER);
Thu, 11 Oct 2012 21:32:41 -0700 (PDT)
Received-SPF: pass (google.com: domain of nathan....@gmail.com designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of nathan....@gmail.com designates 209.85.217.181 as permitted sender) smtp.mail=nathan....@gmail.com; dkim=pass header...@gmail.com
Received: by mail-lb0-f181.google.com with SMTP id gg6so1918898lbb.26
for <fat-free-crm-dev@googlegroups.com>; Thu, 11 Oct 2012 21:32:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:reply-to:in-reply-to:references:from:date:message-id
:subject:to:cc:content-type;
bh=xsCWfFJlNNyz8ic5RyMVcreAcqZQ5UAAkjVRKH/T2po=;
b=xbjtat+LaHJFx3IGIik5P1ZSP790lnFNj6Pble9kXi8+O9h9Flg9NgI5qXdp4mQyaw
OsPPV8SG0CImjprWtSUBqlklS/WmH4DsuluolpQiwsLooHLols6K3B6Pb+Sk9zTaR2Jo
Zbih4Bb31xkSWPJPdjF4p+4BD0EXDiKW26K9xbY2IXPYqTnlPVsAo897HC/z7VKAQ8nZ
W8vQjw0MiUvwKlt2R2Yc3bQH0i21+zd4ML6kPgc4at2WfMvqOGiYY2CmFGshsOu9cXfk
hjkDjrCIhwxHussM2By0gO/er0lJfyrFsupldpXQVmIAB4IO1ZvQO8Iol2CSX5lUKGZb
g14w==
Received: by 10.112.82.232 with SMTP id l8mr895160lby.104.1350016360999; Thu,
11 Oct 2012 21:32:40 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.18.43 with HTTP; Thu, 11 Oct 2012 21:32:10 -0700 (PDT)
Reply-To: nathan....@gmail.com
In-Reply-To: <3f5be386-46c7-4874-9b4e-b54bdd18d887@googlegroups.com>
References: <99697254-2e44-431d-a56f-946f5ac64715@googlegroups.com> <3f5be386-46c7-4874-9b4e-b54bdd18d887@googlegroups.com>
From: Nathan Broadbent <nathan....@gmail.com>
Date: Fri, 12 Oct 2012 17:32:10 +1300
Message-ID: <CAPXHQbOMd+Q18BKeR=u_YAbTDpJJ5ZGmu3Kqp4bcO_S0D8Y...@mail.gmail.com>
Subject: Re: [fat-free-crm-dev:589] Re: Move settings to the datbase?
To: fat-free-crm-dev@googlegroups.com
Cc: westonplat...@gmail.com
Content-Type: multipart/alternative; boundary=f46d04016edfa36bcf04cbd52dda
--f46d04016edfa36bcf04cbd52dda
Content-Type: text/plain; charset=ISO-8859-1
Hi there,
Sorry for not providing any feedback earlier. I think your suggestion is
already the default behavior for settings. See the comment at:
https://github.com/fatfreecrm/fat_free_crm/blob/master/config/settings.default.yml#L18-34
# Fat Free CRM settings are stored in three places, and are loaded in the
following order:
#
# 1) config/settings.default.yml
# 2) config/settings.yml (if exists)
# 3) 'settings' table in database (if exists)
#
# Any settings in `config/settings.yml` will override those in
# `config/settings.default.yml`, and settings in the database table have
the highest priority.
#
# This settings arrangement offers a lot of flexibility:
#
# * Developers can add new settings to the application with default values,
# without requiring the user to manually update setting files or run
tasks.
# * No manual configuration is required to start the application after
installation
# * IT administrators can change the default configuration by adding
'settings.yml'
# to their git repo, or by running SQL that updates the 'settings' table
in the database.
# * Admin users can change settings via the admin interface, without
needing to edit YAML files.
Unfortunately, we haven't had time to build the admin settings
interface yet, since it hasn't been a very high priority.
Cheers,
Nathan
On Sat, Oct 6, 2012 at 6:49 AM, <westonplat...@gmail.com> wrote:
> Since I didn't get any feedback, I am going to go ahead an implement
> - initially pull settings from YAML file
> - pull settings from database
>
> Feedback is totally welcome.
>
>
> On Thursday, September 6, 2012 6:30:10 AM UTC-5, weston...@gmail.comwrote:
>>
>> Spree uses a YML a file to store initial app settings, which are then
>> stored as database entries. Once the app is running, settings can persist
>> in the app via CRUD.
>>
>> This seems like a good method for implementing settings in FFCRM.
>>
>> How does this sounds to others?
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Fat Free CRM Developers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/fat-free-crm-dev/-/oC9juFc5Q0IJ.
>
> To post to this group, send email to fat-free-crm-dev@googlegroups.com.
> To unsubscribe from this group, send email to
> fat-free-crm-dev+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/fat-free-crm-dev?hl=en.
>
--f46d04016edfa36bcf04cbd52dda
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi there,=A0<div><br></div><div>Sorry for not providing any feedback earlie=
r. I think your suggestion is already the default behavior for settings. Se=
e the comment at:=A0<a href=3D"https://github.com/fatfreecrm/fat_free_crm/b=
lob/master/config/settings.default.yml#L18-34">https://github.com/fatfreecr=
m/fat_free_crm/blob/master/config/settings.default.yml#L18-34</a></div>
<div><br></div><div><br></div><div><div># Fat Free CRM settings are stored =
in three places, and are loaded in the following order:</div><div>#</div><d=
iv># 1) config/settings.default.yml</div><div># 2) config/settings.yml =A0(=
if exists)</div>
<div># 3) 'settings' table in database =A0(if exists)</div><div>#</=
div><div># Any settings in `config/settings.yml` will override those in</di=
v><div># `config/settings.default.yml`, and settings in the database table =
have the highest priority.</div>
<div>#</div><div># This settings arrangement offers a lot of flexibility:</=
div><div>#</div><div># * Developers can add new settings to the application=
with default values,</div><div># =A0 without requiring the user to manuall=
y update setting files or run tasks.</div>
<div># * No manual configuration is required to start the application after=
installation</div><div># * IT administrators can change the default config=
uration by adding 'settings.yml'</div><div># =A0 to their git repo,=
or by running SQL that updates the 'settings' table in the databas=
e.</div>
<div># * Admin users can change settings via the admin interface, without n=
eeding to edit YAML files.</div><div><br></div><div><br></div><div>Unfortun=
ately, we haven't had time to build the admin settings interface=A0yet,=
since it hasn't been a very high priority.</div>
<div><br></div><div><br></div><div>Cheers,</div><div>Nathan</div><div><br><=
/div><br><div class=3D"gmail_quote">On Sat, Oct 6, 2012 at 6:49 AM, <span =
dir=3D"ltr"><<a href=3D"mailto:westonplat...@gmail.com" target=3D"_blank=
">westonplat...@gmail.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Since I didn't get any feedback, I am go=
ing to go ahead an implement=A0<div>- initially pull settings from YAML fil=
e</div>
<div>- pull settings from database</div><div><br></div><div>Feedback is tot=
ally welcome.</div><div class=3D"im"><div><br><br>On Thursday, September 6,=
2012 6:30:10 AM UTC-5, <a href=3D"mailto:weston...@gmail.com" target=3D"_b=
lank">weston...@gmail.com</a> wrote:<blockquote class=3D"gmail_quote" style=
=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"=
>
Spree uses a YML a file to store initial app settings, which are then store=
d as database entries. Once the app is running, settings can persist in the=
app via CRUD.=A0<div><br></div><div>This seems like a good method for impl=
ementing settings in FFCRM.</div>
<div><br></div><div>How does this sounds to others?</div></blockquote></div=
>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;Fat Free CRM Developers" group.<br></div>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msg/fat-free-crm-dev/-/oC9juFc5Q0IJ" target=3D"_blank">https://groups.=
google.com/d/msg/fat-free-crm-dev/-/oC9juFc5Q0IJ</a>.<div class=3D"HOEnZb">=
<div class=3D"h5">
<br>=20
To post to this group, send email to <a href=3D"mailto:fat-free-crm-dev@goo=
glegroups.com" target=3D"_blank">fat-free-crm-dev@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:fat-free-cr=
m-dev%2Bunsubscribe@googlegroups.com" target=3D"_blank">fat-free-crm-dev+un=
subscribe@googlegroups.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/fat-free-crm-dev?hl=3Den" target=3D"_blank">http://groups.google.com/g=
roup/fat-free-crm-dev?hl=3Den</a>.<br>
</div></div></blockquote></div><br></div>
--f46d04016edfa36bcf04cbd52dda--