Skip to content

SRM id is missing in challenge-types endpoint #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
luizrrodrigues opened this issue May 23, 2020 · 9 comments
Closed

SRM id is missing in challenge-types endpoint #131

luizrrodrigues opened this issue May 23, 2020 · 9 comments

Comments

@luizrrodrigues
Copy link
Collaborator

https://api.topcoder-dev.com/v5/challenge-types

Currently this is hardcoded in the config file of community-app.
SRM_TYPE_ID: '7494c009-b425-45c5-923a-fd3a6ace3196',

Also if use this ID to filter by typeId, the return is empty:
https://api.topcoder-dev.com/v5/challenges?typeId=7494c009-b425-45c5-923a-fd3a6ace3196

@luizrrodrigues
Copy link
Collaborator Author

@rootelement

@rootelement
Copy link
Contributor

When we populated the challenge types, we pulled the values from:
https://api.topcoder-dev.com/v4/challenge-types

I don't see SRM as a type there. I could go into the db and pull it. Give me a little bit to dig around.

@rootelement
Copy link
Contributor

@ajefts can you weigh in here? I'm not sure what we're supposed to do if there's no type for an SRM.

@ajefts
Copy link
Member

ajefts commented May 29, 2020

There was never a concept of a type for SRMs in that data model since it's a completely separate data model. I know the current site uses https://api.topcoder.com/v4/srms/ to get SRMs.

@rootelement
Copy link
Contributor

Calls for SRMs will have to stay pointed at v4. This was supposed to be broken out into its own API but hasn't been.
cc: @cwdcwd

@luizrrodrigues
Copy link
Collaborator Author

@rootelement So to confirm here, we going to use API v5 to get SRMs?

@rootelement
Copy link
Contributor

rootelement commented Jun 2, 2020 via email

@rootelement
Copy link
Contributor

@sushilshinde This is not an api issue. This is a function of a different api. V4 will remain for now.

@sushilshinde
Copy link
Collaborator

Yes we agree on that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants