Conversation
| #no relationship specified | ||
|
|
||
| class share_graph_event(Base): | ||
| __tablename__ = 'share_graph_event' |
There was a problem hiding this comment.
Need some docs on the schema. What does the table store? Why do you need each attribute?
There was a problem hiding this comment.
Class names should have camel case.
graphs/views.py
Outdated
| @@ -297,6 +297,18 @@ def _graphs_page(request, view_type): | |||
|
|
|||
| return render(request, 'graphs/graphs.html', context) | |||
|
|
|||
There was a problem hiding this comment.
Add python documentation for this method. https://www.python.org/dev/peps/pep-0257/
|
@MridulS, I have updated the master branch with new installation process. I would like you to fetch your master branch from main repository and update your master branch. |
| db_session = data_connection.new_session() | ||
|
|
||
| # Get the current time | ||
| cur_time = datetime.now() |
There was a problem hiding this comment.
we dont need this variable. you directly assign the value while creating the share event object.
|
I added some comments. The priority is to get a working demo by Monday meeting though. |
graphs/exception.py
Outdated
| @@ -0,0 +1,4 @@ | |||
| from django.core.exceptions import ObjectDoesNotExist | |||
|
|
|||
There was a problem hiding this comment.
Not to be used anymore.
|
@tmmurali @adbharadwaj Updates to the front end.
Click on Click on Click on Click on |
graphs/util/db.py
Outdated
| db_session = data_connection.new_session() | ||
| try: | ||
|
|
||
| events = db_session.query(models.ShareGraphEvent).filter(models.ShareGraphEvent.member_id == member_id).filter(models.ShareGraphEvent.group_id == group_id).all() |
There was a problem hiding this comment.
Can you use the update api here ?
4.1 Notification system4.1.1 View all notifications flow.
4.1.2 View all notifications for a group.
4.1.3 Mark one or more notifications as read.
|
|
I have made two different User Interfaces right now, one which greys out the notifications as the tick mark button is clicked (you need to refresh to remove those notifications from the screen) and the other one removes the notification from the list of notification on click. The grey one is closer to github but I personally like the second one. @tmmurali @adbharadwaj Thoughts? |
graphs/util/db.py
Outdated
| return {'Error': 'No share graph event found.'} | ||
|
|
||
|
|
||
| def get_share_graph_event_by_member_id_and_group_id(member_id, group_id): |
|
@adbharadwaj The left group column uses groups from grouped_notifications.keys() to fetch the groups, if all the notifications are read then it will not be possible to fetch groups for the user so I have added a new controller method |
|
|
||
| $('[data-toggle="tooltip"]').tooltip(); | ||
| // grey out notification row and remove the tick mark for notification row | ||
| var manipulate_dom = function(notification_ids){ |
There was a problem hiding this comment.
rename method name to "grey_out_notifications"








Screen after logging in


Click on notifications in the nav bar.
@adbharadwaj @tmmurali