Skip to content

Conversation

mbillow
Copy link
Member

@mbillow mbillow commented Jan 22, 2017

Fixes #107

Allows members to submit attendance for Committee Meetings and Seminars. This attendance is then added to a queue for Eboard Approval.

screen shot 2017-01-22 at 16 49 20

@mbillow mbillow self-assigned this Jan 22, 2017
Copy link
Member

@liam-middlebrook liam-middlebrook left a comment

Choose a reason for hiding this comment

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

I'll test this stuff out for realisies later, but so far here's what I have from a quick skim over of the code.

return "must be eboard", 403

approved = ldap_is_eboard(account)
print(str(approved) + "IS AN EBAORD MEMBER")
Copy link
Member

Choose a reason for hiding this comment

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

EVAULATIONS

@@ -383,7 +371,7 @@ def alter_house_excuse(uid, hid):
def attendance_history():


def get_meeting_attendees(meeting_id):
def get_comm_attendees(meeting_id):
Copy link
Member

Choose a reason for hiding this comment

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

we should really change this to use the term directorship eventually

@@ -395,6 +383,18 @@ def get_meeting_attendees(meeting_id):
FreshmanAccount.id == freshman).first().name)
return attendees

def get_sem_attendees(meeting_id):
Copy link
Member

Choose a reason for hiding this comment

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

I really don't think we need to abbreviate function names

@@ -459,12 +476,87 @@ def alter_committee_attendance(cid):
db.session.commit()
return jsonify({"success": True}), 200

@attendance_bp.route('/attendance/cm/<cid>', methods=['GET', 'DELETE'])

@attendance_bp.route('/attendance/alter/ts/<cid>', methods=['POST'])
Copy link
Member

Choose a reason for hiding this comment

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

cid only made sense when this was referring to committee meetings

@@ -58,7 +58,8 @@ def display_dashboard():
c_meetings = [m.meeting_id for m in
MemberCommitteeAttendance.query.filter(
MemberCommitteeAttendance.uid == member.uid
)]
) if CommitteeMeeting.query.filter(
Copy link
Member

Choose a reason for hiding this comment

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

we have a bunch of oddities for SQL queries, but I think we could do a fancy statement with a single query.

Copy link
Member Author

Choose a reason for hiding this comment

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

I am not sure the sacrifice in readability is worth the four or five milliseconds you would save on load time. I looked back at the query I wrote for the housing queue and had to turn my monitor upside just trying to remember why I did what I did.

@@ -4,6 +4,60 @@
{% endblock %}
{% block body %}
<div class="container main">
{% if pending_cm|length != 0 and current_page == 1 %}
<h3 class="page-title">Pending Submittions</h3>
Copy link
Member

Choose a reason for hiding this comment

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

Submissions.

<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="editMeetingTitle">Review Submittion</h4>
Copy link
Member

Choose a reason for hiding this comment

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

Submission.

@mbillow
Copy link
Member Author

mbillow commented Jan 23, 2017

@csssuf I code good... but spell good is hard.

@mbillow
Copy link
Member Author

mbillow commented Jan 25, 2017

Has anyone had a chance to test this?

Copy link
Member

@liam-middlebrook liam-middlebrook left a comment

Choose a reason for hiding this comment

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

LGTM

@mbillow mbillow merged commit 3100049 into develop Jan 25, 2017
mbillow added a commit that referenced this pull request Jan 25, 2017
* Fix Eboard Check and Frsmn Migration

* Add Approved Field and Migration Titles

* Committee Meeting Submtn and Review

* Technical Seminar Atnd Smbtn

* Spelling is hard.

* Display Seminars on History Page
mbillow added a commit that referenced this pull request Jan 25, 2017
* Member Submission of Attendance (#116)

* Fix Eboard Check and Frsmn Migration

* Add Approved Field and Migration Titles

* Committee Meeting Submtn and Review

* Technical Seminar Atnd Smbtn

* Spelling is hard.

* Display Seminars on History Page

* removed initial attendance submission warning (#118)

* Fix Dashboard for those with no housing info
@mbillow mbillow deleted the mbr-sbmt-attend branch January 26, 2017 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants