Skip to content

Conversation

@church29
Copy link
Contributor

@church29 church29 commented Nov 1, 2013

As mentioned in #426

@ghost ghost assigned akeym Nov 1, 2013
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove editable table mode*

@akeym
Copy link
Member

akeym commented Nov 4, 2013

batch update form shows when there aren't any interfaces in the zone (like, a zone without dynamic interfaces, or static). It shows the create an interface form, as well as the batch update form below it.

should restrict ranges based on user permissions as well.

@church29
Copy link
Contributor Author

church29 commented Nov 4, 2013

Missing a form.make_usable(request) call in base/views

_usable to batchupdateform
@church29
Copy link
Contributor Author

This has been good to for a while, someone should test it though.

@church29
Copy link
Contributor Author

church29 commented Dec 1, 2014

I will be getting this up to date after #710 is completed.

…Update

Conflicts:
	cyder/cydhcp/interface/urls.py
	cyder/cydhcp/interface/views.py
	cyder/templates/cydhcp/cydhcp_view.html
	media/js/tables.js
@church29
Copy link
Contributor Author

This seems to be working still. I just need to clean it all up a bit.

@drkitty drkitty assigned drkitty and unassigned akeym Feb 4, 2015
@drkitty
Copy link
Contributor

drkitty commented Feb 4, 2015

Intriguing. A couple comments:

  • The checkbox label ("Enter batch update mode") is in the imperative, which feels a little weird and doesn't make sense when the box is checked and I'm in batch update mode.
  • Is it possible to make the selection checkboxes bigger? Their small size gets annoying when I'm trying to check several boxes in a row.

@drkitty
Copy link
Contributor

drkitty commented Feb 4, 2015

If I try to move an interface that can't be moved (like a glue record), the ValidationError propagates all the way up to the view, causing a server error.

@drkitty
Copy link
Contributor

drkitty commented Feb 4, 2015

In the dynamic interface list page, there are non-breaking spaces before and after each IP range in the range column (I don't know why). When I enter batch update mode, they show up as " ".

Copy link
Contributor

Choose a reason for hiding this comment

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

You might consider rolling back the transaction here instead of manually deleting things. If not, you need to at least handle ValidationErrors, although I'm not sure how that would work.

@drkitty
Copy link
Contributor

drkitty commented Feb 5, 2015

When changing a dynamic interface to a static one, the name is constructed incorrectly. DynamicInterface.mac contains colons (unless you fetch it using values() or values_list()).

@drkitty
Copy link
Contributor

drkitty commented Feb 5, 2015

Under certain circumstances, the view attempts to create a static interface whose container doesn't match its domain. It happened when I created a dynamic interface in zone.ace in the dynamic range 10.255.255.255 – 10.255.255.255 and then tried to move it to the static range 128.193.82.2 - 128.193.82.126. I haven't pinned down the cause, though.

@church29
Copy link
Contributor Author

This is going to be a little more tricky than I planned.

@akeym
Copy link
Member

akeym commented Mar 7, 2015

Is this still in please review status?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants