Skip Menu |

This queue is for tickets about the Net-Amazon-MechanicalTurk CPAN distribution.

Report information
The Basics
Id: 38110
Status: open
Priority: 0/
Queue: Net-Amazon-MechanicalTurk

People
Owner: Nobody in particular
Requestors: michele.r.berg [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.0
Fixed in: (no value)



Subject: QualificationRequirements parameter non-functional
Calls to LoadHITs with a QualificationRequirements parameter do not result in the creation of a HIT with that Qualification Requirement. This has been attempted with both the standard QRs and custom-created QRs. There is no documentation on the module for the required format of this parameter, but after reading the source code and the documentation on the mTurk site for RegisterHITType, which appears to be where this process is breaking down, I believe I am passing it correctly. After inserting a dumper to warn within both LoadHITs.pm and BulkSupport.pm, the contents of $createHITTypeProperties are: $VAR1 = { 'QualificationRequirements' => { 'Comparator' => 'EqualTo', 'QualificationTypeId' => '00000000000000000060', 'IntegerValue' => '1' }, 'Reward' => { 'Amount' => '0.05', 'CurrencyCode' => 'USD' }, 'AssignmentDurationInSeconds' => '3600', 'AutoApprovalDelayInSeconds' => '2419200', 'Description' => 'Provide the URL of a Freebase image of a celebrity headshot.', 'Title' => 'Celebrity Headshots', 'Keywords' => 'celebrity headshot picture image star logo freebase' }; This results in the successful creation of a HIT, but the HIT does not have a qualification requirement on it. I have verified this both manually and with calls to GetHITsForQualificationType, which returns its NumResults as 0. Sadly, I don't know the mTurk API well enough to suggest a patch, but I'm hopeful the module's creator/maintainer does. Running the most current version of the module, on Perl 5.8.8, on Mac Leopard.
From: randy+bitcard.org [...] dontknow.org
Does it work with "QualificationRequirement" rather than "QualificationRequirements" ? http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2008-04-01/ApiReference_CreateHITOperation.html indicates without the s. On Fri Aug 01 15:17:02 2008, michele.r.berg@gmail.com wrote: Show quoted text
> After inserting a dumper to warn within both LoadHITs.pm and > BulkSupport.pm, the contents of $createHITTypeProperties are: > $VAR1 = { > 'QualificationRequirements' => { > 'Comparator' => 'EqualTo', > 'QualificationTypeId' => > '00000000000000000060', > 'IntegerValue' => '1' > }, > 'Reward' => { > 'Amount' => '0.05', > 'CurrencyCode' => 'USD' > }, > 'AssignmentDurationInSeconds' => '3600', > 'AutoApprovalDelayInSeconds' => '2419200', > 'Description' => 'Provide the URL of a Freebase image of a > celebrity headshot.', > 'Title' => 'Celebrity Headshots', > 'Keywords' => 'celebrity headshot picture image star logo > freebase' > }; > > > This results in the successful creation of a HIT, but the HIT does not > have a qualification requirement on it. I have verified this both > manually and with calls to GetHITsForQualificationType, which returns > its NumResults as 0. > > Sadly, I don't know the mTurk API well enough to suggest a patch, but > I'm hopeful the module's creator/maintainer does. > > Running the most current version of the module, on Perl 5.8.8, on Mac > Leopard.
From: DontKnow73
Does it work with "QualificationRequirement" rather than "QualificationRequirements" ? http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2008-04-01/ApiReference_CreateHITOperation.html indicates without the s. On Fri Aug 01 15:17:02 2008, michele.r.berg@gmail.com wrote: Show quoted text
> After inserting a dumper to warn within both LoadHITs.pm and > BulkSupport.pm, the contents of $createHITTypeProperties are: > $VAR1 = { > 'QualificationRequirements' => { > 'Comparator' => 'EqualTo', > 'QualificationTypeId' => > '00000000000000000060', > 'IntegerValue' => '1' > }, > 'Reward' => { > 'Amount' => '0.05', > 'CurrencyCode' => 'USD' > }, > 'AssignmentDurationInSeconds' => '3600', > 'AutoApprovalDelayInSeconds' => '2419200', > 'Description' => 'Provide the URL of a Freebase image of a > celebrity headshot.', > 'Title' => 'Celebrity Headshots', > 'Keywords' => 'celebrity headshot picture image star logo > freebase' > }; > > > This results in the successful creation of a HIT, but the HIT does not > have a qualification requirement on it. I have verified this both > manually and with calls to GetHITsForQualificationType, which returns > its NumResults as 0. > > Sadly, I don't know the mTurk API well enough to suggest a patch, but > I'm hopeful the module's creator/maintainer does. > > Running the most current version of the module, on Perl 5.8.8, on Mac > Leopard.
Subject: Re: [rt.cpan.org #38110] QualificationRequirements parameter non-functional
Date: Fri, 1 Aug 2008 15:56:44 -0500
To: bug-Net-Amazon-MechanicalTurk [...] rt.cpan.org
From: "Michele Berg" <michele.r.berg [...] gmail.com>
No. Within BulkSupport.pm there is an alias mapping that requires the use of the plural. I've tried this in all these following ways. None of them produce a HIT with a qualification requirement, but none of them returns an error, either. $VAR1 = { 'QualificationRequirements' => { 'Comparator' => 'EqualTo', 'QualificationTypeId' => '00000000000000000060', 'IntegerValue' => '1' }, 'Reward' => { 'Amount' => '0.05', 'CurrencyCode' => 'USD' }, 'AssignmentDurationInSeconds' => '3600', 'AutoApprovalDelayInSeconds' => '2419200', 'Description' => 'Provide the URL of a Freebase image of a celebrity headshot.', 'Title' => 'Celebrity Headshots', 'Keywords' => 'celebrity headshot picture image star logo freebase' }; $VAR1 = { 'QualificationRequirements' => [ '00000000000000000060', 'EqualTo', '1' ], 'Reward' => { 'Amount' => '0.05', 'CurrencyCode' => 'USD' }, 'AssignmentDurationInSeconds' => '3600', 'AutoApprovalDelayInSeconds' => '2419200', 'Description' => 'Provide the URL of a Freebase image of a celebrity headshot.', 'Title' => 'Celebrity Headshots', 'Keywords' => 'celebrity headshot picture image star logo freebase' }; $VAR1 = { 'QualificationRequirements' => [ { 'Comparator' => 'EqualTo', 'QualificationTypeId' => '00000000000000000060', 'IntegerValue' => '1' } ], 'MaxAssignments' => '1', 'AssignmentDurationInSeconds' => '3600', 'LifetimeInSeconds' => '345600', 'Keywords' => 'celebrity headshot picture image star logo freebase', 'Title' => 'Celebrity Headshots', 'Reward' => { 'Amount' => '0.05', 'CurrencyCode' => 'USD' }, 'Description' => 'Provide the URL of a Freebase image of a celebrity headshot.', 'AutoApprovalDelayInSeconds' => '2419200', 'RequesterAnnotation' => 'Round 14' }; $VAR1 = { 'QualificationRequirements' => { 'QualificaionRequirement' => { 'Comparator' => 'EqualTo', 'QualificationTypeId' => '00000000000000000060', 'IntegerValue' => '1' } }, 'MaxAssignments' => '1', 'AssignmentDurationInSeconds' => '3600', 'LifetimeInSeconds' => '345600', 'Keywords' => 'celebrity headshot picture image star logo freebase', 'Title' => 'Celebrity Headshots', 'Reward' => { 'Amount' => '0.05', 'CurrencyCode' => 'USD' }, 'Description' => 'Provide the URL of a Freebase image of a celebrity headshot.', 'AutoApprovalDelayInSeconds' => '2419200', 'RequesterAnnotation' => 'Round 14' }; $VAR1 = { 'QualificationRequirements' => [ { 'QualificationRequirement' => { 'Comparator' => 'EqualTo', 'QualificationTypeId' => '00000000000000000060', 'IntegerValue' => '1' } } ], 'MaxAssignments' => '1', 'AssignmentDurationInSeconds' => '3600', 'LifetimeInSeconds' => '345600', 'Keywords' => 'celebrity headshot picture image star logo freebase', 'Title' => 'Celebrity Headshots', 'Reward' => { 'Amount' => '0.05', 'CurrencyCode' => 'USD' }, 'Description' => 'Provide the URL of a Freebase image of a celebrity headshot.', 'AutoApprovalDelayInSeconds' => '2419200', 'RequesterAnnotation' => 'Round 14' }; On Fri, Aug 1, 2008 at 2:43 PM, R A via RT < bug-Net-Amazon-MechanicalTurk@rt.cpan.org> wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=38110 > > > > Does it work with "QualificationRequirement" rather than > "QualificationRequirements" ? > > > http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2008-04-01/ApiReference_CreateHITOperation.html > indicates without the s. > > On Fri Aug 01 15:17:02 2008, michele.r.berg@gmail.com wrote: >
> > After inserting a dumper to warn within both LoadHITs.pm and > > BulkSupport.pm, the contents of $createHITTypeProperties are: > > $VAR1 = { > > 'QualificationRequirements' => { > > 'Comparator' => 'EqualTo', > > 'QualificationTypeId' => > > '00000000000000000060', > > 'IntegerValue' => '1' > > }, > > 'Reward' => { > > 'Amount' => '0.05', > > 'CurrencyCode' => 'USD' > > }, > > 'AssignmentDurationInSeconds' => '3600', > > 'AutoApprovalDelayInSeconds' => '2419200', > > 'Description' => 'Provide the URL of a Freebase image of a > > celebrity headshot.', > > 'Title' => 'Celebrity Headshots', > > 'Keywords' => 'celebrity headshot picture image star logo > > freebase' > > }; > > > > > > This results in the successful creation of a HIT, but the HIT does not > > have a qualification requirement on it. I have verified this both > > manually and with calls to GetHITsForQualificationType, which returns > > its NumResults as 0. > > > > Sadly, I don't know the mTurk API well enough to suggest a patch, but > > I'm hopeful the module's creator/maintainer does. > > > > Running the most current version of the module, on Perl 5.8.8, on Mac > > Leopard.
> > >

Message body is not shown because it is too large.

Subject: Re: [rt.cpan.org #38110] QualificationRequirements parameter non-functional
Date: Fri, 1 Aug 2008 16:02:29 -0500
To: bug-Net-Amazon-MechanicalTurk [...] rt.cpan.org
From: "Michele Berg" <michele.r.berg [...] gmail.com>
Ah, dangit, I found the error. Here's your patch: change line 29 in BulkSupport.pm from: QualificationRequirements => [qw{ qualificationrequirements } To: QualificationRequirement => [qw{ qualificationrequirement } yeah, seriously, that's it. On Fri, Aug 1, 2008 at 3:56 PM, Michele Berg <michele.r.berg@gmail.com>wrote: Show quoted text
> No. Within BulkSupport.pm there is an alias mapping that requires the use > of the plural. > > I've tried this in all these following ways. None of them produce a HIT > with a qualification requirement, but none of them returns an error, either. > > $VAR1 = { > 'QualificationRequirements' => { > 'Comparator' => 'EqualTo', > 'QualificationTypeId' => > '00000000000000000060', > 'IntegerValue' => '1' > }, > 'Reward' => { > 'Amount' => '0.05', > 'CurrencyCode' => 'USD' > }, > 'AssignmentDurationInSeconds' => '3600', > 'AutoApprovalDelayInSeconds' => '2419200', > 'Description' => 'Provide the URL of a Freebase image of a > celebrity headshot.', > 'Title' => 'Celebrity Headshots', > 'Keywords' => 'celebrity headshot picture image star logo > freebase' > }; > > > $VAR1 = { > 'QualificationRequirements' => [ > '00000000000000000060', > 'EqualTo', > '1' > ], > 'Reward' => { > 'Amount' => '0.05', > 'CurrencyCode' => 'USD' > }, > 'AssignmentDurationInSeconds' => '3600', > 'AutoApprovalDelayInSeconds' => '2419200', > 'Description' => 'Provide the URL of a Freebase image of a > celebrity headshot.', > 'Title' => 'Celebrity Headshots', > 'Keywords' => 'celebrity headshot picture image star logo > freebase' > }; > > > $VAR1 = { > 'QualificationRequirements' => [ > { > 'Comparator' => 'EqualTo', > 'QualificationTypeId' => > '00000000000000000060', > 'IntegerValue' => '1' > } > ], > 'MaxAssignments' => '1', > 'AssignmentDurationInSeconds' => '3600', > 'LifetimeInSeconds' => '345600', > 'Keywords' => 'celebrity headshot picture image star logo > freebase', > 'Title' => 'Celebrity Headshots', > 'Reward' => { > 'Amount' => '0.05', > 'CurrencyCode' => 'USD' > }, > 'Description' => 'Provide the URL of a Freebase image of a > celebrity headshot.', > 'AutoApprovalDelayInSeconds' => '2419200', > 'RequesterAnnotation' => 'Round 14' > }; > > $VAR1 = { > 'QualificationRequirements' => { > 'QualificaionRequirement' => { > > 'Comparator' => 'EqualTo', > > 'QualificationTypeId' => '00000000000000000060', > > 'IntegerValue' => '1' > } > }, > 'MaxAssignments' => '1', > 'AssignmentDurationInSeconds' => '3600', > 'LifetimeInSeconds' => '345600', > 'Keywords' => 'celebrity headshot picture image star logo > freebase', > 'Title' => 'Celebrity Headshots', > 'Reward' => { > 'Amount' => '0.05', > 'CurrencyCode' => 'USD' > }, > 'Description' => 'Provide the URL of a Freebase image of a > celebrity headshot.', > 'AutoApprovalDelayInSeconds' => '2419200', > 'RequesterAnnotation' => 'Round 14' > }; > > $VAR1 = { > 'QualificationRequirements' => [ > { > 'QualificationRequirement' => > { > > 'Comparator' => 'EqualTo', > > 'QualificationTypeId' => '00000000000000000060', > > 'IntegerValue' => '1' > > } > } > ], > 'MaxAssignments' => '1', > 'AssignmentDurationInSeconds' => '3600', > 'LifetimeInSeconds' => '345600', > 'Keywords' => 'celebrity headshot picture image star logo > freebase', > 'Title' => 'Celebrity Headshots', > 'Reward' => { > 'Amount' => '0.05', > 'CurrencyCode' => 'USD' > }, > 'Description' => 'Provide the URL of a Freebase image of a > celebrity headshot.', > 'AutoApprovalDelayInSeconds' => '2419200', > 'RequesterAnnotation' => 'Round 14' > }; > > > > On Fri, Aug 1, 2008 at 2:43 PM, R A via RT < > bug-Net-Amazon-MechanicalTurk@rt.cpan.org> wrote: >
>> <URL: http://rt.cpan.org/Ticket/Display.html?id=38110 > >> >> >> Does it work with "QualificationRequirement" rather than >> "QualificationRequirements" ? >> >> >> http://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2008-04-01/ApiReference_CreateHITOperation.html >> indicates without the s. >> >> On Fri Aug 01 15:17:02 2008, michele.r.berg@gmail.com wrote: >>
>> > After inserting a dumper to warn within both LoadHITs.pm and >> > BulkSupport.pm, the contents of $createHITTypeProperties are: >> > $VAR1 = { >> > 'QualificationRequirements' => { >> > 'Comparator' => 'EqualTo', >> > 'QualificationTypeId' => >> > '00000000000000000060', >> > 'IntegerValue' => '1' >> > }, >> > 'Reward' => { >> > 'Amount' => '0.05', >> > 'CurrencyCode' => 'USD' >> > }, >> > 'AssignmentDurationInSeconds' => '3600', >> > 'AutoApprovalDelayInSeconds' => '2419200', >> > 'Description' => 'Provide the URL of a Freebase image of a >> > celebrity headshot.', >> > 'Title' => 'Celebrity Headshots', >> > 'Keywords' => 'celebrity headshot picture image star logo >> > freebase' >> > }; >> > >> > >> > This results in the successful creation of a HIT, but the HIT does not >> > have a qualification requirement on it. I have verified this both >> > manually and with calls to GetHITsForQualificationType, which returns >> > its NumResults as 0. >> > >> > Sadly, I don't know the mTurk API well enough to suggest a patch, but >> > I'm hopeful the module's creator/maintainer does. >> > >> > Running the most current version of the module, on Perl 5.8.8, on Mac >> > Leopard.
>> >> >>
>

Message body is not shown because it is too large.