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

Add socket.io.min.js.map file #39

Closed
phillxnet opened this issue Nov 20, 2023 · 4 comments
Closed

Add socket.io.min.js.map file #39

phillxnet opened this issue Nov 20, 2023 · 4 comments
Assignees

Comments

@phillxnet
Copy link
Member

phillxnet commented Nov 20, 2023

During test rpmbuild of rockstor-core testing branch PR: Update Django to latest 4.2 LTS ..." a new sensitivity regarding this file surfaced. Previous rpmbuilds for testing channel rockstor-core did not show this sensitivity.

It is proposed that we add this file to our testing branch in this repo to circumvent this new sensitivity and return to an rpmbuildable state.

Follow-up, in part, and map file matched to the changes made within testing branch in this repo in PR:
Update socket.io client lib #36 #37

Where

was introduced, and the old version of the map file removed.

Proposed new/matching map file:

Our existing (updated in #37) socket.io.min.js file does contain the following flag:

//# sourceMappingURL=socket.io.min.js.map

Which is thought to be triggering our newer Django collectstatic to flag the absence of this file, which is not normally required, and fail our rpmbuild process via the collectstatic step executed within the %check scriptlet.

@phillxnet
Copy link
Member Author

See sited rockstor-core PR comment: rockstor/rockstor-core#2751 (comment) for context.

@phillxnet phillxnet self-assigned this Nov 20, 2023
@phillxnet
Copy link
Member Author

The following Django upstream issue looks to be related: https://code.djangoproject.com/ticket/33353

@phillxnet
Copy link
Member Author

phillxnet commented Nov 20, 2023

An alternative approach here, given the upstream Django issue sited, is to edit our existing socket.io.min.js to remove its upstream provided:

//# sourceMappingURL=socket.io.min.js.map

Adding the associated map file does add quite the weight here (187 K) but it keep us away from custom edits of upstream libraries: which is far less ideal than just adding weight. Plus we have the following:

Add HTMX library

and the related rockstor-core issue of: rockstor/rockstor-core#2735

And our ultimate removal of socket.io use entirely via: Django Server Sent Events to provide live data requirements

phillxnet added a commit to phillxnet/rockstor-jslibs that referenced this issue Nov 20, 2023
Adds back socket.io.min.js.map file from:
https://unpkg.com/[email protected]/dist/socket.io.min.js.map
to appease new sensitivities in Django 4.x in rockstor-core
re collectstatic.
Upstream reference: https://code.djangoproject.com/ticket/33353
phillxnet added a commit that referenced this issue Nov 20, 2023
@phillxnet
Copy link
Member Author

Closing as:
Fixed by #40

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

No branches or pull requests

1 participant