Page MenuHomePhabricator

PhabricatorProjectWorkboardProfilePanel still defined in legacy database upgrade code
Closed, ResolvedPublic

Description

How to reproduce?

  1. Take a December 2015 installation, upgrade database schema with bin/storage upgrade
  2. Upgrade will complain PhabricatorProjectWorkboardProfilePanel doesn't exist anymore.

Issues

The file resources/sql/autopatches/20160122.project.1.boarddefault.php contains the following values:

Original variableValue at rP9f56a014e2Proposed new variable
PhabricatorProjectWorkboardProfilePanel::PANELKEYproject.workboardPhabricatorProject::ITEM_WORKBOARD PhabricatorProjectWorkboardProfileMenuItem::MENUITEMKEY
PhabricatorProject::PANEL_WORKBOARDproject.workboardPhabricatorProject::ITEM_WORKBOARD
PhabricatorProfilePanelConfiguration::VISIBILITY_DEFAULTdefaultPhabricatorProfileMenuItemConfiguration::VISIBILITY_DEFAULT

Commit rP8480776cc is the one for the ProfilePanelConfiguration → ProfileMenuItemConfiguration rename.

Event Timeline

Thanks!

(2) and (3) are correct.

I believe (1) should be PhabricatorProjectWorkboardProfileMenuItem::MENUITEMKEY.

These constants have the same value, so using the "wrong" constant still gets the right result, but PhabricatorProjectWorkboardProfileMenuItem::MENUITEMKEY is the more-correct constant.