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

feat: add file size length to returned json #33068

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

KristinAoki
Copy link
Member

@KristinAoki KristinAoki commented Aug 21, 2023

Description

This PR adds an assets's length (aka file size) to the returned assets json. This change impacts Course Authors.

Supporting information

JIRA Ticket: TNL-10962

The file size of an asset needs to be returned with the asset info json. The file size will be used in the asset info modal.

Screenshot 2023-08-21 at 8 40 33 AM

Testing instructions

Use this branch of frontend-app-course-authoring for testing

  1. Navigate to the course authoring assets page
  2. Click on the vertical three dots on an assets and select info
  3. Check that the asset's file size section is populated

Deadline

None

Other information

frontend-app-course-authoring PR #573 is dependent on this PR.

Copy link
Contributor

@connorhaugh connorhaugh left a comment

Choose a reason for hiding this comment

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

I tried uploading and then GETing a pdf locally. It worked.

@KristinAoki KristinAoki merged commit 98cb27d into master Aug 21, 2023
42 checks passed
@KristinAoki KristinAoki deleted the KristinAoki/add-asset-file-size-to-json-response branch August 21, 2023 20:26
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

mehedikhan72 pushed a commit to mehedikhan72/edx-platform that referenced this pull request Aug 24, 2023
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