-
Notifications
You must be signed in to change notification settings - Fork 51
Add Attachments to the challenge specification #917
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
Challenge API supports Attachments. You'll need to upload through the UI via the Filestack widget into the S3 bucket, then submit that s3 URL as the attachment URL. Then the challenge api will handle security and retrieval of the attachment. |
Thanks, @rootelement. This is how we implement it now in Work Manager. I only had an issue with creating attachments, as it didn't allow S3 bucket that I used see #737 (comment). But I guess you've already whitelisted the bucket for me, as I contacted Thomas for this. Would give some time for the deployment and try it again.
|
- Support drag & drop for multiple attachments ref issue topcoder-platform#917
@vikasrohit file uploading is done via PR #931 See demo video: https://monosnap.com/file/I4B4UsRVCtJBQv1wzraQwwvkcvibNF Though there is some issue with config, so I use the incorrect FileStack/AWS bucket config, because it doesn't work for me with the correct one. As was clarified by @rootelement (on Slack) we have to upload challenge attachments to But if I only change the bucket to But Challenge API doesn't allow creating attachments with So as result I upload files to This might lead to the next issues I have:
So we have to find out why we cannot upload files to |
@rootelement @mtwomey can you guys help us here? |
I've reached out to Guna to fix the s3 bucket. @vikasrohit this is exactly like how the file upload in community app works. The idea is using the Filestack Dev key to upload to the Matt and I will look into uploading to a workflow so things are virus scanned automatically. I will confirm here when Guna has fixed the security issue. |
@rootelement Do we have confirmation for S3 bucket? @maxceem can you please give it a try in case it has been fixed? |
@vikasrohit it's still forbidden for |
@vikasrohit Uploading attachments work well now end-to-end now. There is only one issue with Challenge API when adding multiple attachments at once:
See demo video https://monosnap.com/file/mVqe0igPbDIa68bUepKwRujaTU0mQN Example challenge I've logged an issue on Challenge API topcoder-platform/challenge-api#348. |
@maxceem I am merging PR now as it seems the issue topcoder-platform/challenge-api#348 is fixed. |
@vikasrohit looks like something is not configured properly on DEV. When I'm trying to add attachments I'm getting errors from AWS services I guess: |
@vikasrohit locally the issue above is not reproducible and works good for me: The endpoint in challenge API has changed, so we would have to update UI code first before attachments creation would work. So I've reverted the PR #1035 for now, just in case we couldn't update it before the Jan 15th release. |
Moving it out to next milestone after Project Defaults shape up project as we are not able to get it working in production. We need latest challenge api in production to get it working. fyi @acshields |
@vikasrohit - noted. |
@vikasrohit looks like Challenge API has been deployed to PROD topcoder-platform/challenge-api@master...develop so we might give it another try. |
Yep, we can. But I would like to work on it only when we have its consumers i.e. some app is using the attachments. |
@acshields @rootelement do you know if Community/Forums app is already have code or plans to use the challenge Attachments? |
I believe Community App will read attachments. I think that needs to be tested. Forums uses their own attachments mechanism, but i don't believe they're reading challenge-api attachments at all. The security on the endpoint for attachments requires you're registered on the challenge as a submitter (or above... copilot, manager, observer) to get the attachments. |
Okay, thanks for the updates @rootelement. @acshields let us know how you want to prioritize it, IMO, we should do it once we have confirmation on the usage of attachments. |
@vikasrohit - for my clarity, when you say confirmation on the usage of attachments, are you referring to the forums usage of attachments? |
I meant any kind of usage of the challenge attachments. I am not sure where exactly we want to consume the attachments of the challenge, but what I want to say is that we should retest this feature and deploy to prod when we know there is some consumer of this feature whether it is Community app or forums. |
@acshields moving it out from bug fix cycle. |
@vikasrohit - noted. Right now, I have this as an aspect of the new UI implementation for WM. If that project pitch gets accepted for the next round, we could group this into that effort. |
@phead198708 please assign to me |
@vikasrohit @acshields can you provide the new UI implementation? |
Sorry @yoution I guess this issue is not ready yet. |
As API already supports it, we have to support adding attachments for the challenge specification.
FYI @vikasrohit
The text was updated successfully, but these errors were encountered: