-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: development
Are you sure you want to change the base?
Conversation
…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)
…ts for new logic need to be implemented
…ts for new logic need to be implemented
…wareDevTeam/celts into 1378-cohort-export
8c197db
to
6d0de8d
Compare
…Team/celts into 1378-cohort-export
@@ -44,6 +56,28 @@ $(document).ready(function(){ | |||
} | |||
}); | |||
|
|||
$(".export-spreadsheet").on('click', function() { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, they might be. However, I don't think there's any single part of the logic too esoteric to warrant any comments, if you ask me.
So far it's good I follow the steps and was able to download the spreadsheet. Everything works perfectly although visually the excel sheet icon and the buttons is something that I would change but its not fundamental and important so you don't have to:
I am under impression that we need to create testing for every logic so I assume there should be one but if there isn't a testing needed and my assumptions are wrong please do correct me. I hope these suggestions helps. |
Yes, i see the front-end fixed, if you want the button to be all fixed size and text center this html bootstrap chunk will work:
|
insert into celts.requirementmatch (requirement_id, event_id) values (5, event_id); | ||
elseif event_name like '%legacy%' then | ||
insert into celts.requirementmatch (requirement_id, event_id) values (6, event_id); | ||
elseif event_name like '%presentation%' then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @BrianRamsay, what do you think of this, line 35? We're trying to catch Senior Presentation. Do you think just 'presentation' is too vague? (Asking here so I don't forget in person)
I am going to approve this PR after talking with James that the front-end seems awesome with new additional feature and the testing of the function as it return a spreadsheet URL is something that doesn't need to be tested. |
Issue Description
Fixes #1378
Changes
Created buttons associated with the new custom spreadsheets
Before

After

Updated look (thanks to feedback from Imran):

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.

Lastly, we wrote a SQL 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
git checkout 1378-cohort-export
flask run