This website requires JavaScript.
Explore
Help
Sign in
revi-archive
/
phorge-phorge
Watch
1
Star
0
Fork
You've already forked phorge-phorge
0
mirror of
https://we.phorge.it/source/phorge.git
synced
2024-11-22 23:02:42 +01:00
Code
Issues
Releases
Wiki
Activity
71b273a622
phorge-phorge
/
resources
/
sql
/
autopatches
/
20190412.herald.01.rebuild.php
6 lines
102 B
PHP
Raw
Normal View
History
Unescape
Escape
Index and show Owners packages affected by Herald rules Summary: Depends on D20412. See PHI1147. - Index the targets of "Add Reviewer", "Add Blocking Reviewer", "Add Auditor", "Add Subscriber", and "Remove Subscriber" Herald rules. My major goal is to get Owners packages. This will also hit projects/users, but we just don't read those edges (for now, at least). - Add a "Related Herald Rules" panel to Owners Package pages. - Add a migration to reindex Herald rules for the recent build plan stuff and this, now that such a migration is easy to write. Test Plan: Ran migration, verified all rules reindexed. {F6372695} Reviewers: amckinley Reviewed By: amckinley Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Differential Revision: https://secure.phabricator.com/D20413
2019-04-13 01:09:38 +02:00
<
?
php
Introduce storage patch "phases" to allow index-rebuilding patches to execute after worker queue schema changes Summary: Ref T13591. Some storage patches queue worker tasks, currently always to rebuild search indexes. These patches can not execute in creation order if a later patch modifies the worker task table, since they'll try to perform a modern INSERT against an out-of-date table schema. Such a modification is desirable in the context of T13591, but making it causes these patches to fail. Patches have an existing "after" mechanism which allows them to have explicit dependencies. This mechanism could be used to resolve this issue, but all patches with a dependency like this would need to be updated every time the queue table changes. Instead, introduce "phases" to provide broader ordering rules. There are now two phases: "default" and "worker". Patches in the "worker" phase execute after patches in the "default" phase. Phases may eventually be further separated, but Test Plan: - Ran `bin/storage status`, saw patches annotated with phases. - Will apply `containerPHID` changes on top of this. Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Maniphest Tasks: T13591 Differential Revision: https://secure.phabricator.com/D21529
2021-01-28 19:28:23 +01:00
// @phase worker
Index and show Owners packages affected by Herald rules Summary: Depends on D20412. See PHI1147. - Index the targets of "Add Reviewer", "Add Blocking Reviewer", "Add Auditor", "Add Subscriber", and "Remove Subscriber" Herald rules. My major goal is to get Owners packages. This will also hit projects/users, but we just don't read those edges (for now, at least). - Add a "Related Herald Rules" panel to Owners Package pages. - Add a migration to reindex Herald rules for the recent build plan stuff and this, now that such a migration is easy to write. Test Plan: Ran migration, verified all rules reindexed. {F6372695} Reviewers: amckinley Reviewed By: amckinley Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Differential Revision: https://secure.phabricator.com/D20413
2019-04-13 01:09:38 +02:00
PhabricatorRebuildIndexesWorker
::
rebuildObjectsWithQuery
(
'HeraldRuleQuery'
);
Copy permalink