Add support for deleting integration configs from the list.

Review Request #10439 — Created March 5, 2019 and submitted — Latest diff uploaded

Information

Djblets
release-1.0.x

Reviewers

This redoes the management of the integration configuration list to make
use of the dynamic Config Forms list components. This allows us to
define a Delete action, which will delete the configuration and
automatically update the list. This is much easier than going into the
configuration page (assuming the configuration page offers a Delete
button).

This necessitated some changes to the loading of the page. Now, instead
of building the list up-front, we serialize the data for the UI, and
it's passed in through the Config Forms list machinery. While that's
loading, a "Loading integrations" spinner will be displayed, so the list
doesn't look empty.

Further changes will build on this to better construct the popup display.

Tested this in both the admin UI and in the RBCommons Team Admin UI.

Unit tests pass.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Add support for deleting integration configs from the list.
This redoes the management of the integration configuration list to make use of the dynamic Config Forms list components. This allows us to define a Delete action, which will delete the configuration and automatically update the list. This is much easier than going into the configuration page (assuming the configuration page offers a Delete button). This necessitated some changes to the loading of the page. Now, instead of building the list up-front, we serialize the data for the UI, and it's passed in through the Config Forms list machinery. While that's loading, a "Loading integrations" spinner will be displayed, so the list doesn't look empty. Further changes will build on this to better construct the popup display.
cd7db70c861c09778ac6c38ddeec85929805e4cd Christian Hammond
djblets/staticbundles.py
djblets/integrations/views.py
djblets/integrations/templates/integrations/admin/integration_list.html
djblets/integrations/templates/integrations/parts/integration_list.html
djblets/static/djblets/css/config-forms.less
djblets/static/djblets/css/integrations.less
djblets/static/djblets/js/integrations/views/integrationConfigListView.es6.js
djblets/static/djblets/js/integrations/views/tests/integrationConfigListViewTests.es6.js
djblets/util/templatetags/djblets_images.py
Loading...