Closed Bug 1400693 Opened 8 years ago Closed 6 years ago

PhabFactory should automatically associate a user with a revision

Categories

(Conduit :: Lando, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mars, Unassigned)

Details

(Keywords: conduit-backlog, conduit-triaged)

The PhabFactory object should automatically associate a user with a revision when creating a new revision. The suite has poor quality test code like this: def mytest: phabfactory.user() phabfactory.revision() This would be better: def mytest: phabfactory.revision() # user/author is created and associated automatically If you need to customize the author: def mytest: foo_user = phabfactory.user(name='Foo') phabfactory.revision(author=foo_user)
Part of this is completed in https://bugzilla.mozilla.org/show_bug.cgi?id=1399219. Missing is accepting an `author` parameter in `phabfactory.revision()`.
Has this since been implemented? If not, how does it fit into our stories (the summary is too low-level for me to be sure).
Flags: needinfo?(imadueme)
The goal of this bug (to be able to create a mock revision that points to a mock author) has been implemented. You must pass a author_phid (of an author that already has been mocked) to the revision factory. mars' suggestion to be able to pass it directly to the factory is 100% the way to go, though. That said, I do not believe this is critical at this time so this bug can be closed imo.
Flags: needinfo?(imadueme)
It sounds like you're saying this is an improvement we might want some day, so I'll leave it open but move it to the backlog (and unassign it).
Assignee: mars → nobody
Keywords: conduit-triaged
Whiteboard: [lando-backlog]
Keywords: conduit-backlog
Whiteboard: [lando-backlog]

phabfactory no longer exists.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.