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

Interface graduation management #1355

Open
wants to merge 41 commits into
base: development
Choose a base branch
from

Conversation

thealphagurlux
Copy link

@thealphagurlux thealphagurlux commented Oct 25, 2024

Issue Description

Fixes #1315

  • The purpose of this issue is to create a page that allows celts admins to mark students as graduated in the data base.

  • The page should include a way for the user to filter students by searching for individual users, by Bonner Cohort (and what academic year they are associated with), as well as students who are participating in the CCE minor (whether they have completed it or made any progress towards it. ).

Changes

-Added 3 main filters and a search bar to filter out students in the table.

image

-For Bonner Cohorts a button was added to find all Bonner Students for a specific term.

image

-Export button has been added to export all students who've been marked as graduated and are visible in the table with the current filters applied.

Karina-Agliullova and others added 30 commits September 6, 2024 09:51
…off by 1 year (If a student graduted in 2022, then they will only show up if u click 2023)
specific year for bonner cohorts in graduationManagement
JavaScript
Copy link

View Code Coverage

@thealphagurlux thealphagurlux marked this pull request as ready for review December 12, 2024 20:46
@thealphagurlux thealphagurlux changed the title Interface graduation management (Draft) Interface graduation management Dec 12, 2024
Copy link
Contributor

@WackyWeaver WackyWeaver left a comment

Choose a reason for hiding this comment

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

Almost to the finish line! I just had a few immediate changes I thought would be necessary, and there were one or typos I saw. I think that the flash messages still need to be handled, but otherwise, I'm excited to see this merged!



@admin_bp.route('/<username>/hasGraduated/', methods=['POST'])
def hasGraduated(username):
Copy link
Contributor

Choose a reason for hiding this comment

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

The "has" at the beginning of the function was a bit confusing, because it is an attributing verb. I usually associate it with a check, like "isDead" or "hasDied". Maybe change this use a better helping verb like "setGraduationStatus" or something similar.

return "Error Updating Graduation Status", 500

@admin_bp.route('/<username>/hasNotGraduated/', methods=['POST'])
def hasNotGraduated(username):
Copy link
Contributor

Choose a reason for hiding this comment

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

same here.

return "Error Updating Graduation Status", 500

@admin_bp.route("/gradStudentsxls/<filterType>", methods=['GET'])
def gradsxls(filterType):
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe make this camelCase to match the rest of the functions.

</div>
<div class="btn-group" id = "bongroup">
<button type="button" class="btn btn-primary dropdown-toggle bonner-filter" id = "cohortFilter" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >
Bonner Cohorts
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this is the line, or it is near the line responsible for this issue. I thought it was a bit confusing that this made the "academic year" selection drop down default to "Bonner Cohort instead of the current year range.
image

$('.alert').alert('close');
};
console.log("Graduation status updated successfully!");
msgFlash("Graduation status updated successfully!", "success");
Copy link
Contributor

Choose a reason for hiding this comment

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

This makes the flash messages a bit overwhelming if a user was attempting to graduate a lot of students at once. Also, when hitting "Select All" button, the message flashes for every user on the page individually.
image

@@ -1,5 +1,7 @@
$(document).ready(function() {

$('.alert').alert('close');// close excess flash messages from graduation managment
Copy link
Contributor

Choose a reason for hiding this comment

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

I was mentioning excess flash messages, and this might be the solution. I did not see it effect the flash notification I was getting.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this empty file here?

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.

Create interface to allow Admin to mark students as graduated
3 participants