#metabrainz

/

      • opatel99
        LordSputnik: Did you look at the search?
      • 2015-12-24 35817, 2015

      • opatel99
        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
      • 2015-12-24 35810, 2015

      • LordSputnik
        https://github.com/bookbrainz/bookbrainz-site/blo… shows how we do that for the Editor creation/editing form
      • 2015-12-24 35804, 2015

      • opatel99
        So I need a route and a controller for search
      • 2015-12-24 35835, 2015

      • opatel99
        The props go from route to controller to component?
      • 2015-12-24 35836, 2015

      • ruaok
      • 2015-12-24 35838, 2015

      • ruaok
        hmmm.
      • 2015-12-24 35806, 2015

      • ruaok
        > 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
      • 2015-12-24 35853, 2015

      • pusaymonayweed joined the channel
      • 2015-12-24 35857, 2015

      • pusaymonayweed
        HI. How do I join the Coding In competition?
      • 2015-12-24 35854, 2015

      • CallerNo6
        Hi pusaymonayweed. Have you looked at https://codein.withgoogle.com/ ?
      • 2015-12-24 35818, 2015

      • pusaymonayweed has quit
      • 2015-12-24 35827, 2015

      • ruaok
        wooo! index rotation without drama
      • 2015-12-24 35855, 2015

      • iLikeBigButts joined the channel
      • 2015-12-24 35818, 2015

      • iLikeBigButts
        CallerNo6: I try that. Asking for some parent confirmation
      • 2015-12-24 35840, 2015

      • iLikeBigButts has quit
      • 2015-12-24 35855, 2015

      • triggerwarning joined the channel
      • 2015-12-24 35831, 2015

      • triggerwarning has quit
      • 2015-12-24 35831, 2015

      • triggerwarning joined the channel
      • 2015-12-24 35807, 2015

      • Freso_ joined the channel
      • 2015-12-24 35831, 2015

      • Freso_ is now known as Guest68770
      • 2015-12-24 35847, 2015

      • Guest68770 is now known as Fres0
      • 2015-12-24 35812, 2015

      • Fres0
        Fres0: Sup
      • 2015-12-24 35821, 2015

      • Fres0
        Freso: Sup
      • 2015-12-24 35850, 2015

      • Fres0
        adamcik adhawkins alastairp ariscokuno kurros Leftmost legoktm Leo_Verto leonardo LordSputnik Lotheric LordSputnik loujine luks ManiacTwister mat_ MBJenkins michiwend MightyJay mildused Mineo mjc_ Mogmi mrc0mmand mRokita muesli navap ocharles__ opatel99 pprkut qu3ntin0 rahulr rctgamer3 regagain reosarevok RJ2 ruaok russss RustyB rvedotrc sampsyo Sebastinas Somasis spuniun stanislas Tecfan_ tom[] trigger
      • 2015-12-24 35806, 2015

      • Leo_Verto
        Um
      • 2015-12-24 35800, 2015

      • Clint
        um indeed
      • 2015-12-24 35823, 2015

      • Fres0
        Clint:
      • 2015-12-24 35828, 2015

      • Fres0
        Leo_Verto:
      • 2015-12-24 35832, 2015

      • Fres0
        Freso:
      • 2015-12-24 35835, 2015

      • Leo_Verto
        :d
      • 2015-12-24 35837, 2015

      • Leo_Verto
        :D
      • 2015-12-24 35848, 2015

      • Leo_Verto
        FYI that was the same person who asked about GCI as pusaymonayweed and iLikeBigButts earlier
      • 2015-12-24 35808, 2015

      • Gentlecat
        where?
      • 2015-12-24 35821, 2015

      • Leo_Verto
        About an hour ago
      • 2015-12-24 35854, 2015

      • Gentlecat
        oh, right
      • 2015-12-24 35824, 2015

      • opatel99
        #metabrainz and #musicbrainz are the only IRC channels I use. Do all of them have occasional troll infestations like here?
      • 2015-12-24 35854, 2015

      • Leo_Verto
        Actually that's the first time I've ever had that happen in either of these
      • 2015-12-24 35839, 2015

      • opatel99
        He/She/It managed to skip a big chunk of the usernames...
      • 2015-12-24 35805, 2015

      • opatel99
        Ar to Ku
      • 2015-12-24 35822, 2015

      • Fres0 joined the channel
      • 2015-12-24 35843, 2015

      • Fres0 has quit
      • 2015-12-24 35835, 2015

      • CallerNo6
        these two channels are almost all signal, no noise (unless you count me and hawke talking about labels)
      • 2015-12-24 35809, 2015

      • CallerNo6
        Hey all, question, if an MB account does not yet have a confirmed email address, would I see that on the user's page?
      • 2015-12-24 35830, 2015

      • Leo_Verto
        No
      • 2015-12-24 35810, 2015

      • Leo_Verto
        Because apparently MB only saves email addresses when they've been verified
      • 2015-12-24 35847, 2015

      • CallerNo6
        Oh, sorry, I mean "would the user page indicate that the email address is not yet confirmed?"
      • 2015-12-24 35841, 2015

      • Leo_Verto
        I don't think that's saved either, so no
      • 2015-12-24 35856, 2015

      • CallerNo6
        Cool, thanks.
      • 2015-12-24 35817, 2015

      • CallerNo6
        So who can I ask that might be able to check? Gentlecat maybe?
      • 2015-12-24 35807, 2015

      • Leo_Verto
        Checking the schema right now
      • 2015-12-24 35847, 2015

      • CallerNo6 has got a GCi student asking for help. So I'd like to go in with all the facts I can get my hands on.
      • 2015-12-24 35843, 2015

      • Gentlecat
        CallerNo6: I don't even know where to query, sorry
      • 2015-12-24 35801, 2015

      • Gentlecat
        bitmap might be able to help
      • 2015-12-24 35819, 2015

      • Leo_Verto
        Mhm, that's not part of the main schema, apparently
      • 2015-12-24 35801, 2015

      • CallerNo6
        I'm always happy to hear that you people are mere mortals. Thanks Gentlecat. And thanks Leo_Verto for checking.
      • 2015-12-24 35810, 2015

      • bitmap
        CallerNo6: I can check if they have an email set
      • 2015-12-24 35839, 2015

      • CallerNo6
        bitmap, oh, cool, username 'Vihanga Madampe'
      • 2015-12-24 35821, 2015

      • bitmap
        nope, no email
      • 2015-12-24 35807, 2015

      • CallerNo6
        okay, good, that's something I can work with.
      • 2015-12-24 35853, 2015

      • Nyanko-sensei joined the channel
      • 2015-12-24 35815, 2015

      • D4RK-PH0ENiX has quit
      • 2015-12-24 35834, 2015

      • Leftmost
        CallerNo6, there's plenty of noise. I speak here, after all.
      • 2015-12-24 35824, 2015

      • Leo__Verto joined the channel
      • 2015-12-24 35836, 2015

      • MBJenkins
        Project musicbrainz-server_beta build #765: SUCCESS in 17 min: http://ci.musicbrainz.org/job/musicbrainz-server_…
      • 2015-12-24 35837, 2015

      • MBJenkins
        * Ulrich Klauer: Use our own encode_entities everywhere
      • 2015-12-24 35837, 2015

      • MBJenkins
        * Ulrich Klauer: Encode special characters in some template strings
      • 2015-12-24 35838, 2015

      • MBJenkins
        * Ulrich Klauer: Properly encode special characters in MB::S::Plugin::Diff
      • 2015-12-24 35838, 2015

      • MBJenkins
        * Ulrich Klauer: Re-encode raw edit data after client-side formatting
      • 2015-12-24 35848, 2015

      • Leo_Verto has quit
      • 2015-12-24 35849, 2015

      • MBJenkins
        Project musicbrainz-server_master build #253: STILL FAILING in 15 min: http://ci.musicbrainz.org/job/musicbrainz-server_…
      • 2015-12-24 35849, 2015

      • MBJenkins
        * Michael Wiencek: Don't exit if the overall script is running
      • 2015-12-24 35850, 2015

      • MBJenkins
        * Michael Wiencek: Don't load unnecessary data for JSON-LD
      • 2015-12-24 35850, 2015

      • MBJenkins
        * Michael Wiencek: Escape </ within <script> tags
      • 2015-12-24 35838, 2015

      • MBJenkins
        Project musicbrainz-server_beta build #766: SUCCESS in 17 min: http://ci.musicbrainz.org/job/musicbrainz-server_…
      • 2015-12-24 35839, 2015

      • MBJenkins
        * Michael Wiencek: Don't exit if the overall script is running
      • 2015-12-24 35839, 2015

      • MBJenkins
        * Michael Wiencek: Don't load unnecessary data for JSON-LD
      • 2015-12-24 35839, 2015

      • MBJenkins
        * Michael Wiencek: Escape </ within <script> tags
      • 2015-12-24 35803, 2015

      • D4RK-PH0ENiX joined the channel
      • 2015-12-24 35835, 2015

      • Nyanko-sensei has quit
      • 2015-12-24 35827, 2015

      • opatel99
        LordSputnik: To include the js script, would the jade template still be needed?
      • 2015-12-24 35848, 2015

      • MBJenkins
        Project musicbrainz-server_master build #254: STILL FAILING in 15 min: http://ci.musicbrainz.org/job/musicbrainz-server_…
      • 2015-12-24 35849, 2015

      • MBJenkins
        * Ulrich Klauer: MBS-8330: Undo HTML encoding before comparing names
      • 2015-12-24 35849, 2015

      • MBJenkins
        * Ulrich Klauer: Use the link_artist macro in artist credit diffs
      • 2015-12-24 35850, 2015

      • MBJenkins
        * Ulrich Klauer: Use the package-wide HTML::Tiny instance for diff
      • 2015-12-24 35813, 2015

      • MBJenkins
        Project musicbrainz-server_beta build #767: FAILURE in 17 min: http://ci.musicbrainz.org/job/musicbrainz-server_…
      • 2015-12-24 35813, 2015

      • MBJenkins
        * Michael Wiencek: Only show notes received in the past 3 months
      • 2015-12-24 35814, 2015

      • MBJenkins
        * Michael Wiencek: Add index on edit_note (post_time DESC, edit DESC)
      • 2015-12-24 35810, 2015

      • Nyanko-sensei joined the channel
      • 2015-12-24 35810, 2015

      • D4RK-PH0ENiX has quit
      • 2015-12-24 35813, 2015

      • typhoe has quit
      • 2015-12-24 35851, 2015

      • D4RK-PH0ENiX joined the channel
      • 2015-12-24 35803, 2015

      • typhoe joined the channel
      • 2015-12-24 35838, 2015

      • Nyanko-sensei has quit
      • 2015-12-24 35842, 2015

      • ruaok
        does a watched search server not tip over?
      • 2015-12-24 35824, 2015

      • triggerwarning has quit
      • 2015-12-24 35840, 2015

      • triggerwarning joined the channel
      • 2015-12-24 35821, 2015

      • MBJenkins
        Project musicbrainz-server_master build #255: STILL FAILING in 15 min: http://ci.musicbrainz.org/job/musicbrainz-server_…
      • 2015-12-24 35822, 2015

      • MBJenkins
        * 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?
      • 2015-12-24 35804, 2015

      • Nyanko-sensei joined the channel
      • 2015-12-24 35806, 2015

      • D4RK-PH0ENiX has quit
      • 2015-12-24 35855, 2015

      • bitmap
        Z903: what does perl -Mlocal::lib output
      • 2015-12-24 35838, 2015

      • Z903
        export PERL_LOCAL_LIB_ROOT="$PERL_LOCAL_LIB_ROOT:/home/toor/perl5"; export PERL_MB_OPT="--install_base /home/toor/perl5"; export PERL_MM_OPT="INSTALL_BASE=/home/toor/perl5"; export PERL5LIB="/home/toor/perl5/lib/perl5:$PERL5LIB"; export PATH="/home/toor/perl5/bin:$PATH";
      • 2015-12-24 35825, 2015

      • bitmap
        did you follow the step to add that to your .bashrc, and then source .bashrc?
      • 2015-12-24 35829, 2015

      • Z903
        It could also be my configuration for psql
      • 2015-12-24 35849, 2015

      • Z903
        Its a fresh install but i have never used it
      • 2015-12-24 35850, 2015

      • bitmap
        your local::lib path isn't in @INC there, which I assume is why it's not finding the module (if it installed correctly)
      • 2015-12-24 35845, 2015

      • Z903
        my bashrc contains "eval $( perl -Mlocal::lib )"
      • 2015-12-24 35849, 2015

      • bitmap
        and you ran source ~/.bashrc?