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

Fixed updating file size, name and tags #587

Merged
merged 2 commits into from Nov 1, 2019
Merged

Fixed updating file size, name and tags #587

merged 2 commits into from Nov 1, 2019

Conversation

adrians5j
Copy link
Member

Related Issue

This PR brings a few fixes regarding the file manager UI and API:

  1. updating tags and file name now works correctly
  2. size would not be set correctly upon uploading files

Your solution

Fixing the mentioned issues required me to introduce changes on both UI and API sides.

On the API side, I removed the old updateFileByKey GQL field. It's not necessary anymore, updates are now made using the updateFile file and generic resolveUpdate resolver (in packages/commodo-graphql/src/crudResolvers.js). For the file size issue, I fixed the incorrect key (packages/api-files/src/plugins/resolvers/utils/getPresignedPostPayload.js).

Finally, the UI was then adapted for the changes made on the API side.

How Has This Been Tested?

Manual testing.

Screenshots (if relevant):

N/A

@adrians5j adrians5j added the bug label Nov 1, 2019
@adrians5j adrians5j self-assigned this Nov 1, 2019
Copy link
Collaborator

@Pavel910 Pavel910 left a comment

Choose a reason for hiding this comment

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

LG2M :)

@Pavel910 Pavel910 merged commit b5b6212 into webiny:master Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants