Page MenuHomePhabricator

Fix transaction queries using withComments() for transactions with no comments
ClosedPublic

Authored by epriestley on Oct 2 2017, 2:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 4, 12:01 PM
Unknown Object (File)
Thu, Jul 3, 7:05 PM
Unknown Object (File)
Jun 2 2025, 6:12 PM
Unknown Object (File)
May 10 2025, 11:39 PM
Unknown Object (File)
May 9 2025, 11:49 PM
Unknown Object (File)
May 9 2025, 11:09 PM
Unknown Object (File)
May 7 2025, 12:05 PM
Unknown Object (File)
May 6 2025, 4:00 PM
Subscribers
None

Details

Summary

See https://discourse.phabricator-community.org/t/daemons-tasks-crashing-in-a-loop-during-reindex/506/1. Some object types (for example, Passphrase Credentials) support indexing but not commenting.

Make withComments(...) work properly if the transaction type does not support comments.

Test Plan

Indexed a credential (no comments) and a revision (comments) with bin/search index --trace ....

Before, credential fataled.

After, credetial succeeds, and skips the transaction query.

Before and after, the revision queries the transaction table.

Diff Detail

Repository
rP Phabricator
Branch
comment1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18598
Build 25052: Run Core Tests
Build 25051: arc lint + arc unit