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

Use devcontainer with php v8.2 and readd preview images to tables #1393

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MI-KY
Copy link

@MI-KY MI-KY commented Sep 28, 2024

Modified the devcontainer.json to use a container with php v8.2 .
Readded thumbnailUrl and icon so that this data is not dropped anymore when a url to for example an image is saved. I hope this was not intentionally removed by #779 but the result seems to be that actually no preview is shown...

Sorry, I wanted to create two PRs but I had some problems because of DCO and I'm not used to this 🙂

Resolves #1392
Resolves #1375

CM and others added 2 commits September 28, 2024 15:15
Signed-off-by: Christoph Mair <c10@posteo.de>
Actually thumbnailUrl gets sent to the api but is dropped. Therefore no preview inside the table is possible anymore.

Signed-off-by: Christoph Mair <c10@posteo.de>
@MI-KY MI-KY changed the title Use devcontainer with php v8.2 instead of 8.0 Use devcontainer with php v8.2 and readd preview images to tables Sep 28, 2024
Copy link
Contributor

@enjeck enjeck left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -36,6 +36,8 @@ public function parseValue($value, ?Column $column = null): string {
if($data !== null) {
if (isset($data['resourceUrl'])) {
return json_encode(json_encode([
'thumbnailUrl' => $data['thumbnailUrl'],
Copy link
Contributor

Choose a reason for hiding this comment

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

I notice that it works for newly created image links, but pre-existing links do not show the previews. But we could handle this in a separate PR

Copy link
Author

Choose a reason for hiding this comment

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

You're right the change only affects new links because it seems that since this two lines have been missing every link written to the database lacks of a thumbnailUrl (at least in the last versions of tables)... So solving that would maybe need some lookup for links without a thumbnailUrl and then generating / searching the correct one (?).

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.

Development Container uses old php version Link to image does not show preview anymore
2 participants