openwisp / django-ipam

The development of this project has moved to openwisp-ipam
https://github.com/openwisp/openwisp-ipam
BSD 3-Clause "New" or "Revised" License
78 stars 28 forks source link

[admin] Improved subnet import page #42

Closed anurag-ks closed 6 years ago

anurag-ks commented 6 years ago

Implements and closes #38

coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 118


Totals Coverage Status
Change from base Build 116: 0.0%
Covered Lines: 431
Relevant Lines: 431

💛 - Coveralls
coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 118


Totals Coverage Status
Change from base Build 116: 0.0%
Covered Lines: 431
Relevant Lines: 431

💛 - Coveralls
nemesifier commented 6 years ago

@okraits would you like to help me reviewing this?

okraits commented 6 years ago

New annotations:

anurag-ks commented 6 years ago

Thanks for the review @okraits ,

okraits commented 6 years ago
nemesifier commented 6 years ago

@okraits it should be possible to import addresses into an existing subnet, @anurag-ks do you confirm?

I wouldn't touch the PR further, it's good enough for now. The admin lists available models in alphabetical order, we shouldn't mess with that. In the near feature we will introduce a dashboard and a navigation menu, at the moment our users will have to be satisfied with what django is able to give us with minimum effort.

anurag-ks commented 6 years ago

If the subnet already exists, the system would ignore it and add the IP addresses. If the subnet is not present on the system, it will create it and then add the IP addresses.

anurag-ks commented 6 years ago

I will add this in an improved manner to the README as well. I will be sending a PR later.

nemesifier commented 6 years ago

@okraits I tried to improve the wording, check if now is better and let us know

okraits commented 6 years ago

@nemesisdesign I have to be picky: why Import Subnet but Export Subnet Data?

nemesifier commented 6 years ago

@okraits right, which one you like most? :-)

okraits commented 6 years ago

@nemesisdesign I prefer Import Subnet and Export Subnet because it should be clear that Import/Export is about data anyway :-)

nemesifier commented 6 years ago

@okraits ok I second that, could you edit here on github and send a PR please? I'm overloaded with other PR and issues to review/merge/implement

nemesifier commented 6 years ago

@okraits ok I second that, could you edit here on github and send a PR please? I'm overloaded with other PR and issues to review/merge/implement

okraits commented 6 years ago

@nemesisdesign Done with #45 :sunglasses: