-
Notifications
You must be signed in to change notification settings - Fork 79
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
[bug] Geographic map is broken after updating dependencies #244
Comments
@nemesifier Actually it was related to the Inside // other imports
import { ScatterChart } from 'echarts/charts'; // this needs to be imported separately
class NetJSONGraphRender {
echartsSetOption(customOption, self) {
// defining configs, echartsLayer and commonOption
echarts.use([ScatterChart]); // necessary use
// ...
}
// ...
} With this change, the geographic map works fine now: Speaking of general tests for detecting these kinds of errors,
I can make a PR for a short term fix of the geographic map one if you want. |
@Shiva953 Great it works!! but could you please check your code, after changing the code that you mentioned the map does not look like as previously the dots were missing at the end in my OS. |
A typical test is opening the page and verifying that some elements that we expect to be there is really there.
A new file in this case is better, as the file grows we split it into multiple files to avoid working with huge files. We have JS browser tests in openwisp-wifi-login-pages, here it should be easier to run these type of tests because there's no server side app needed.
Sure! |
Fixes the breaking geographic map caused as a result of updating the dependencies, especially the echarts one. Fixes openwisp#244
I did some manual testing after merging #243 and it turns out the geographic map is now broken, see below for the error details.
We need to add a basic browser test which is able to detect this failure so we're protected from similar errors in the future.
If we cannot find a solution quickly we'll need to rollback the recent changes.
The text was updated successfully, but these errors were encountered: