<div dir="ltr">Fantastic, gents!</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 4, 2015 at 6:01 AM, Shane Tomlinson <span dir="ltr"><<a href="mailto:stomlinson@mozilla.com" target="_blank">stomlinson@mozilla.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Props to Chilts, Danny and Ryan!<br></div><br>I can vouch that navigating the repos and the code is now far simpler. Adding the new features is actually pretty straight forward, the most painful part is updating tests in the fxa-auth-db-server and then `npm install`ing that into the backends being updated. <br><br>For other devs digging in, replacing `node_dependencies/fxa-auth-db-server` in the individual backends with a symlink to your local fxa-auth-db-server repo that contains the updated tests simplifies things.<span class="HOEnZb"><font color="#888888"><br><br>Shane<br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 4, 2015 at 5:14 AM, Ryan Kelly <span dir="ltr"><<a href="mailto:rfkelly@mozilla.com" target="_blank">rfkelly@mozilla.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi All,<br>
<br>
<br>
We've just landed a pretty major refactoring of the way database backends work in fxa-auth-server.  Big :thumbsup: to Chilts and Danny for seeing this work through to completion!<br>
<br>
I'm sending this email mainly as a heads-up - ideally you will not notice anything different unless you're working with (or deploying!) FxA core auth backend code.<br>
<br>
But if things on the dev environment seem a little unstable over the next few days, some unexpected side-effect of this change is a pretty likely suspect...<br>
<br>
If you're interested, see below for a summary of the new code layout.<br>
<br>
<br>
  Cheers,<br>
<br>
    Ryan<br>
<br>
<br>
=========<br>
<br>
As of this merge we have the following repos involved in storing account data:<br>
<br>
<br>
  fxa-auth-server:  The core web app for the FxA auth api, this handles<br>
                    all client interaction logic and talks to a generic<br>
                    internal HTTP service for data storage.<br>
<br>
  fxa-auth-db-server:  This speaks the HTTP API for data storage, and<br>
                       translates requests into calls to a generic<br>
                       object API.  Think of it as a "base class" for<br>
                       auth-db implementations.<br>
<br>
  fxa-auth-db-mem:  This imports fxa-auth-db-server and provides a<br>
                    simple in-memory data store, for testing purposes.<br>
<br>
  fxa-auth-db-mysql:  This is our production backend.  It imports<br>
                      fxa-auth-db-server and provides a MySQL-backed<br>
                      data storage layer.<br>
<br>
This factoring will help us to avoid deploying test-related code to production.  It may also be useful for self-hosters who want to work atop a different backend, as there's no need for them to deploy the mysql-specific stuff we use internally.<br>
<br>
On the downside, if you're adding a new feature to the storage layer (e.g. the "account lockout" feature that Shane is working on) you now have to co-ordinate across three different repos.  This as been quite manageable in practice so far.<br>
______________________________<u></u>_________________<br>
Dev-fxacct mailing list<br>
<a href="mailto:Dev-fxacct@mozilla.org" target="_blank">Dev-fxacct@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/dev-fxacct" target="_blank">https://mail.mozilla.org/<u></u>listinfo/dev-fxacct</a><br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Dev-fxacct mailing list<br>
<a href="mailto:Dev-fxacct@mozilla.org">Dev-fxacct@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/dev-fxacct" target="_blank">https://mail.mozilla.org/listinfo/dev-fxacct</a><br>
<br></blockquote></div><br></div>