-
Notifications
You must be signed in to change notification settings - Fork 35
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
DRAFT FOR FEEDBACK - Main b 21669 doc viewer file upload status per s3 events #14347
base: main
Are you sure you want to change the base?
DRAFT FOR FEEDBACK - Main b 21669 doc viewer file upload status per s3 events #14347
Conversation
…oc_viewer_file_upload_status_per_s3_events
Bundle StatsHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded
Removed
Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
|
pkg/handlers/internalapi/uploads.go
Outdated
f.Flush() | ||
} | ||
|
||
time.Sleep(4 * time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this delay, and the number of retries, be an environment setting or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will consider this for # of retries on upcoming changes.
useEffect(() => { | ||
if (fileStatus === 'ESTABLISHING') { | ||
new Promise((resolve) => { | ||
setTimeout(resolve, 5000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait 5 seconds and then say it's Loaded; is this going to be replaced with some other check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just mocked for now
…oc_viewer_file_upload_status_per_s3_events
B-21669 - Orders Edit- Document Viewer- Show Order viewer uploaded file
DRAFT
A mock-up for server-side events for future integration of S3 notification listeners. Publish/subscribe to the notification, send that "doc status" back to the client.
Please leave feedback and suggestions for properly structuring the "WriteReponse" call. Currently using a custom response to go around the generated type to keep open the response thread and respond over time (Server-side events).
Stepping away from this story for the time being to work on the lambda.
Summary
Is there anything you would like reviewers to give additional scrutiny?
this article explains more about the approach used.
Verification Steps for the Author
These are to be checked by the author.
Verification Steps for Reviewers
These are to be checked by a reviewer.
Setup to Run the Code
How to test
Frontend
officeApp
class or custommin-width
styling is used to hide any states the would not be visible to the user.Backend
Database
Any new migrations/schema changes:
Screenshots