Closed ghost closed 4 years ago
Try importing this network topology (use FETCH strategy, then tell the application to update it either via the admin or the management command): https://openwisp.nnxx.ninux.org/api/topology/36d5ba3e-1364-49d2-9e29-1f6dceb7cbbb/?format=json
The visualization will fail.
I have imported this before trying the patch. After applying the patch I cannot run the fetch operation anymore as well.
I ran the tests and it worked for me-
@Weirdo914 try this:
https://openwisp.nnxx.ninux.org/api/topology/36d5ba3e-1364-49d2-9e29-1f6dceb7cbbb/?format=json
Looks like build is failing because of https://github.com/openwisp/django-netjsongraph/commit/a4bd9c69bf766c7782f48a262a5b379069d19783
@Weirdo914 try this:
- Delete database
- Checkout to master
- Create this topology:
https://openwisp.nnxx.ninux.org/api/topology/36d5ba3e-1364-49d2-9e29-1f6dceb7cbbb/?format=json
- Go back to your branch
- Make migrations
- Look at the topology, it'll have no links.
- Update topology (using admin or management command.)
- Look at the topology graph again!
I made some migrations for this.
@nemesisdesign That is strange because I looked at it before but when I tried it only showed 5 queries for me.
You can write a test for it to be 100% sure: https://docs.djangoproject.com/en/dev/topics/testing/tools/#django.test.TransactionTestCase.assertNumQueries
I tried testing it and it actually made 47 sql queries so I used JsonField instead, like you earlier suggested.
Implemented m2m fields. Closes #61