<p>This change is to facilitate using Observatory in an isolated staging environment that doesn't need to touch the production data. To do that, we create a single variable that indicates the root of the data directory and we put this variable in its own path.js file.</p>

<p>This also includes a bootstrap_environment.js file that the user runs when first setting up the environment after checking out the repo which creates the correct file depending on whether this is for a staging or production environment.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/opentechinstitute/mlab-observatory/pull/68'>https://github.com/opentechinstitute/mlab-observatory/pull/68</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Refactoring the Observatory data path to a separate file and adding a script to pick which file to use.</li>
  <li>Merge branch 'data-path-refactor' of https://github.com/mtlynch/mlab-observatory into data-path-refactor</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/mlab-observatory/pull/68/files#diff-0">.gitignore</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/mlab-observatory/pull/68/files#diff-1">README.md</a>
    (10)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/opentechinstitute/mlab-observatory/pull/68/files#diff-2">environment_bootstrap.py</a>
    (47)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/mlab-observatory/pull/68/files#diff-3">index.html</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/mlab-observatory/pull/68/files#diff-4">static/js/observatory/js/dataLoader.js</a>
    (30)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/opentechinstitute/mlab-observatory/pull/68/files#diff-5">static/js/observatory/js/paths.js.live</a>
    (14)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/opentechinstitute/mlab-observatory/pull/68/files#diff-6">static/js/observatory/js/paths.js.staging</a>
    (14)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/opentechinstitute/mlab-observatory/pull/68.patch'>https://github.com/opentechinstitute/mlab-observatory/pull/68.patch</a></li>
  <li><a href='https://github.com/opentechinstitute/mlab-observatory/pull/68.diff'>https://github.com/opentechinstitute/mlab-observatory/pull/68.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/opentechinstitute/mlab-observatory/pull/68">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AC7qBCvZZs0qRR5nXLisrTC3pHwfj0lxks5n_po7gaJpZM4EBRTx.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/opentechinstitute/mlab-observatory/pull/68"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>