Commit c266e80
[chores] Improved WHOIS & Estimated Location features
Fixed multiple issues discovered during testing and review across WHOIS,
estimated location, and device IP handling, and consolidated QA and
maintenance changes.
Key changes:
- Ensure clear_last_ip command calls model save() to trigger signals and
cache invalidation
- Fix WHOIS and estimated location bugs, including shared location
recreation and modified timestamp updates
- Improve handling of unchanged IPs in DeviceChecksumView
- Rename and adjust migrations for estimated location settings
- Optimize queries and improve error handling (global HttpError handling)
- Improve UI (CSS/JS/templates) and documentation
- Improved efficiency of `manage_estimated_locations`
- Resolved N+1 query issue in `LocationListCreateView`
- Fixed HTTP request inside `transaction.atomic()`
- Shifted to Celery `send_task` to retain dependency flow
- Removed whois info from device list API to avoid N+1
- Simplified auto-naming of estimated locations
- Updated location update description messages
- Increased WHOIS refresh threshold to 90 days (~92% reduction in API calls)
- WHOIS data refresh now executes on transaction commit
- Skips `delete_whois_record` if `initial_ip_address` is None
- Fixed late-binding closure issue with `_initial_last_ip`
- Error notifications now only sent if `device_pk` is not None
- CIDR field length increased to accommodate IPv6
- Added `is_estimated` filter and column to admin
- Added `is_estimated` to `LocationSerializer` and API filter
- Improved test coverage
- Fixed parallel test 401 errors
- Several other improvements and fixes for problems found during testing
Co-authored-by: DragnEmperor <dragnemperor@gmail.com>
Co-authored-by: Gagan Deep <pandafy.dev@gmail.com>1 parent 703f288 commit c266e80
File tree
44 files changed
+1656
-719
lines changed- docs
- user
- openwisp_controller
- config
- api
- base
- controller
- management/commands
- migrations
- static/whois
- css
- js
- templates/admin/config
- tests
- whois
- tests
- geo
- api
- base
- estimated_location
- tests
- migrations
- templates/admin/geo/location
- tests
- tests/openwisp2
- sample_config/migrations
- sample_geo/migrations
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+1656
-719
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
| |||
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
19 | | - | |
20 | | - | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | | - | |
24 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
27 | 39 | | |
28 | | - | |
29 | | - | |
| 40 | + | |
30 | 41 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 42 | + | |
| 43 | + | |
34 | 44 | | |
35 | | - | |
36 | | - | |
| 45 | + | |
| 46 | + | |
37 | 47 | | |
38 | | - | |
39 | | - | |
| 48 | + | |
| 49 | + | |
40 | 50 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
44 | 55 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
49 | 59 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 60 | + | |
| 61 | + | |
53 | 62 | | |
54 | | - | |
55 | | - | |
56 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
57 | 66 | | |
58 | | - | |
59 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
60 | 73 | | |
61 | | - | |
62 | | - | |
63 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
64 | 77 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 78 | + | |
| 79 | + | |
69 | 80 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 81 | + | |
| 82 | + | |
73 | 83 | | |
74 | | - | |
75 | | - | |
| 84 | + | |
| 85 | + | |
76 | 86 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
81 | 115 | | |
82 | | - | |
83 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
84 | 119 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
817 | | - | |
| 817 | + | |
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
| |||
951 | 951 | | |
952 | 952 | | |
953 | 953 | | |
954 | | - | |
| 954 | + | |
955 | 955 | | |
956 | 956 | | |
957 | 957 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
777 | | - | |
778 | | - | |
| 777 | + | |
| 778 | + | |
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
| 799 | + | |
800 | 800 | | |
801 | 801 | | |
802 | | - | |
| 802 | + | |
803 | 803 | | |
804 | 804 | | |
805 | 805 | | |
| |||
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
811 | | - | |
| 811 | + | |
812 | 812 | | |
813 | 813 | | |
814 | | - | |
| 814 | + | |
815 | 815 | | |
816 | | - | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
817 | 820 | | |
818 | | - | |
819 | | - | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
820 | 833 | | |
821 | 834 | | |
822 | 835 | | |
| |||
826 | 839 | | |
827 | 840 | | |
828 | 841 | | |
829 | | - | |
830 | | - | |
831 | | - | |
| 842 | + | |
832 | 843 | | |
833 | | - | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
834 | 849 | | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
0 commit comments