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

Fix/media file class #168

Merged
merged 5 commits into from
May 12, 2021
Merged

Fix/media file class #168

merged 5 commits into from
May 12, 2021

Conversation

alexanderleegs
Copy link
Contributor

@alexanderleegs alexanderleegs commented May 3, 2021

This PR contains all the changes we require to support the nested images and files layout on the cms frontend.

kwajiehao added 4 commits May 3, 2021 16:26
This commit modifies the ImageFile class so that the base endpoint
reflects the nested directory of an image, instead of assuming that
the base endpoint is the top level 'images' directory
… targets

This commit updates the image upload endpoint to use the ImageFile
class type so that it's consistent with the image reading endpoint.
In doing so, we also allow users to create images in nested directories.
This commit updates the image renaming endpoint to use the ImageFile
class, and to deal with nested images.
@alexanderleegs alexanderleegs force-pushed the fix/imageFile-class branch from 9d8b937 to d8cff8c Compare May 3, 2021 08:26
Copy link
Contributor

@gweiying gweiying left a comment

Choose a reason for hiding this comment

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

lgtm!

* Feat: add mediaSubfolder class

* Feat: add routes for media subfolder creation, deletion, and renaming

* Fix: retrieve git tree recursively and filter for delete and rename

* Feat: add endpoints for file subfolders (#169)

* Feat: extend mediafile and mediasubfolder to handle files

* Feat: update documents endpoint

* Fix: throw error on unknown media type

* Nit: add comments for determining directory and file name

* Fix: throw correct conflict error for same file name
@alexanderleegs alexanderleegs changed the title Fix/image file class Fix/media file class May 12, 2021
@alexanderleegs alexanderleegs merged commit 5a73a89 into develop May 12, 2021
@alexanderleegs alexanderleegs deleted the fix/imageFile-class branch February 4, 2022 08:32
harishv7 pushed a commit that referenced this pull request Feb 17, 2023
* feat: modify ImageFile class to retrieve nested files

This commit modifies the ImageFile class so that the base endpoint
reflects the nested directory of an image, instead of assuming that
the base endpoint is the top level 'images' directory

* fix: update ImageFile creation method to accept nested directories as targets

This commit updates the image upload endpoint to use the ImageFile
class type so that it's consistent with the image reading endpoint.
In doing so, we also allow users to create images in nested directories.

* fix: update image renaming to handle nested image files

This commit updates the image renaming endpoint to use the ImageFile
class, and to deal with nested images.

* chore: rename ImageFile class to MediaFile`

* Feat new endpoints for media subfolders (#166)

* Feat: add mediaSubfolder class

* Feat: add routes for media subfolder creation, deletion, and renaming

* Fix: retrieve git tree recursively and filter for delete and rename

* Feat: add endpoints for file subfolders (#169)

* Feat: extend mediafile and mediasubfolder to handle files

* Feat: update documents endpoint

* Fix: throw error on unknown media type

* Nit: add comments for determining directory and file name

* Fix: throw correct conflict error for same file name

Co-authored-by: kwajiehao <[email protected]>
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