Skip to content
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

[admin] Added menu items #37 #75

Merged
merged 1 commit into from
Dec 30, 2020
Merged

Conversation

codesankalp
Copy link
Member

Added menu items (openwisp-utils menu) for Subnet and IpAdress models.

This is WIP PR which requires the new version release of openwisp-utils.

Fixes #37

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now you can update openwisp-utils in requirements.txt and requirements-test.txt to 0.7.0 and the build should be fixed.

@codesankalp
Copy link
Member Author

error: openwisp-utils 0.7 is installed but openwisp-utils[rest]~=0.6.0 is required by {'openwisp-users'}

Updating openwisp-users is required for fixing the build.

Waiting for this openwisp/openwisp-users#189 to be merged.

@coveralls
Copy link

coveralls commented Dec 20, 2020

Coverage Status

Coverage increased (+0.004%) to 99.341% when pulling 120a154 on codesankalp:issue37 into 921be06 on openwisp:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 99.341% when pulling a0f804d on codesankalp:issue37 into 921be06 on openwisp:master.

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codesankalp, looks good, could you add a simple admin test that check for the presence of the two menu links please?

Take a look at these tests if you're not familiar with admin tests: https://github.com/openwisp/openwisp-ipam/blob/master/openwisp_ipam/tests/test_admin.py.

Added menu items (openwisp-utils menu) for Subnet and IpAdress models.

Added test for menu items in test_admin.py

Also updated openwisp-utils and openwisp-users dependency in requirements files.

Fixes openwisp#37
Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work! Thanks 👍

OpenWISP Priorities for next releases automation moved this from Ready for review/testing to Reviewer approved Dec 30, 2020
@nemesifier nemesifier merged commit b130a44 into openwisp:master Dec 30, 2020
OpenWISP Priorities for next releases automation moved this from Reviewer approved to Done Dec 30, 2020
@codesankalp codesankalp deleted the issue37 branch March 14, 2021 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[admin] Add menu items
3 participants