-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Backend for reference metadata fetching #33494
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
Changes from 1 commit
650b809
de3e541
9d9c7f4
31be855
f58218d
0ce0d37
eaef568
68d0038
bee8fd2
a392235
80f6a58
1ab6698
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Signed-off-by: Julius Härtl <[email protected]>
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,7 @@ | |
|
|
||
| namespace OC\Core\Controller; | ||
|
|
||
| use OCP\AppFramework\Http\Response; | ||
| use OCP\Collaboration\Reference\IReferenceManager; | ||
| use OCP\AppFramework\Controller; | ||
| use OCP\AppFramework\Http; | ||
|
|
@@ -48,7 +49,7 @@ public function __construct(string $appName, IRequest $request, IReferenceManage | |
| * @PublicPage | ||
| * @NoCSRFRequired | ||
| */ | ||
| public function preview(string $referenceId) { | ||
| public function preview(string $referenceId): Response { | ||
| $reference = $this->referenceManager->getReferenceByCacheKey($referenceId); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't get a hit here locally so I don't have any previews. Is there something else needed to configure? Is a Redis required? Or is the method not loading the providers or something?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, would require redis/apcu in its current state. I'd need to think how we can make this work without, as currently we have no reference from the hashed reference that is used for the preview to the original one. |
||
| if ($reference === null) { | ||
| return new DataResponse('', Http::STATUS_NOT_FOUND); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.