Prevent an unwanted save when enabling an extension.

Review Request #10379 — Created Jan. 11, 2019 and submitted

Information

Djblets
release-1.0.x
e8faa68...

Reviewers

When enabling an extension, we'd mark the RegisteredExtension entry as
installed and then save it. This was only really necessary the first
time an extension was installed, but we were still doing it every time.

This change simply makes the update conditional, and reduces the expense
of the save by specifying that only the installed field should be
written to the database.

Unit tests passed.

Manually tested enabling and disabling extensions. Verified that
extensions were always loaded when they should be and would reload when
next initialized.

david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-1.0.x (74187bc)
Loading...