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
F14045692: D12736.id30604.diff
Wed, Nov 13, 8:19 AM
F14045691: D12736.id30599.diff
Wed, Nov 13, 8:19 AM
F14017894: D12736.diff
Tue, Nov 5, 12:23 AM
F14014925: D12736.id.diff
Sun, Nov 3, 10:16 AM
F13992731: D12736.id30606.diff
Tue, Oct 22, 6:28 PM
F13964777: D12736.id30604.diff
Oct 15 2024, 9:52 PM
F13962600: D12736.diff
Oct 15 2024, 11:02 AM
Unknown Object (File)
Oct 13 2024, 11:26 AM

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
Branch
calendarunnamedevents
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 5802
Build 5821: [Placeholder Plan] Wait for 30 Seconds

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.