Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request additional information on request course page #5521

Merged
merged 19 commits into from Mar 16, 2022

Conversation

mfsilva22
Copy link
Contributor

Adding more information to course request page, to facilitate the approval process.

@mfsilva22 mfsilva22 marked this pull request as draft March 15, 2022 02:23
@mfsilva22
Copy link
Contributor Author

Here is the behavior I am getting:

  1. Fill out a course request and submit. From the terminal, it seems the Alma message is consistent with the data entry
    info: Alma message:
    Incoming course request
    Course rubric: CS 357
    Course title: nm1
    Requested by: Mariana Silva (mfsilva@illinois.edu)
    Logged in as: Dev User (dev@illinois.edu)
    GitHub username: not provided
  2. In the Admin page (administrator/overview), the pending courses table does not have value in the new columns

image

note: as of now, requested by only has the first name, once this is working, my plan was to concatanete first and last name to display here. 3. However, if I click view all and go to the page administrator/courseRequests, I can see all the values:

image

If someone can help me figuring out what I am doing wrong, that would be great.

@mfsilva22
Copy link
Contributor Author

I would like to remove the column "User name" from being displayed in "administrator/overview" and also "administrator/courseRequests". Opinions?

@mwest1066
Copy link
Member

mwest1066 commented Mar 15, 2022

  1. In the Admin page (administrator/overview), the pending courses table does not have value in the new columns

The URL /pl/administrator/overview gets routed to the code at pages/administratorOverview/ by this routing:

'/pl/administrator/overview',

This code reads the data from the DB in it's SQL file here:

The new fields will need to be added there.

@mfsilva22
Copy link
Contributor Author

That makes sense! Thank you

@mfsilva22 mfsilva22 assigned mfsilva22 and unassigned mfsilva22 Mar 15, 2022
@mfsilva22 mfsilva22 marked this pull request as ready for review March 15, 2022 20:05
@mfsilva22 mfsilva22 changed the title WIP: Update request course page Update request course page Mar 15, 2022
mfsilva22 and others added 2 commits March 15, 2022 15:47
Co-authored-by: Matthew West <matt@prairielearn.com>
Co-authored-by: Matthew West <matt@prairielearn.com>
@@ -33,7 +35,9 @@
<tr>
<td class="align-middle"><%= req.short_name %></td>
<td class="align-middle"><%= req.title %></td>
<td class="align-middle"><%= req.user_name %></td>
<td class="align-middle"><%= req.first_name + ' ' + req.last_name %></td>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd consider including the user.name value here, just to see if it matches what they're self-reporting?

Suggested change
<td class="align-middle"><%= req.first_name + ' ' + req.last_name %></td>
<td class="align-middle"><%= req.first_name + ' ' + req.last_name %> (<%= req.user_name %>)</td>

@nwalters512 nwalters512 changed the title Update request course page Request additional information on request course page Mar 15, 2022
@mfsilva22 mfsilva22 merged commit 21c26ab into master Mar 16, 2022
@mfsilva22 mfsilva22 deleted the update-request-course branch March 16, 2022 15:29
nwalters512 pushed a commit that referenced this pull request Apr 11, 2022
* added new fields to instructor form UI

* added columns to db

* changed type of email field in form

* update alma message with new fields

* added new parameters to course_requests_insert function and updated sprocs

* updated sql code in sprocs

* fixed email label

* updated Admin UI with new columns

* added new fields to admin course request

* one more update - not sure is needed

* added review updates

* added new columns to admin overview sql

* updated admin table to remove auth_name column

* fixed migration number after merging master into branch

* prettier fixes

* updated the order of course_requests table

* Update pages/administratorCourseRequests/courseRequestsTable.ejs

Co-authored-by: Matthew West <matt@prairielearn.com>

* Update pages/instructorRequestCourse/instructorRequestCourse.ejs

Co-authored-by: Matthew West <matt@prairielearn.com>

Co-authored-by: Matthew West <matt@prairielearn.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants