Problem/Motivation

Three tasks that have been created/edited recently could really use a Prerequisite field. This would be useful for things that have to be present but aren't exactly steps for the task. Examples:
- You need to be logged in to drupal.org
- You need a development site to work with

Steps to reproduce

Take a look at this Task for an example of one that needs a Prerequisites field:
https://www.drupal.org/community/contributor-guide/task/create-a-patch-f...

Proposed resolution

Add a separate field for prerequisites to the Contributor Task content type.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

jhodgdon created an issue. See original summary.

rachel_norfolk’s picture

Yeah, I like it.

It's a bit like adding the some kind of thing to a DrupalCon talk - what do you need to be able to be successful, type of thing

jhodgdon’s picture

I had (I think?) a better idea for how to accomplish this, rather than adding a new field.

I created a page listing common prerequisites in the Quick Info section, with links to how to get them set up:
https://www.drupal.org/community/contributor-guide/reference-information...

What I'm going to suggest that as Step 1 in the Steps section of a Contributor Task, we link to that page and say which prerequisites you need.

I've done this on two Contributor Tasks. See what you think?
https://www.drupal.org/community/contributor-guide/task/create-a-patch-f...
https://www.drupal.org/community/contributor-guide/task/create-a-merge-r...

Also I think maybe this standard text should be added as the default value for the Steps section of a Task content item when you are creating a new Task:

<ol>
  <li>Set up prerequisites: <em>Log in, Local development site, Git, Git authentication, Git clone or update</em> from <a href="/community/contributor-guide/reference-information/quick-info/common-prerequisites-for-contributors">Common Prerequisites for Contributors</a>.</li>
  <li>Next step here...</li>
</ol>

Thoughts?

jhodgdon’s picture

Slight change to suggested default value:

<ol>
  <li>Set up prerequisites: <em>Log in, FILL IN MORE HERE</em> from <a href="/community/contributor-guide/reference-information/quick-info/common-prerequisites-for-contributors">Common Prerequisites for Contributors</a>.</li>
  <li>Next step here...</li>
</ol>
jhodgdon’s picture

I just went through all of the existing Task writeups and added prerequisites as the first Step. I think this will work well. Leaving as Active because I think it would be good to put the text from #4 in as the default value for the Steps field.

jhodgdon’s picture

Title: Contributor Tasks need a prerequisite field » Contributor Tasks need way to specify prerequisites
jhodgdon’s picture

Status: Active » Needs review
Related issues: +#3185876: Add Task Type field to Contributor Tasks for better filtering

I added the new default value for Steps field to the patch on #3185876: Add Task Type field to Contributor Tasks for better filtering as this is a small change... hope that is OK.

jhodgdon’s picture

Status: Needs review » Fixed

This has now been deployed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.