Closed Bug 799950 Opened 8 years ago Closed 8 years ago

OrangeFactor should adjust 'es_server' automatically if testing the client-side from the local filesystem


(Tree Management Graveyard :: OrangeFactor, defect)

Not set


(Not tracked)



(Reporter: emorley, Assigned: emorley)



(1 file)

This is OrangeFactor's equivalent of bug 799908.

Currently we can test client-side only changes by running index.html from the local filesystem & pointing the UI at the production server-side components. However this requires changing es_server in woo.config.js every time I want to test locally. 

I do this by popping/pushing an mq, but it's still a PITA to have to remember to do - and if I forget to push the mq before starting the next patch, I inevitably end up at some point qrefreshing parts of the patch into my baseURL mq patch.

We should just detect "file:" in window.location.protocol and set the value automatically to save this messing about.
Attached patch Patch v1Splinter Review
Happy to adjust the wording (or line wrapping of the ternary) if needed :-)
Attachment #669971 - Flags: review?(mcote)
Comment on attachment 669971 [details] [diff] [review]
Patch v1

Review of attachment 669971 [details] [diff] [review]:

Very cool! I suppose eventually we'll want to change this to point to our dev server when it's up, but good for now.
Attachment #669971 - Flags: review?(mcote) → review+
Cheers :-)
Closed: 8 years ago
Resolution: --- → FIXED
Product: Testing → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.