gerrit/java/gerrit
Maxime Guerreiro 7deacf1f1f Add a method to query accounts only by their external ID's email
And use this method from the Prolog predicates, in order to remove the
dependency on the index when indexing rules. This fixes the two
remaining tests in RulesIT.

The newly introduced method doesn't query the index to find accounts
by their preferred email. Instead, the external IDs cache is assumed to
be consistent with reality. This method is used in PatchSetInfoFactory
and EventFactory to allow usage of these two classes from an environment
with no index access.

The underlying issue (accounts with no external IDs) is already fixed,
and this change is a first step towards removing the patches required by
it.

Change-Id: I93a91c11f6473dfe9e4d9b56c27a351234b50e56
2018-06-29 14:35:36 +00:00
..
AbstractCommitUserIdentityPredicate.java Add a method to query accounts only by their external ID's email 2018-06-29 14:35:36 +00:00
BUILD Expose the commit to Prolog 2018-06-29 12:14:07 +00:00
PRED__load_commit_labels_1.java Isolate gerrit:server rule in gerrit/server package 2017-10-31 11:02:38 -04:00
PRED_change_branch_1.java Isolate gerrit:server rule in gerrit/server package 2017-10-31 11:02:38 -04:00
PRED_change_owner_1.java Isolate gerrit:server rule in gerrit/server package 2017-10-31 11:02:38 -04:00
PRED_change_project_1.java Isolate gerrit:server rule in gerrit/server package 2017-10-31 11:02:38 -04:00
PRED_change_topic_1.java Isolate gerrit:server rule in gerrit/server package 2017-10-31 11:02:38 -04:00
PRED_commit_author_3.java Expose the commit to Prolog 2018-06-29 12:14:07 +00:00
PRED_commit_committer_3.java Expose the commit to Prolog 2018-06-29 12:14:07 +00:00
PRED_commit_delta_4.java Revert "Split off library classes from server/patch/ into diff/" 2017-11-17 10:03:00 +00:00
PRED_commit_edits_2.java Revert "Split off library classes from server/patch/ into diff/" 2017-11-17 10:03:00 +00:00
PRED_commit_message_1.java Expose the commit to Prolog 2018-06-29 12:14:07 +00:00
PRED_commit_stats_3.java Revert "Split off library classes from server/patch/ into diff/" 2017-11-17 10:03:00 +00:00
PRED_get_legacy_label_types_1.java Isolate gerrit:server rule in gerrit/server package 2017-10-31 11:02:38 -04:00
PRED_project_default_submit_type_1.java Support inheriting project submit type 2018-01-09 08:38:52 -05:00
PRED_pure_revert_1.java Isolate gerrit:server rule in gerrit/server package 2017-10-31 11:02:38 -04:00
PRED_unresolved_comments_count_1.java Isolate gerrit:server rule in gerrit/server package 2017-10-31 11:02:38 -04:00
PRED_uploader_1.java Reformat all Java files with google-java-format 1.6 2018-06-06 10:26:51 +09:00