Skip to content

Adjust/remove deprecated image preview #306

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

Open
wants to merge 7 commits into
base: next
Choose a base branch
from

Conversation

Martin-Rehr
Copy link
Contributor

Remove deprecated and non-maintained image preview functionality along with it's helper modules

@jonasbardino jonasbardino added the refactor Non-functional changes to simplify or clean up label Aug 11, 2025
enable_debug);
}

$.fn.refresh_fm_layout = refresh_fm_layout;
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't tell for certain from the context but I suppose this refresh is specific to the preview so that it can indeed go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well spotted after revisiting the code it seems like this one is actually non-preview specific.

@@ -961,7 +961,6 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR]
RewriteCond %{REQUEST_URI} ^/(images|assets|public|.well-known)/ [OR]
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/ [OR]
RewriteCond %{REQUEST_URI} ^/paraview/
Copy link
Contributor

Choose a reason for hiding this comment

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

This removal will likely break rewriting due to the trailing [OR] in the previous line.

@@ -1420,7 +1403,6 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR]
RewriteCond %{REQUEST_URI} ^/(images|assets|public|.well-known)/ [OR]
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/ [OR]
RewriteCond %{REQUEST_URI} ^/paraview/
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

@@ -2072,7 +2038,6 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
RewriteCond %{REQUEST_URI} ^/(wsgi|cgi)-bin/(autocreate|autologout|logout).py$ [OR]
RewriteCond %{REQUEST_URI} ^/(images|assets|public|.well-known|openid|cgi-sid)/ [OR]
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/ [OR]
RewriteCond %{REQUEST_URI} ^/paraview/
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

@@ -2674,7 +2623,6 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
RewriteCond %{REQUEST_URI} ^/(wsgi|cgi)-bin/(autocreate|autologout|logout).py$ [OR]
RewriteCond %{REQUEST_URI} ^/(images|assets|public|.well-known|openid|cgi-sid)/ [OR]
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/ [OR]
RewriteCond %{REQUEST_URI} ^/paraview/
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

@@ -3587,7 +3519,6 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
RewriteCond %{REQUEST_URI} ^/(wsgi|cgi)-bin/(autocreate|autologout|logout).py$ [OR]
RewriteCond %{REQUEST_URI} ^/(images|assets|public|.well-known|openid|cgi-sid)/ [OR]
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/ [OR]
RewriteCond %{REQUEST_URI} ^/paraview/
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

@@ -4185,7 +4100,6 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR]
RewriteCond %{REQUEST_URI} ^/(images|assets|public|.well-known)/ [OR]
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/ [OR]
RewriteCond %{REQUEST_URI} ^/paraview/
Copy link
Contributor

Choose a reason for hiding this comment

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

...and last copy of the same.

@@ -961,7 +961,6 @@ Alias /status-events.json "/home/mig/state/wwwpublic/status-events.json"
RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR]
RewriteCond %{REQUEST_URI} ^/(images|assets|public|.well-known)/ [OR]
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/ [OR]
RewriteCond %{REQUEST_URI} ^/paraview/
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a reminder that this fixture file needs all the same updates after fixing the [OR] issue above in the template.

for key in ('image_type', 'data_type'):
__type_map[key] = valid_alphanumeric

for key in ('offset', 'x_dimension', 'y_dimension', 'z_dimension'):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we may have other valid uses of the offset input arg, but AFAICT we do in fact have another duplicate offset handler in guess_type, so I guess it's alright.

Copy link
Contributor

@jonasbardino jonasbardino left a comment

Choose a reason for hiding this comment

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

Looks good and ready for merge as soon as the RewriteCondition comment issue is handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Non-functional changes to simplify or clean up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants