or id = any(array[1, 2, 3]) perhaps, I forget array syntax
warp
ah, right. '{ works.
ocharles
cool
warp
so how is that different from id IN (1, 2, 3) ?
ocharles
warp: to do that you need to generate n placeholders, and then provide n parameters
I find it much more convenient to provide 1 query parameter
warp
ok, so that's the only difference?
ocharles
yea
warp is just trying to understand it :)
it's especially simpler in this example though, because we repeat that set of ids twice
warp
sure
ocharles
so that code would get quite unweildly having to call ' . placeholders(@ids) . ' twice
warp
ocharles: I'm still not understanding something, that delete always seems a no-op.
ocharles
it will be a no-op if there are no release group types to merge
if you have rg1=(live, remix) and rg2=(live), one of those live attributes will be deleted
What we're doing here is filtering changing the bag of release group types over all release groups being merged into a set of release group types, and then we can safely move each release group type to be on the 'new' release gorup
warp
delete from release_group_secondary_type_join all those rows for which the secondary type does not occur within itself.
I'm parsing something wrong, or the query is wrong.
ocharles
oh, the query is indeed wrong (:
the where clause should be on release_group_secondary_type_join (secondary_type, release_group)
but distinct on just secondary_type
So...
WHERE ... AND (release_group, secondary_type) NOT IN (SELECT DISTINCT ON (secondary_type) relaese_group, secondary_type ... )
warp
ok, now I get a result when I select the query.
thanks :)
ocharles
cool
we got there in the end :)
thanks for reviewing my review :P
warp
haha, np.
VectorX
in the edit table, what do the values of status mean ?
DETAIL: Key (id)=(1) already exists. at lib/Sql.pm line 103, <FILE> line 1.
I always get this kind of stuff, and I never understand it.
warp blindly resets sequences.
warp jumps to conclusions :)
ocharles
warp: if you run all tests you have to create_test_db first
if you only run edits.t you should only have to run it once
warp
ocharles: I often get it when changing tests even after a create_test_db run. in this case the sequence wasn't a problem, I just mucked up the sql, hence "jumps to conclusions" :)
ocharles
heh
warp
ocharles: btw, the artist and label merges probably need similar changes to what I'm doing now.
(in Data::IPI::merge)
ocharles
yep
wanna go ahead and do that?
warp
but I'll do that in a separate patch.
ocharles
sounds good
warp
yeah, sure. I'm going to push this to code review now, then I can do those.
bah. new code review is very buggy.
ocharles
deleting your comments too?
warp
yes.
well, I pasted my comment, and I need to trigger a keystroke in the textarea before code review is aware that there is data there. just the paste event is not enough.
ocharles
yea
i found that
warp
I had some issues before where certain keys just didn't work in the textarea, I couldn't type some letters.
(but I just wrote/deployed an ~/.XCompose file which is also causing some issues, so I'm not always certain where the problem originates :)
warp takes a break.
adhawkins
ocharles: The image IDs for cover art, I assume they are always unique?
Or are they unique per release?
ocharles
adhawkins: they are unique
(over all ids)
adhawkins
Ok.
Just thinking about how to handle multiple images in flactag.
Currently it only has one per FLAC file.
However if I'm going to put all of them in, I need to be able to tie up which one is which when checking for changes.
Is there any concept of 'editing' an image? Or do they just get added and deleted?
ocharles
The metadata can be added, the artwork cannot
when we add support for replacing images, we will be using a new ID
adhawkins
Ok, so (for example) uploading a new front cover will cause a new ID to be generated?
ocharles
yea
adhawkins
Ok, think I've got it straight in my head then. Need to come up with a way of mapping the CAA image ID to an image in a FLAC file then.
There is a description field for each image, I guess I could hijack that.
Swarup joined the channel
Swarup
hi..after upgrade and startup of mb servers..getting this memcache error in logs though request is getting processed.. [error] Caught exception in engine "Can't locate object method "forget_dead_hosts" via package "Cache::Memcached::Fast" at local/lib/perl5/Cache/Memcached/Managed.pm line 765."
is it of any concern?
ocharles
Swarup: yea
Change the reference of Cache::Memcached::Fast to Cache::Memcached in your DBDefs
we should get that out our default config, because it's broken
Swarup
ha ok
hawke_1 joined the channel
ocharles
4 unit tests to go and then I can actually start trying to fix this bug
what a productive day...
andreypopp joined the channel
voiceinsideyou1 joined the channel
plaintext joined the channel
ianmcorvidae joined the channel
Leftmost joined the channel
ruaok joined the channel
ruaok joined the channel
ruaok joined the channel
Prophet5 joined the channel
ruaok
ruaok has changed the topic to: agenda: review, artist page fixes (ruaok)
Prophet5 joined the channel
ianmcorvidae
Mineo: since rika uses data dumps, nobody's set to AE -- if you need that on the slave DB I can make it happen, otherwise set it yourself on the static one
Mineo: and until yesterday nginx was off on rika since the databases were updating; should be back now
ruaok
ruaok has changed the topic to: agenda: review, artist page fixes (ruaok), forums (ruaok), bug triage (ruaok)
ocharles
ruaok: scheduling.ocharles is offline atm
ruaok
k
ocharles
just to make sure you're aware of that
ruaok
another good reason to address it in the meeting.
ocharles
though I could bring it up on my other server actually
alrighty
ruaok
have seen mr 2099 freaking out on our blog?
ocharles
si
ruaok
k
ocharles
don't really see point in responding
ruaok
yeah, its just froth.
but, a solution should be very high on your priorities list.
but I suspect you know that. >)
:)
ianmcorvidae: I'm kinda stuck with the forums box.
I ordered a raid card that should've been compatible with the box, but it didn't fit.
have you got any experience with raid cards?
ianmcorvidae
not really, no
the one I've ever tried to use didn't actually hold configurations :P