Page MenuHomePhabricator

Calendar event detail view should show "Unnamed Event" as title for events with no title
ClosedPublic

Authored by lpriestley on May 6 2015, 4:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 6, 8:37 PM
Unknown Object (File)
Wed, Nov 27, 6:36 PM
Unknown Object (File)
Tue, Nov 19, 3:12 PM
Unknown Object (File)
Nov 13 2024, 8:19 AM
Unknown Object (File)
Nov 13 2024, 8:19 AM
Unknown Object (File)
Nov 5 2024, 12:23 AM
Unknown Object (File)
Nov 3 2024, 10:16 AM
Unknown Object (File)
Oct 22 2024, 6:28 PM

Details

Summary

Closes T8048, Calendar event detail view should show "Unnamed Event" as title for events with no title

Test Plan

Open an old event created before titles were required, event detail view should display title as "Unnamed Event" instead of a blank title

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lpriestley retitled this revision from to Calendar event detail view should show "Unnamed Event" as title for events with no title.
lpriestley updated this object.
lpriestley edited the test plan for this revision. (Show Details)
lpriestley added a reviewer: epriestley.
lpriestley edited edge metadata.

Unnamed events should be retro-renamed to host handle

epriestley edited edge metadata.
This revision is now accepted and ready to land.May 6 2015, 5:54 PM
This revision was automatically updated to reflect the committed changes.

Hy,

I get the following exception when i try to run migration on my install.

[2015-05-15 09:03:33] EXCEPTION: (AphrontSchemaQueryException) #1054: Unknown column 'profileImageCache' in 'field list' at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:308]
arcanist(head=master, ref.master=e1a051a033b8), phabricator(head=master, ref.master=e185d8fe0234), phutil(head=master, ref.master=afc60bc131e1)

#0 AphrontBaseMySQLDatabaseConnection::throwQueryCodeException(integer, string) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:275]
#1 AphrontBaseMySQLDatabaseConnection::throwQueryException(mysqli) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:181]
#2 AphrontBaseMySQLDatabaseConnection::executeRawQuery(string) called at [<phutil>/src/xsprintf/queryfx.php:6]
#3 queryfx(AphrontMySQLiDatabaseConnection, string, string, string, string) called at [<phabricator>/src/applications/people/storage/PhabricatorUser.php:856]
#4 PhabricatorUser::writeProfileImageCache(string) called at [<phabricator>/src/applications/people/query/PhabricatorPeopleQuery.php:197]
#5 PhabricatorPeopleQuery::didFilterPage(array) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:261]
#6 PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/applications/phid/type/PhabricatorPHIDType.php:102]
#7 PhabricatorPHIDType::loadObjects(PhabricatorObjectQuery, array) called at [<phabricator>/src/applications/phid/query/PhabricatorObjectQuery.php:141]
#8 PhabricatorObjectQuery::loadObjectsByPHID(array, array) called at [<phabricator>/src/applications/phid/query/PhabricatorObjectQuery.php:63]
#9 PhabricatorObjectQuery::loadPage() called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:228]
#10 PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/applications/phid/query/PhabricatorHandleQuery.php:25]
#11 PhabricatorHandleQuery::loadPage() called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:228]
#12 PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:168]
#13 PhabricatorPolicyAwareQuery::executeOne() called at [<phabricator>/resources/sql/autopatches/20150506.calendarunnamedevents.1.php:17]
#14 require_once(string) called at [<phabricator>/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php:226]
#15 PhabricatorStorageManagementAPI::applyPatchPHP(string) called at [<phabricator>/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php:191]
#16 PhabricatorStorageManagementAPI::applyPatch(PhabricatorStoragePatch) called at [<phabricator>/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementUpgradeWorkflow.php:177]
#17 PhabricatorStorageManagementUpgradeWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:406]
#18 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:301]
#19 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/sql/manage_storage.php:171]

Okay, i find the solution, the patches has wrong order. This autopatch run before the actual alters applied to the table, and try to use non exist colums. Here is my storage status and order.

MigrationStatusType
phabricator:20150506.calendarunnamedevents.1.phpNot Appliedphp
phabricator:20150507.calendar.1.isallday.sqlNot Appliedsql
phabricator:20150513.user.cache.1.sqlNot Appliedsql
phabricator:20150514.calendar.status.sqlNot Appliedsql
phabricator:20150514.phame.blog.xaction.sqlNot Appliedsql
phabricator:20150514.user.cache.2.sqlNot Appliedsql

Used a really hacky way to fix this, run the 2 user cache alters on my db, with hand, it is allow the calendarunnamedevents migration to run, but block the 2 others, removed the three new column from users table and run the migration again. This fixed my problem. But i think this patches needs to be reordered.

I filed this issue as T8209. Patch order is not the problem; I caused this issue in connection with T7707.

Thats a quick response, thanks.