-
Notifications
You must be signed in to change notification settings - Fork 109
Refactor attachment loading #5042
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
271a59a
refactor(AttachmentService): Some code style cleanup
mejo- df3e4df
chore(attachments): Remove support for obsolete `text://` format
mejo- 8c1c6e8
feat(attachments): API endpoint to get list of attachments for a docu…
mejo- 73cb49b
chore(attachments): Remove obsolete metadata API endpoint
mejo- 153a85f
feat(attachments): Use getAttachmentList API endpoint in resolver
mejo- 680ca1d
fix(attachment): Remove candidate logic from ImageView node
mejo- 86e2b97
fix(attachments): Fix some issues with the showimage modal
mejo- b274e37
chore(attachments): Remove obsolete code
mejo- a2813ae
feat(editor): Allow to pass fileId to MarkdownContentEditor
mejo- bd54a68
feat(attachments): Allow to get attachments without document session
mejo- d15781c
chore(attachments): Remove special-handling for preview URLs
mejo- e4108d4
fix(attachments): Open non-image attachments in viewer or download
mejo- 98ba0de
fix(AttachmentController): Set fileName of returned attachments
mejo- dade37e
chore(composer): Update autoloader maps
mejo- 7743591
fix(attachments): Fix encoding of attachment URI component
mejo- ec91074
test(cy): Test to open image in modal and download attachment
mejo- b01c547
chore(middleware): Rename to RequireDocumentSessionOrUserOrShareToken
mejo- a1f8308
fix(attachments): use `getRelativePath` from userFolder for `davPath`
mejo- 3ce2e44
test(AttachmentResolver): Refactor jest tests after parent class refa…
mejo- 6796170
fix(attachments): Show all loaded images in ShowImageModal
mejo- c7e0cf0
fix(SessionMiddleware): Check if user/share have access to document
mejo- 978cbc6
fix(AttachmentResolver): Require either fileId or session
mejo- 77a0d4a
reactor(ImageView): Simplify attachmentType/isMediaAttachment logic
mejo- File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
lib/Middleware/Attribute/RequireDocumentSessionOrUserOrShareToken.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <?php | ||
|
|
||
| namespace OCA\Text\Middleware\Attribute; | ||
|
|
||
| use Attribute; | ||
|
|
||
| #[Attribute(Attribute::TARGET_METHOD)] | ||
| class RequireDocumentSessionOrUserOrShareToken { | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.