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

Generate all preview sizes for Imaginary #40731

Merged
merged 6 commits into from
Oct 9, 2023
Merged

Conversation

enoch85
Copy link
Member

@enoch85 enoch85 commented Sep 30, 2023

Based on discussions here: #38911 (comment)

This fixes the case were not all previews are generated, for example in the activity view: #38911 (comment)

Summary

TODO

  • ...

Checklist

A follow up on #40670

Based on discussions here: #38911 (comment)

This fixes the case were not all previews are generated, for example in the activity view: #38911 (comment)



Signed-off-by: Daniel Hansson <[email protected]>
@Chartman123

This comment was marked as resolved.

@solracsf solracsf removed their request for review October 1, 2023 08:17
@solracsf

This comment was marked as resolved.

@solracsf solracsf added the 3. to review Waiting for reviews label Oct 2, 2023
@solracsf solracsf added this to the Nextcloud 28 milestone Oct 2, 2023
@enoch85

This comment was marked as resolved.

@solracsf

This comment was marked as resolved.

@szaimen szaimen requested review from PVince81, juliusknorr, skjnldsv, a team, icewind1991 and nfebe and removed request for a team October 2, 2023 12:44
@enoch85
Copy link
Member Author

enoch85 commented Oct 4, 2023

FWIW, just tested this with a client that had 1000s of PDFs, everything is super fast and it generates everything.

I think we should close the other PR, let's have a vote. 👎 for no, and 👍 for keeping it. gogogo

@Chartman123
Copy link

Just go on and close it... The other fix would be lost by merging this here ;)

@enoch85
Copy link
Member Author

enoch85 commented Oct 4, 2023

Just go on and close it... The other fix would be lost by merging this here ;)

Done, but you should have voted 👎 ;)

Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

Tested by the community and confirmed to make things work but cannot judge the code changes

@enoch85
Copy link
Member Author

enoch85 commented Oct 4, 2023

@juliushaertl Would you mind having a look at this? It removes a function which makes everything work again.

@ChristophWurst
Copy link
Member

(partly) reverts the changes from #31864 so 👀 @skjnldsv

Copy link
Contributor

@nfebe nfebe left a comment

Choose a reason for hiding this comment

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

I am skeptical about deleting the performance related previews all together, the real question is *why does the deleted snippet or getSmallImagePreview not generate the previews?

Theoretically we should be able to generate smaller previews no?

@enoch85
Copy link
Member Author

enoch85 commented Oct 8, 2023

I am skeptical about deleting the performance related previews all together, the real question is what does the deleted snippet or getSmallImagePreview to generate the previews?

Theoretically we should be able to generate smaller previews no?

The function is buggy and doesn't make a huge impact when used.

Ok, if you're on a Raspberry Pi or some legacy hardware - sure, but not for the "normal" user of Nextcloud and certainly not Enterprise users.

@enoch85 enoch85 merged commit 06efe9f into master Oct 9, 2023
39 checks passed
@enoch85 enoch85 deleted the imaginary-performance branch October 9, 2023 09:54
@enoch85
Copy link
Member Author

enoch85 commented Oct 9, 2023

/backport to stable27

@backportbot-nextcloud
Copy link

The backport to stable27 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable27
git pull origin stable27

# Create the new backport branch
git checkout -b fix/foo-stable27

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123

# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable27

More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport

@enoch85
Copy link
Member Author

enoch85 commented Oct 9, 2023

@fenn-cs Can you please help me with the backport?

@nfebe
Copy link
Contributor

nfebe commented Oct 9, 2023

Sure @enoch85 would look into it.

@solracsf
Copy link
Member

solracsf commented Oct 9, 2023

/backport b2d105e to stable27

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.

6 participants