Resolve "Dashboard" #1745

Merged
hansegucker merged 18 commits from 30-dashboard into master 2020-01-06 22:27:30 +01:00
Owner
No description provided.
Owner

changed the description

changed the description
Author
Owner

added 1 commit

  • d1606ab4 - Add basic view and template for dashboard.

Compare with previous version

added 1 commit <ul><li>d1606ab4 - Add basic view and template for dashboard.</li></ul> [Compare with previous version](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1014&start_sha=de16ace3655181599e54012f2be7cd6d4aa921ef)
Owner

We shouldn't include that in AlekSIS.

We shouldn't include that in AlekSIS.
Owner

Finish translation.

Finish translation.
Author
Owner

changed this line in version 2 of the diff

changed this line in [version 2 of the diff](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1015&start_sha=d1606ab40baa8d3ff7f7f13859d7200f4b13e5df#c70246bfe92cadfda1fc62372879594d38d383ba_7_7)
Author
Owner

added 1 commit

  • d0fc5044 - Remove superflous stuff from dashboard.

Compare with previous version

added 1 commit <ul><li>d0fc5044 - Remove superflous stuff from dashboard.</li></ul> [Compare with previous version](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1015&start_sha=d1606ab40baa8d3ff7f7f13859d7200f4b13e5df)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>c651ef22 - Make strings translatable.</li></ul> [Compare with previous version](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1016&start_sha=d0fc504472aaa5cbd5a9882f0d9013874af452ff)
Author
Owner

resolved all threads

resolved all threads
Author
Owner

added 30 commits

  • c651ef22...b40be365 - 28 commits from branch master
  • 9b99b876 - Add function to mark notifications as read.
  • f1f890f5 - Merge branch 'master' into 30-dashboard

Compare with previous version

added 30 commits <ul><li>c651ef22...b40be365 - 28 commits from branch <code>master</code></li><li>9b99b876 - Add function to mark notifications as read.</li><li>f1f890f5 - Merge branch &#39;master&#39; into 30-dashboard</li></ul> [Compare with previous version](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1032&start_sha=c651ef228eda546381a414b5ca4bbc576b68fb0c)
Owner

changed this line in version 5 of the diff

changed this line in [version 5 of the diff](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1033&start_sha=f1f890f59f83cc14838fbc63ab0aad0891c468fe#c70246bfe92cadfda1fc62372879594d38d383ba_11_5)
Owner

added 2 commits

  • 0c7d5a4f - Fix way for marking notifications as read
  • 3ad44c4d - Update dashboard template

Compare with previous version

added 2 commits <ul><li>0c7d5a4f - Fix way for marking notifications as read</li><li>3ad44c4d - Update dashboard template</li></ul> [Compare with previous version](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1033&start_sha=f1f890f59f83cc14838fbc63ab0aad0891c468fe)
Owner

added 5 commits

  • 3ad44c4d...c27ce08c - 3 commits from branch master
  • ece7161e - Merge branch 'master' into 30-dashboard
  • 5b444ff9 - Update dashboard views to use person model instead of user model

Compare with previous version

added 5 commits <ul><li>3ad44c4d...c27ce08c - 3 commits from branch <code>master</code></li><li>ece7161e - Merge branch &#39;master&#39; into 30-dashboard</li><li>5b444ff9 - Update dashboard views to use person model instead of user model</li></ul> [Compare with previous version](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1039&start_sha=3ad44c4d33e6db43a6da27796f321642e9247f87)
Author
Owner

added 1 commit

  • 1b484b4b - Fix view if person is not authenticated.

Compare with previous version

added 1 commit <ul><li>1b484b4b - Fix view if person is not authenticated.</li></ul> [Compare with previous version](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1041&start_sha=5b444ff9fae8b86461caa5ffbeb409001002cfa5)
Owner

added 1 commit

  • d5b47039 - Add login_required to dashboard in order to show login page if not authenticated

Compare with previous version

added 1 commit <ul><li>d5b47039 - Add login_required to dashboard in order to show login page if not authenticated</li></ul> [Compare with previous version](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1042&start_sha=1b484b4beeda9ed7d2e7432b2ddc84982d118716)
Owner

@debdolph @nik I think we can merge this request. The other dashboard features can be added later.

@debdolph @nik I think we can merge this request. The other dashboard features can be added later.
Author
Owner

Everything works fine with the dashboard. Maybe @nik can take a quick look and merge this MR after review.

Everything works fine with the dashboard. Maybe @nik can take a quick look and merge this MR after review.
Author
Owner

added 18 commits

  • d5b47039...4b045281 - 15 commits from branch master
  • 224420bd - Merge branch 'master' into 30-dashboard
  • 1741b6cf - Merge branch '30-dashboard' of edugit.org:AlekSIS/AlekSIS into 30-dashboard
  • b8617090 - Merge branch 'master' into 30-dashboard

Compare with previous version

added 18 commits <ul><li>d5b47039...4b045281 - 15 commits from branch <code>master</code></li><li>224420bd - Merge branch &#39;master&#39; into 30-dashboard</li><li>1741b6cf - Merge branch &#39;30-dashboard&#39; of edugit.org:AlekSIS/AlekSIS into 30-dashboard</li><li>b8617090 - Merge branch &#39;master&#39; into 30-dashboard</li></ul> [Compare with previous version](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1044&start_sha=d5b47039000d2a9987c4c2cfda857f07fc4b73dd)
Author
Owner

unmarked as a Work In Progress

unmarked as a **Work In Progress**
Owner

Unrelated change - also, it seems the overriding of thepage title from sub-templates has gone missing somewhere... Please open a new issue for that so we remember it beore resolving this thread.

Unrelated change - also, it seems the overriding of thepage title from sub-templates has gone missing somewhere... Please open a new issue for that so we remember it beore resolving this thread.
Owner

This should be ENglish and more general.

This should be ENglish and more general.
Owner

The ordering should be the default for the model. Please move it to its Meta definition. Also, what is wrong with request.user.person.activities instead of this query?

        activities = request.user.person.activities.all()[:5]

Lastly, please note that you need to check whether the user is actually linked to a person before using the .person relation.

The ordering should be the default for the model. Please move it to its Meta definition. Also, what is wrong with `request.user.person.activities` instead of this query? ```suggestion:-0+0 activities = request.user.person.activities.all()[:5] ``` Lastly, please note that you need to check whether the user is actually linked to a person before using the `.person` relation.
Owner

If you use this renaming, please use the short name in all places later. Or remove this and use explicit request.user everywhere.

If you use this renaming, please use the short name in all places later. Or remove this and use explicit `request.user` everywhere.
Author
Owner

changed this line in version 10 of the diff

changed this line in [version 10 of the diff](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1045&start_sha=b8617090aa0e7f81472aa0ba8d4c3f221253c544#ca5e4a886c594c4b59402dbdbd16348bdbcddf3a_30_30)
Author
Owner

added 1 commit

  • deec0fe5 - Apply suggestion to aleksis/core/views.py

Compare with previous version

added 1 commit <ul><li>deec0fe5 - Apply suggestion to aleksis/core/views.py</li></ul> [Compare with previous version](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1045&start_sha=b8617090aa0e7f81472aa0ba8d4c3f221253c544)
Owner

The .filter() does not make sense as you are operating on the relation on Person nayway. For the order_by, please see above.

The `.filter()` does not make sense as you are operating on the relation on `Person` nayway. For the `order_by`, please see above.
Owner

See above.

See above.
Owner

See above.

See above.
Author
Owner

created #146 to continue this discussion

created #146 to continue this discussion
Author
Owner

mentioned in issue #146

mentioned in issue #146
Owner

Only admins are able to mark notifications as read?

Only admins are able to mark notifications as read?
Owner

This function is insecure. It allows everyone (assuming the admin_required is wrong) to mark everyone's notifications as read. You need to check that the notification to act upon is related to the user calling the view.

This function is insecure. It allows everyone (assuming the `admin_required` is wrong) to mark everyone's notifications as read. You need to check that the notification to act upon is related to the user calling the view.
Owner

removed milestone

removed milestone
Author
Owner

changed this line in version 11 of the diff

changed this line in [version 11 of the diff](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1046&start_sha=deec0fe52f65288e02e08a9a47974e0708615e14#afebbb8b618230f7d6b0b696821439e7450eb037_13_13)
Author
Owner

changed this line in version 11 of the diff

changed this line in [version 11 of the diff](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1046&start_sha=deec0fe52f65288e02e08a9a47974e0708615e14#ca5e4a886c594c4b59402dbdbd16348bdbcddf3a_27_27)
Author
Owner

changed this line in version 11 of the diff

changed this line in [version 11 of the diff](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1046&start_sha=deec0fe52f65288e02e08a9a47974e0708615e14#ca5e4a886c594c4b59402dbdbd16348bdbcddf3a_33_31)
Author
Owner

changed this line in version 11 of the diff

changed this line in [version 11 of the diff](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1046&start_sha=deec0fe52f65288e02e08a9a47974e0708615e14#ca5e4a886c594c4b59402dbdbd16348bdbcddf3a_37_34)
Author
Owner

changed this line in version 11 of the diff

changed this line in [version 11 of the diff](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1046&start_sha=deec0fe52f65288e02e08a9a47974e0708615e14#ca5e4a886c594c4b59402dbdbd16348bdbcddf3a_38_34)
Author
Owner

changed this line in version 11 of the diff

changed this line in [version 11 of the diff](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1046&start_sha=deec0fe52f65288e02e08a9a47974e0708615e14#ca5e4a886c594c4b59402dbdbd16348bdbcddf3a_262_258)
Author
Owner

added 1 commit

  • f31818df - Improve code of dashboard.

Compare with previous version

added 1 commit <ul><li>f31818df - Improve code of dashboard.</li></ul> [Compare with previous version](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1046&start_sha=deec0fe52f65288e02e08a9a47974e0708615e14)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>ab4a07b8 - Improve code of dashboard.</li></ul> [Compare with previous version](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1047&start_sha=f31818df31e95f49bb4b7fbc2a14d311fd594fd7)
Author
Owner

resolved all threads

resolved all threads
Owner

Please make this thread translatable.

Please make this thread translatable.
Author
Owner

assigned to @nik

assigned to @nik
Owner

Please throw a matching HTTP error instead.

Please throw a matching HTTP error instead.
Author
Owner

changed this line in version 13 of the diff

changed this line in [version 13 of the diff](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1048&start_sha=ab4a07b8d46d208a5bd440b70e4e000bb65b8813#afebbb8b618230f7d6b0b696821439e7450eb037_15_15)
Author
Owner

changed this line in version 13 of the diff

changed this line in [version 13 of the diff](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1048&start_sha=ab4a07b8d46d208a5bd440b70e4e000bb65b8813#afebbb8b618230f7d6b0b696821439e7450eb037_13_13)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>ea317c6a - Make strings translateable.</li></ul> [Compare with previous version](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1048&start_sha=ab4a07b8d46d208a5bd440b70e4e000bb65b8813)
Author
Owner

resolved all threads

resolved all threads
Author
Owner

changed this line in version 14 of the diff

changed this line in [version 14 of the diff](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1049&start_sha=ea317c6afe58c74b7faae3f49fda838306b5dfd6#ca5e4a886c594c4b59402dbdbd16348bdbcddf3a_267_268)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>ad3a5f45 - Raise exception.</li></ul> [Compare with previous version](/AlekSIS/AlekSIS/merge_requests/100/diffs?diff_id=1049&start_sha=ea317c6afe58c74b7faae3f49fda838306b5dfd6)
Owner

merged

merged
Owner

mentioned in commit 227d1a6b88

mentioned in commit 227d1a6b887b697ae95323a8eb1e11fa5d602765
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core!1745
No description provided.