Evalai: Update method to store queue name in Challenge model

Created on 27 Mar 2019  路  8Comments  路  Source: Cloud-CV/EvalAI

Currently, we store the queue name for each challenge using something like this:

challenge_queue_name = "{}-{}-{}".format(challenge_title, challenge_pk, random_challenge_id)[:75]

Where the challenge title can be any string. But SQS does not allow special characters in the queue name and hence we should validate the queue name before storing it.

Deliverables

  • [ ] Write a utils function that generates a valid SQS queue name given a string as an input
  • [ ] Use the function written in the previous step to generate the queue name for a challenge
  • [ ] Write tests to check if the function created in the first step is robust enough
GSOC-2019 backend bug critical easy_to_fix good first issue

Most helpful comment

@tawAsh1 Go ahead. :)

All 8 comments

Can i work on this?

@tawAsh1 Go ahead. :)

Hi,

Is this issue resolved?

Hey @pushkalkatara , I think it is already been added here. Hence this issue can be closed @RishabhJain2018 @deshraj

Feel free to take another issue @pushkalkatara

@pushkalkatara but the tests still left for that function, so if you want then you can work on writing tests for it.

Thanks!

@Sanji515 The tests were also written in the pull requests. Due to conflicts, it was not merged and the PR was closed due to inactivity. Should I add the tests @deshraj?

Sure @pushkalkatara .

@RishabhJain2018 ive added the tests. please review #2450

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deshraj picture deshraj  路  6Comments

dhruvbatra picture dhruvbatra  路  4Comments

Jonathan-Livingston-Seagull picture Jonathan-Livingston-Seagull  路  5Comments

vkartik97 picture vkartik97  路  4Comments

usmanmuhd picture usmanmuhd  路  5Comments