I am not sure where the client side JS actually goes. I know that the search component is rendered using React. render to string, so that would have to be static.
2015-12-24 35816, 2015
LordSputnik
Gentlecat: I've commented
2015-12-24 35824, 2015
LordSputnik
opatel99: That's right
2015-12-24 35855, 2015
Gentlecat
LordSputnik: thanks!
2015-12-24 35801, 2015
LordSputnik
So, for the other React components, we define a controller - which is just a small JS snippet which is included in the HTML as a script tag and loads the react component in the browser
2015-12-24 35812, 2015
Rovastar has quit
2015-12-24 35823, 2015
opatel99
But the other controllers all look the same
2015-12-24 35825, 2015
LordSputnik
You'll also want to pass the initial props into the page template (see the "props" variable)
2015-12-24 35836, 2015
LordSputnik
opatel99: They are - we could probably combine them somehow
2015-12-24 35813, 2015
opatel99
Ok. I am passing the results prop to the search component right now. Is that similar?
2015-12-24 35823, 2015
opatel99
from the route ^
2015-12-24 35814, 2015
LordSputnik
That's correct for the server-side rendering, you just need to pass the results as part of the props object to the template, so that the variable is passed to the client JS
> Which means you’ll run out of available ports if you receive more than about 400 requests a second, or if we look back to how nginx does proxies, this actually translates to 200 requests per second. Not good for scaling.
2015-12-24 35810, 2015
ruaok
gee, that sounds like us.
2015-12-24 35802, 2015
LordSputnik
opatel99: exactly :) Technically speaking, the props get rendered into the page template inside a script tag, which makes them available for use by the controller JS
2015-12-24 35812, 2015
LordSputnik
(then the controller passes them to the component)
2015-12-24 35843, 2015
D4RK-PH0ENiX has quit
2015-12-24 35846, 2015
yeeeargh has quit
2015-12-24 35855, 2015
D4RK-PH0ENiX joined the channel
2015-12-24 35804, 2015
opatel99
LordSputnik: Do we still need the search button?
2015-12-24 35842, 2015
kepstin
keeping a button with a distinctive label for search is helpful for accessibility.
2015-12-24 35818, 2015
kepstin doesn't know which search box yo're talking about tho
2015-12-24 35848, 2015
gcilou has quit
2015-12-24 35835, 2015
LordSputnik
opatel99: yes, for people not using JS client-side
* Michael Wiencek: Only show notes received in the past 3 months
2015-12-24 35822, 2015
MBJenkins
* Michael Wiencek: Add index on edit_note (post_time DESC, edit DESC)
2015-12-24 35851, 2015
triggerwarning has quit
2015-12-24 35851, 2015
triggerwarning joined the channel
2015-12-24 35835, 2015
Bookzombie joined the channel
2015-12-24 35827, 2015
CallerNo6 has quit
2015-12-24 35837, 2015
Nyanko-sensei joined the channel
2015-12-24 35847, 2015
D4RK-PH0ENiX has quit
2015-12-24 35859, 2015
Bookzombie has quit
2015-12-24 35840, 2015
ariscop has quit
2015-12-24 35835, 2015
Leo__Verto has quit
2015-12-24 35854, 2015
ariscop joined the channel
2015-12-24 35807, 2015
D4RK-PH0ENiX joined the channel
2015-12-24 35835, 2015
Nyanko-sensei has quit
2015-12-24 35853, 2015
opatel99
LordSputnik: Is it ok to import another lib for the Search component?
2015-12-24 35808, 2015
Z903 joined the channel
2015-12-24 35830, 2015
Z903
so I am in need of some setup help
2015-12-24 35820, 2015
Z903
I have gotten through most of the setup but am getting some perl errors when trying to create the database
2015-12-24 35846, 2015
Z903
./admin/InitDb.pl --createdb --import /home/toor/mbdump*.tar.bz2 --echo Can't locate Class/MOP.pm in @INC (you may need to install the Class::MOP module) (@INC contains: /opt/musicbrainz-server/admin/../lib /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /opt/musicbrainz-server/admin/../lib/DBDefs/Default.pm line
2015-12-24 35819, 2015
Z903
can anybody walk me through what is going wrong here?