Closed mschoch closed 9 years ago
Looks like an optimization I made awhile back introduced a race condition. Previously, the code used to load metadata (like the list of available index types and source types) on-demand, late-binding when it needed to populate controls and dropdowns (such as in New Index form).
Nowadays, though, the metadata gets retrieved just once into a global, during start of the client-side...
https://github.com/couchbaselabs/cbft/blob/master/static/js/controllers.js#L15
Need to think of how to sequence this, or maybe have some ways timeout/refresh itself if metadata ain't ready yet.
As a quick thing, I just added some checks to display nothing instead of template placeholders.
I think this got fixed right before 0.1.0 Developer Preview 1 with this commit 3a440cc8376f57
I just got the latest cbft, built it, and launched it (with new data dir). I got the welcome page, pressed the button for a new index and see the following problems:
Breadcrumbs are:
Indexes / {{newIndexName}} / New Index
Possibly related, the javascript console contains: