Open ShawnMilo opened 9 years ago
FYI @pdpinch. #669 is the part I'm working on now (first checkbox above).
Update front-end (React) code to use the new functions
I thought react only uses the REST api ?
He's referring to the change in output from the REST API which will require slight changes to the React code that consumes it.
@ShawnMilo I think the 3rd and 4th checkboxes are complete on this, and we can close this issue. Can you confirm?
@pdpinch Not really. The data being pulled by elasticsearch-dsl is being converted to what Haystack had been returning. The actual learning resources aren't really different, since they're essentially being returned as a list of dictionaries.
However, the aggregate data (vocabulary counts) are being converted to the Haystack format by the convert_aggregate
function in search/utils.py
.
It would be nice to clean up, but I don't think it's really hurting anything to leave it as-is. @noisecapella or @giocalitri can comment on how much trouble it would be to clean up the react.js parts so we can scrap convert_aggregate
.
Based on the research done in #516, add direct use of the
elasticsearch
andelasticsearch_dsl
libraries.These will temporarily run in parallel to the Haystack code, until the front-end and restful API are updated, then all the Haystack code can be completed.