1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 00:02:41 +01:00
phorge-phorge/src/applications/owners
epriestley 5e7a091737 Write an explicit edge for commit membership in packages
Summary:
Ref T10978. Currently, during commit import, we write an "Audit Not Required" auditor for commits which don't require an audit.

This auditor is used to power the "Commits in this package" query in Owners.

This conflates audits and commit/package membership. I think it might even predate edges. Code needs to dance around this mess and we get the wrong result in some cases, since auditors are now editable.

Instead, write an explicit edge which just says "this commit is part of such-and-such packages". Then use that to run the query. Logical!

I'll issue guidance on this but I'm not migrating it, since it fixes itself going forward and only really affects the UI in Owners.

Test Plan:
  - Ran `bin/audit update-owners` with various arguments.
  - Viewed packages in web UI, saw them load the proper commits.
  - Queried by packages in Diffusion explicitly.
  - Clicked the "View All" link in Owners and got to the right search UI.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10978

Differential Revision: https://secure.phabricator.com/D17264
2017-01-30 15:23:34 -08:00
..
application Give Owners packages the "O" monogram 2016-05-13 17:18:15 -07:00
capability Give Owners real view and edit policies 2016-02-15 11:56:35 -08:00
conduit Formally deprecate owners.query Conduit API method 2016-04-20 09:04:45 -07:00
config Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
controller Write an explicit edge for commit membership in packages 2017-01-30 15:23:34 -08:00
customfield Add CustomField support to Owners 2015-09-10 13:32:31 -07:00
editor Modularize Owners package transactions 2016-10-13 21:07:02 +00:00
engineextension Support editing statuses and paths in Owners via Conduit API 2015-12-15 15:04:00 -08:00
mail Build separate mail for each recipient, honoring recipient access levels 2015-06-03 18:59:31 -07:00
phid Use "fa-shopping-bag" instead of "fa-list-alt" for Owners package icon 2016-05-13 17:19:20 -07:00
query When loading packages affected by a change to a particular path, ignore archived packages 2016-09-16 14:02:53 -07:00
remarkup Give Owners packages the "O" monogram 2016-05-13 17:18:15 -07:00
searchfield Flesh out Conduit parmeter types for maniphest.search 2015-12-14 04:24:01 -08:00
storage Modularize Owners package transactions 2016-10-13 21:07:02 +00:00
typeahead Allow "O42" to find packages by monogram in Owners typeaheads 2017-01-04 15:08:37 -08:00
xaction Allow transactions to specialize their mail headers for diff sections 2016-11-07 12:16:39 -08:00