-
Notifications
You must be signed in to change notification settings - Fork 0
[$300] Update the challenge object after forum created in processor #51
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
Comments
Contest https://www.topcoder.com/challenges/30144037 has been created for this ticket. |
Contest https://www.topcoder.com/challenges/30144037 has been updated - it has been assigned to obog. |
@jmgasper Not quite everything is clear. Example:
It's clear, no questions.
Will there be only one object with type='challenge' and provider='vanilla'?
|
@jmgasper Don't have permissions to patch a challenge. Could you please ask Topcoder team to grant permissions? |
If we don't get a
Yes, I think that makes sense
I've asked Topcoder
Yep, but if you run into any issues, let me know and I'll log things so we track them, thanks! |
@jmgasper Please apply PRs: topcoder-platform/challenge-forum-processor#31 AssumptionImplemented for 'one object with type='challenge' and provider='vanilla' TestingI pushed the code. Couldn't test updating a challenge due to Forbidden Error. |
@atelomycterus - The scopes have been updated to:
|
@jmgasper It isn't working. Got 'Not allowed to perfom this action!' for Put/Patch methods. I tested with a generated token Postman results with this token: Put the same object - Not allowed |
@rootelement ☝️ Any thoughts? |
@atelomycterus - I'm discussing with TC admins. Sorry for the trouble. |
@ThomasKranitsas - Any thoughts on why the PUT might fail? |
@jmgasper The API works fine. Your token is probably invalid (missing scopes). Please check here: |
@atelomycterus - Can you provide a full copy / paste of the payload being sent in the PUT please? |
@jmgasper I can send 'Patch'/'Put' requests but I see some issues: PUTMy changes:
The full payload:
The result:
PATCHMy payload:
|
@rootelement ☝️ |
I see the PR for supporting forum/discussions is not yet merged topcoder-platform/challenge-api#309 which means you can't test it yet |
@atelomycterus - We made some additional tweaks, and this should be working now (at least it did in my testing using the payload above). Can you validate please? |
@jmgasper Thanks! Please apply PR: topcoder-platform/challenge-forum-processor#32. TestingNotesIt throws 403 Error if 'url' contains 'localhost' or '127.0.0.1'. It's confusing because the token is valid but the status meaning access to the requested resource is forbidden for some reason. |
Payment task has been updated: https://software.topcoder.com/review/actions/ViewProjectDetails?pid=30144037 |
After we've created the group / forum for a challenge, we need to update the challenge object to contain a reference back to the forum created:
So you should be able to POST/PUT/PATCH with the challenge object as laid out in this git issue:
topcoder-platform/challenge-api#290
More information on the format is here: topcoder-platform/challenge-api#290 (comment)
From Topcoder:
The text was updated successfully, but these errors were encountered: