Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-3347

handle local vs dynamic data better

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2
    • Infusion Builder
    • None

    Description

      Colin Clark says "Taking a look at the HTML file, I'm reminded that there are better strategies for switching between local testing data and the real thing, instead of commenting out code. Typically we check the window.location property to determine if the page is being hosted at a file:// URL instead of http://. In that case, just load the test data automatically."

      The html file being referred to is infusion-builder/html/CustomBuild.html around line 98, where the data is loaded from a file vs dynamically assembled from the json files. I've commented out the code for each usage. Find a better way to do this.

      Attachments

        Activity

          People

            laurelwilliams Laurel Williams (Inactive)
            laurelwilliams Laurel Williams (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 3h
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified