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

Added Export Bonner Spreadsheet Features #1388

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

Conversation

WackyWeaver
Copy link
Contributor

Issue Description

Fixes #1378

  • "We need more Bonner Cohort export options, to see the currently selected cohort, the last 5 years, and the current All. These spreadsheets should also show all of the bonner events and their attendees. Add columns to the sheet for each event with at least one attendee in the spreadsheet"

Changes

  • Created buttons associated with the new custom spreadsheets

  • Before
    image

  • After
    image

  • Also, created an Ajax function to associate each button to a specific flask route. We pass a start year and end year into the route using a values stored in the URL request. Then, if we want to additionally change the spreadsheet range, we can simply express a different range of values for the flask route function.

  • We also wrote into the bonner spreadsheet the status of each bonner requirement. If it was completed by the cohort member, we include the date of completion. If it is incomplete, we simply write "incomplete in the column of a given bonner member row.
    image

  • Lastly, we wrote an mySQL script to migrate the Requirementmatch table data. Since much of the Event table data did not insert the bonner requirement events into the proper requirement table, we created a script to migrate all bonner events that include the select names of a given Bonner requirement.

Testing

  • Use git checkout 1378-cohort-export
  • flask run
  • create a Bonner event and add a specified Bonner requirement within the drop down.
  • create a Bonner event with a given Bonner requirement name separate from the other specific requirement (simply to show two different Bonner events (e.i. make a Sophomore exchange and All Bonner Meeting))

WackyWeaver and others added 16 commits January 16, 2025 15:23
…added the events attended column, and now trying to clean up makeBonnerXls logic
…tem. Will implement new logic over comign days
… overhaul logic and get events by requirementmatch, not eventparticipant
…with event date. Need to implement for Bonner Events with frequency greater than one (All Bonner Meetings)
@WackyWeaver WackyWeaver marked this pull request as draft January 30, 2025 19:22
@ojmakinde ojmakinde requested a review from BrianRamsay January 30, 2025 22:47
@WackyWeaver WackyWeaver marked this pull request as ready for review January 31, 2025 19:38
Copy link

View Code Coverage

@@ -44,6 +56,28 @@ $(document).ready(function(){
}
});

$(".export-spreadsheet").on('click', function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Some comments might be useful 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.

Bonner Cohort Management export options
3 participants