Page MenuHomePhabricator

Added a command line option to create multiple tasks at once
AbandonedPublic

Authored by skyronic on Oct 16 2013, 2:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 10:15 PM
Unknown Object (File)
Thu, Nov 21, 7:54 PM
Unknown Object (File)
Mon, Nov 18, 11:22 AM
Unknown Object (File)
Thu, Nov 14, 8:57 AM
Unknown Object (File)
Sun, Nov 10, 2:45 PM
Unknown Object (File)
Sun, Nov 10, 5:40 AM
Unknown Object (File)
Wed, Nov 6, 9:12 AM
Unknown Object (File)
Oct 20 2024, 5:53 PM

Details

Summary

This adds the "batch_upload_tasks" argument to "arc tasks" which
accepts a path to a CSV file. The CSV file is read, and is used
to create multiple tasks at one go.

The first column of the CSV file should be the alias, and the second
column the summary. It is assumed that this workflow will require
the users to triage and add more detail once they are working on a task.

The CSV should be comma separated, and delimited by "", which is the default
behaviour of PHP's CSV parser.

Test Plan

I uploaded a small batch of tasks to my development install of phabricator
which worked fine.

Diff Detail

Branch
T3972
Lint
Lint Errors
SeverityLocationCodeMessage
Errorsrc/workflow/ArcanistTasksWorkflow.php:281XHP31Use Of PHP 5.3 Features
Unit
No Test Coverage

Event Timeline

I don't think this should be part of arc. It depends on an undocumented, fixed CSV format. It is unlikely that many users will have this same problem (data in a specific CSV format which they need to batch import), so this creates a very narrow tool. It also depends on PHP 5.3, and we support 5.2.3.

arc already provides two more flexible, general approaches: you can either write a wrapper script which parse the CSV and calls arc todo, or you can write a wrapper script which parses the CSV and calls arc call-conduit. These solutions are general and work with any input format.

I agree completely with what you have said, and am abandoning this revision and closing the task.

It makes more sense for us to make this into a script specialized for us, rather than make it a part of arc. Hopefully we can polish it enough and make a blog post out of it :)