Will %$edit give me different results than just dumping $edit? That seems unlikely..
nikki
well... how are you dumping it and what does it give?
navap
I'm using Data::Dumper and dumping it by using $c->log->info(Dumper($edit); in that function I linked above.
So when I view an individual edit I see the contents of that hash.
And when I do that there's no display_data key in the hash, yet when the template accesses the same hash it must have that key in it since the templates use things like [% edit.display_data.name %].
nikki
maybe it gets set later at some point?
navap
Yeah, but where it gets set is less important to me than actually taking a look at what it contains, which is why I wanted to know if it's possible to dump the hash from the template itself.
nikki
ohh, right.
nikki didn't quite understand what you wanted
navap
Ah, sorry.
hm I think I've figured out how the display_data key works.
nikki
oh?
navap
Is that an "oh, I'd like to know" or a "oh, cool"?
nikki
I think you can use [% USE Dumper; Dumper.dump_html(somevar) %] btw
it has a question mark :P it's I'd like to know
navap
Well the controller has `$c->model('Edit')->load_all($edit);` load_all then does `$edit->display_data($edit->build_display_data($loaded));` build_display_data loads the data from the specific entity/edit (e.g. MB::S::Edit::Artist::Create) and sticks it in the display_data key that's specified in MB::S::Edit
So now I can look at all the edit types in MB::S::Edit and see what the display_data key will contain.
The Dumper.dump_html didn't work out
nikki
ah :/
it works for me... maybe I've got more of the internet installed or something
navap
haha
Oh, my mistake..it did end up working.
I can't get indentation working though.
navap just sticks the output in <pre>
hmm I think there is some caching going on here..
The default Varname for Data::Dumper is "Var", I set it to "FOO" just to see if it was working (it was). I then removed that attribute and now the dump still uses FOO.
navap wonders if it's okay to hijack MBS-757 and make it generic across all entities.
...and what I meant by that link was that making it generic would just make it the same as that one, so I don't think it should be made generic, it should either be closed as a duplicate of the generic one or left as a specific one
ruaok joined the channel
dinog joined the channel
ijabz_ joined the channel
ijabz joined the channel
ijabz joined the channel
ruaok joined the channel
ijabz joined the channel
ijabz joined the channel
outsidecontext joined the channel
ianmcorvidae joined the channel
iarp joined the channel
aCiD2 joined the channel
VectorX joined the channel
VectorX
im trying to find a page in the wiki/ngs which i am sure i saw but cant seem to locate it, if i remember correctly there was a picture of the artist table with two other tables and an explanation of the data stored and how
interesting, looking at the blog and a user comment, why would vlc use mb for asin numbers when they can just query amazon, i mean they have an api for you to do it, just give the artist, track name and you got the asin
well thats after getting getting the cd information from mb
ruaok joined the channel
jdamcd joined the channel
ijabz joined the channel
outsidecontext joined the channel
in Sql.pm is there a setting that will show the queires executed aswell ?
with the debug information
VectorX joined the channel
aCiD2
VectorX: Run the server with SQL_DEBUG=1
like
$ SQL_DEBUG=1 script/musicbrainz_server.pl -r
the SQL_DEBUG environment variable turns on the statement timing and debugging
I think we've made more useful progress than perl6. :)
with perl5, nonetheless
hmm. "There was also a one-week exploration project called Sapphire; another rewrite of Perl 5 internals in September 2000, shortly after the announcement of Perl 6, Sapphire was mostly intended to be a sort of tracer bullet to learn things about an eventual real implementation."
like luks' NGS playground
aCiD2
I dunno, perl 6 is keeping it's head down, but it does a surprising amount. Then again, NGS does a surprising amount :)
VectorX
aCiD2 thanks that worked
ruaok
yep. we've come to exit, grow and need a re-write all in the span of the perl re-write. I think we're doing ok still.
navap: DB load is down if you want to pound in some edits
aCiD2
:)
navap
heh
ruaok
navap: are you hitting the DB with queries?
the load went back up.
VectorX
its either that or vlc, j/k
ianmcorvidae
heh
ruaok
I throttled the shit out of VLC to get the load down.
is there a reason stats.musicbrainz.org requires HTTP basic auth, given it tells you exactly what to put in? some sort of captcha stuff, or what?
Leftmost joined the channel
Leftmost
As far as tagging, since collections don't use entries in the name table, should I make a modified version of the find_entities sub for collections? (Also since they need privacy restrictions.)
ruaok
ianmcorvidae: spam
bots can't read text
ianmcorvidae
fair enough
navap
ruaok: Hitting the DB with queries? Not at all. I think you're over estimating how much load I was putting on the server :)
ruaok
quite probably. but nothing surprises me anymore, so I expect anything. :-)
ianmcorvidae
lord know's what atrocities I'll end up committing on the test server after I get my copy of the BWV as reference for Work-creation :P
erg knows*
(apparently bad at english this afternoon)
djce joined the channel
djce
ruaok: hey
ruaok
hey.
how are you?
djce
cool thanks :-)
how's .ca?
ruaok
warm'ish finally.
sunny for sure.
djce
\o/ been getting too much of the wet stuff recently? or just cold?
ruaok
cold mostly. the weather patterns is all screwy from el nino.
but I like it a little colder, so its actually been nice.
djce
your weather's only a couple of degrees hotter than us at the moment.
djce likes 18-25 deg C
anyhoo :-)
Moose.
ruaok
so I've heard. seems like many of my friends have been suffering.
dah, moose.
djce
Happy to do this tomorrow if you wish,
but hard for me to commit to anything between 5pm and 9pm uk time,
ruaok
9:30pm uk?
djce
'cos my pattern of work/travel isn't too fixed
ruaok
got it.
djce
can do, I expect. What would you need me to do, other than offer moral support?
ruaok
I was hoping you'd drive. :)
I think I am just as clueless as you are.
djce
Do you know what setting it is that you want to change?
and how?
ruaok
maybe even more so, since you've done more reading. :)(
djce
Hmm. I forgot it all :-(
chalk up +1 for tracking all this stuff in jira.
ruaok
should I forward your email back to you?
djce
I've got that mail
ruaok
Add a new project (by adding a line to /etc/project):