dashboard - consider dropping use of floppyforms?

Bug #1805193 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Medium
zhurong

Bug Description

Would it be possible to drop use of django-floppyforms from murano-dashboard? It doesn't seem to be very well supported anymore. Scrolling through the issues there are several unanswered for a long time [1] and there's not been a release in a long time [2]. This makes supporting the package in distros difficult in terms of support. The package was dropped from Ubuntu in Xenial (likely due to lack of use). In murano-dashboard, django-floppyforms was recently added to requirements.txt in commit caaa9ea88d163dc089c422d511c48ca93e9261f1, although it's use in the code appears to have been around for a while.

[1] https://github.com/gregmuellegger/django-floppyforms/issues
[2] https://github.com/gregmuellegger/django-floppyforms/releases

summary: - dashboard - consider dropping use of floppyfroms?
+ dashboard - consider dropping use of floppyforms?
Revision history for this message
Corey Bryant (corey.bryant) wrote :

I'm not sure this code is even used.

muranodashboard/common/widgets.py is the only module that imports from floppyforms, and floppyforms is used by class TriStateCheckboxSelectMultiple.

The only place TriStateCheckboxSelectMultiple is referenced is in muranodashboard/common/fields.py, in the TriStateMultipleChoiceField class.

However the TriStateMultipleChoiceField class never appears to be used. Here's a recursive grep through the murano-dashboard code:

murano-dashboard$ grep -r TriStateMultipleChoiceField
muranodashboard/common/fields.py:class TriStateMultipleChoiceField(forms.ChoiceField):

zhurong (zhu-rong)
Changed in murano:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
zhurong (zhu-rong) wrote :

this is due to next part of the code haven't merged yet
https://review.openstack.org/#/c/168027/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano-dashboard (master)

Fix proposed to branch: master
Review: https://review.openstack.org/639482

Changed in murano:
assignee: nobody → zhurong (zhu-rong)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano-dashboard (master)

Reviewed: https://review.opendev.org/639482
Committed: https://git.openstack.org/cgit/openstack/murano-dashboard/commit/?id=dc0bc457139214251e483ed279f99c0cbafd1a7b
Submitter: Zuul
Branch: master

commit dc0bc457139214251e483ed279f99c0cbafd1a7b
Author: zhurong <email address hidden>
Date: Tue Feb 26 15:47:27 2019 +0800

    Remove the dependency of floppyforms

    django-floppyforms is not very well supported anymore
    and was dropped from Ubuntu in Xenial.

    Closes-bug: #1805193
    Change-Id: I46bf2d43794a67a4dc080afa9f1740a582cb7631

Changed in murano:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/murano-dashboard 8.0.0.0rc1

This issue was fixed in the openstack/murano-dashboard 8.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.