-
Notifications
You must be signed in to change notification settings - Fork 52
WIP Implement Forums Object #290
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
From @ThomasKranitsas in slack :
My Response:
How Challenge Forums get created: There’s a forum-challenge-processor that listens to the challenge create/update and resource create/delete and manages the challenges. So on challenge create, the forum processor will create the forum and api-PUT/PATCH the challenge with the details. This forum processor is aware of tasks and we can either surface “create forum?” in challenge manager, and/or ignore forum creation for tasks. |
From @jmgasper in slack:
My response: We don’t get that any kind of re-post notification. gotta figure that out |
Scenario:
Questions:
|
Another Question:
It's almost like when a challenge is created (by challenge manager, for example), the challenge manager should populate the discussions object (as listed above) but leave the URL blank. That way, it shows the challenge is expecting a destination to be inserted. Then that covers the previous scenario (the url will already be populated) and the task scenario (there would be no challenge discussion object in the discussions array) That does not cover the repost-challenge, removing old members scenario. |
I'm probably way off, but wouldn't a task just not generate a "Create challenge event" Or is it that the forum creation is listening to a create challenge event? |
A task is a task is a challenge is a challenge. Everything is a challenge, and every challenge fires a create/update event. The logic to ignore would need to be on the processor side. So either we "always create a forum for a challenge and never create a forum for a task" (as it is now) or we have some sort of way to signify that a challenge is waiting for a forum to be created. @cwdcwd thoughts? |
yeah I think you'll just want the processor that creates forums to ignore challenges tagged as tasks. |
Here's the flow as I understand it:
"challenge.discussions": [
{
"name": "My Forum Name",
"type": "challenge",
"provider": "vanilla"
}
]
This puts the onus to create or not create on the API side. |
PR: #309 |
This is implemented and deployed on the API side. |
We need to allow CRUD of Challenge Objects including a forums object to associate the forum for the UI.
Example additional property to the challenge object.
Options should be a non-required, non-validated array of key-value pairs
How a User Creates a Forum:
(From the comment below)
The challenge forum processor will pick up the challenge create event, check in the array if there is a
type: challenge
andprovider: vanilla
without a populated url property, create the forum, then PATCH the challenge to add the url.The forum processor listens for resource create/delete notifications and, if there's a
type: challenge
,provider: vanilla
discussion, will add/remove that user using the v5 resources api.Tasks
The text was updated successfully, but these errors were encountered: