but I think that should be under API and then have docstrings added.
then we can close the API docs bug too
iliekcomputers
ruaok: okay, i'll put it in api
arthelon
LordSputnik: Only noticed one instance of jQuery being used btw, react-bootstrap doesn't have a dependency on it either
Sophist-UK has quit
Sophist-UK joined the channel
Nvm, it's used quite extensively with select
LordSputnik
arthelon: Select2?
If we get rid of that, can we drop jQuery?
arthelon
I believe so
I only see jQuery usage in the EntitySearch and Select2 components
iliekcomputers
ruaok: you think the get and update should be different endpoints?
ruaok
naw, the same with GET/POST
iliekcomputers
okay cool
arthelon
LordSputnik: Maybe we can replace select2 with this? http://jedwatson.github.io/react-select/ The largest refactor would be the select2Options that are being passed around
LordSputnik
That's what I've started doing with the new entity editor
It has much better performance in react too
Maybe we can make a wrapper component to translate between the Select2 props and the react select props?
Then update to use react select without the wrapper gradually
arthelon
Don't think it's too big of a rewrite
we can try changing all the occurences right away
Probably less work than going through every occurence, seeing what's being used, and writing out the equivalent in react-select
It's mainly for the select2Options prop, all the other props seem to be supported in react-select
Everything in select2Options should be its own prop
ruaok
iliekcomputers: XMLHttpRequest cannot load https://beta-api.listenbrainz.org/user/latest-i.... Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://beta.listenbrainz.org' is therefore not allowed access.
heh.
my personal listen count, the big query listen count and system wide listen counts are all the same.
ruaok high fives iliekcomputers
iliekcomputers
ruaok: why exactly does that error happen for the new endpoint but not for submit-listens? Not familiar with this very much
[listenbrainz-server] paramsingh opened pull request #211: Move latest-import endpoint to api (master...incremental-import/move-to-api) https://git.io/vQOd1
github has left the channel
ruaok
woo
iliekcomputers: the code for the test or the view didn't really change, did it?
iliekcomputers
ruaok: nope no change
just moved them from one place to another and changed the url accordingly
ruaok
k
github joined the channel
github
[listenbrainz-server] mayhem closed pull request #211: Move latest-import endpoint to api (master...incremental-import/move-to-api) https://git.io/vQOd1
XMLHttpRequest cannot load https://beta-api.listenbrainz.org/1/latest-import. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://beta.listenbrainz.org' is therefore not allowed access. The response had HTTP status code 405.
psolanki
Gentlecat: Hi
I looked at how to update avg. rating via triggers but I think it can be done through db like MB