Skip to content

Mentorship Requests

Ishan Khatri edited this page Aug 23, 2019 · 1 revision

Reasoning

If a hacker needs help with their project, they can request for a mentor to work with them to solve their problem. This is handled via mentorship requests. Hackers can have a maximum of five requests at a time.

Variables

t.integer "user_id"
t.integer "mentor_id"
t.string "title"
t.string "status"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "urgency"
t.string "description"
t.string "tech", default: "{}"
t.string "screenshot_file_name"
t.string "screenshot_content_type"
t.integer "screenshot_file_size"
t.datetime "screenshot_updated_at"

How hackers can submit a request

  1. Click the "Mentorship" button on the toolbar.
  2. Click the "Submit a Request" button at the bottom.
  3. Fill out the form then click the "Jesus Take The Wheel!" button when its filled out.

How mentors can view the requests

  1. Click the mentorship button on the toolbar. You should see a list of mentorship requests. Each request should look like this:
  2. Click the eye to see more details about a request. You should see a screen like this:
  3. You can message to get more information the hacker by clicking the “Message on Slack” button.
  4. Once the problem is solved click the “Mark as Resolved” button.

How to add more fields to mentorship requests

  1. Replace FIELD with the field you want to add and replace TYPE with the type of data that the field will be. Then run in the terminal: rails generate migration add_FIELD_to_mentorship_requests FIELD:TYPE
  2. Then edit the files in the folder app>views>mentorship_requests to properly display the new field if necessary.

Files that manage mentorship requests

Model: ./app/models/mentorship_request.rb
Views: ./app/views/mentorship_requests/
Controller: ./app/controllers/mentorship_requests_controller.rb

Urgency Levels

With this, we can sort the list of requests for the mentors so the most important will be listed ascending starting from:

Level 3: Drastically Urgent We are stuck and won't be able to work on anything else until this is resolved.

Level 2: Considerably Urgent It is a huge issue, but we can work on other things while we get help with this problem.

Level 1: Mildly Urgent A problem that is incessant and annoying, but it is not a major part of our project.

Level 0: Not Urgent We want a suggestion, or are capable of solving it ourselves, but help from a mentor would be nice, but not needed.