Skip to content
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

Implementing getAttachmentDownloadUrl #33

Merged
merged 4 commits into from
Oct 17, 2024
Merged

Conversation

mliao95
Copy link
Contributor

@mliao95 mliao95 commented Oct 17, 2024

Issue Number:

Description:

What are the changes? Why are we making them?

Implementing getAttachmentDownloadUrl + unit tests.

getAttachmentDownloadUrl will return the S3 download URL for an attachment in the case the user wants to handle the download logic themselves.


Functional backward compatibility:

Does this change introduce backwards incompatible changes? [YES/NO]

NO

Does this change introduce any new dependency? [YES/NO]

NO


Testing:

Is the code unit tested?

YES

Have you tested the changes with a sample UI (e.g. Android Mobile Chat Example)?

List manual testing steps:

  • Add Steps below:

Here are a list of manual test cases to run through:

  • Initiating chat and connecting with an agent
  • Retrieving transcript
  • Disconnecting from chat
  • Sending a message to the agent
    • See typing bubbles on agent side
    • See read/delivered receipt on client side
    • Receiving a message from the agent
    • See typing bubbles on client side
    • See read/delivered receipt on agent side
    • Sending an attachment to the agent (try .txt, .pdf, .jpg)
    • Preview the attachment on click
    • Receiving an attachment from the agent
    • Preview the attachment on click
  • Close the application (Without ending chat) → open app again → Start chat → Should Retrieve transcript from a previous chat session

@mliao95 mliao95 marked this pull request as ready for review October 17, 2024 16:06
@mliao95 mliao95 changed the title Mikeliao/get attachment url Implementing getAttachmentDownloadUrl Oct 17, 2024
@mliao95 mliao95 requested a review from agarwhi October 17, 2024 16:06
@@ -68,6 +70,7 @@ class AttachmentsManager @Inject constructor(
}

suspend fun completeAttachmentUpload(connectionToken: String, attachmentId: String) {
print("HIT!!")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove print statement

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@mliao95 mliao95 merged commit 3f27da5 into main Oct 17, 2024
4 checks passed
@mliao95 mliao95 deleted the mikeliao/get-attachment-url branch October 17, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants