-
-
Notifications
You must be signed in to change notification settings - Fork 185
[change] Reuse django-leaflet for dashboard map #709 #794
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
base: master
Are you sure you want to change the base?
Changes from 3 commits
ad5e8e6
7d5383e
6d600ec
75a0753
04ea4ff
003bb9a
fd36625
e409812
9bbc0c4
85db27e
9862322
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -588,15 +588,16 @@ class MapPageAdmin(MultitenantAdminMixin, admin.ModelAdmin): | |
|
|
||
| class Media: | ||
| js = [ | ||
| "monitoring/js/lib/netjsongraph.min.js", | ||
| "lib/netjsongraph/js/echarts.min.js", | ||
| "lib/netjsongraph/js/netjsongraph.echarts.min.js", | ||
| "monitoring/js/lib/leaflet.fullscreen.min.js", | ||
| ] | ||
| css = { | ||
| "all": [ | ||
| "monitoring/css/device-map.css", | ||
| "leaflet/leaflet.css", | ||
| "monitoring/css/leaflet.fullscreen.css", | ||
| "monitoring/css/netjsongraph.css", | ||
| "lib/netjsongraph/css/netjsongraph.css", | ||
| "lib/netjsongraph/css/netjsongraph-theme.css", | ||
|
Comment on lines
+592
to
+599
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Check for any remaining references to old netjsongraph bundle paths
# Check for old JS path references
echo "=== Checking for old netjsongraph.min.js references ==="
rg -n "netjsongraph\.min\.js" --type py --type html --type js -g '!*.min.js'
# Check for old CSS path references
echo -e "\n=== Checking for old monitoring/css/netjsongraph.css references ==="
rg -n "monitoring/css/netjsongraph\.css" --type py --type html
# Verify new paths exist or are documented
echo -e "\n=== Checking for new lib/netjsongraph path references ==="
fd -t f "netjsongraph.echarts.min.js"
fd -t f -p "lib/netjsongraph/css/netjsongraph.css"Repository: openwisp/openwisp-monitoring Length of output: 1070 🏁 Script executed: # Check the context around apps.py lines 378-381 to understand the scope
sed -n '375,385p' openwisp_monitoring/device/apps.py
# Check if admin.py is the only file with new paths, or if there are other updated files
echo "=== Searching for lib/netjsongraph references in .py files ==="
rg -n "lib/netjsongraph" --type py
# Verify the exact state in admin.py around the modified lines
echo -e "\n=== Admin.py context around lines 591-599 ==="
sed -n '589,601p' openwisp_monitoring/device/admin.pyRepository: openwisp/openwisp-monitoring Length of output: 1941 Critical: Asset migration is incomplete and will cause runtime failures. The admin.py Media class has been updated to reference assets from
Either migrate all asset references across apps.py, test files, and admin.py consistently, or verify that openwisp-utils has been integrated and the new assets are available. This PR cannot merge in its current state. 🤖 Prompt for AI Agents |
||
| "monitoring/css/monitoring.css", | ||
| ] | ||
| } | ||
|
|
||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,13 @@ def get_install_requires(): | |
| continue | ||
| # add line to requirements | ||
| requirements.append(line) | ||
|
|
||
|
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. Avoid unrelated changes. |
||
| # --- TEMPORARY HACK FOR CI TESTING --- | ||
| requirements.append( | ||
| "openwisp-utils @ git+https://github.com/kunalverma2512/" | ||
| "openwisp-utils.git@feature/517-add-netjsongraph-static" | ||
| ) | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
| return requirements | ||
|
|
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.