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

Customizable evaluation results filters #2232

Open
wants to merge 56 commits into
base: main
Choose a base branch
from

Conversation

jooooosef
Copy link
Collaborator

@jooooosef jooooosef commented Jun 24, 2024

fix #1786

@jooooosef jooooosef marked this pull request as draft June 24, 2024 20:49
@jooooosef jooooosef changed the title Customizable evaluation results filters #1786 Customizable evaluation results filters Jun 24, 2024
@ybrnr ybrnr force-pushed the iss1786 branch 4 times, most recently from 0127464 to ca11745 Compare July 8, 2024 15:48
Copy link
Member

@janno42 janno42 left a comment

Choose a reason for hiding this comment

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

  • looks good, most parts work as expected
  • tests not reviewed yet

evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/views.py Outdated Show resolved Hide resolved
evap/results/views.py Outdated Show resolved Hide resolved
evap/results/views.py Outdated Show resolved Hide resolved
evap/results/views.py Outdated Show resolved Hide resolved
evap/results/views.py Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/views.py Show resolved Hide resolved
evap/results/tests/test_views.py Outdated Show resolved Hide resolved
evap/results/tests/test_views.py Outdated Show resolved Hide resolved
evap/results/tests/test_views.py Outdated Show resolved Hide resolved
evap/results/tests/test_views.py Outdated Show resolved Hide resolved
evap/results/tests/test_views.py Outdated Show resolved Hide resolved
evap/results/tests/test_views.py Outdated Show resolved Hide resolved
@richardebeling richardebeling changed the title Customizable evaluation results filters Customizable evaluation results filters Oct 14, 2024
@ybrnr ybrnr force-pushed the iss1786 branch 2 times, most recently from 9bd5cea to 8aaee00 Compare October 21, 2024 16:22
@ybrnr ybrnr force-pushed the iss1786 branch 2 times, most recently from e77a156 to 73c3a65 Compare October 28, 2024 22:50
@jooooosef jooooosef marked this pull request as ready for review November 18, 2024 22:04
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/tests/test_views.py Outdated Show resolved Hide resolved
evap/results/tests/test_views.py Outdated Show resolved Hide resolved
evap/results/tests/test_views.py Show resolved Hide resolved
evap/results/tests/test_views.py Outdated Show resolved Hide resolved
evap/results/tools.py Outdated Show resolved Hide resolved
evap/results/views.py Show resolved Hide resolved
evap/results/views.py Outdated Show resolved Hide resolved
evap/results/views.py Show resolved Hide resolved
evap/staff/templates/staff_user_form.html Show resolved Hide resolved
evap/results/tools.py Outdated Show resolved Hide resolved
evap/results/tools.py Outdated Show resolved Hide resolved
evap/results/tools.py Outdated Show resolved Hide resolved
evap/results/views.py Outdated Show resolved Hide resolved
evap/results/tests/test_views.py Outdated Show resolved Hide resolved
evap/results/tests/test_views.py Outdated Show resolved Hide resolved
evap/results/tests/test_views.py Outdated Show resolved Hide resolved
ybrnr and others added 12 commits December 16, 2024 21:32
made the can_see_general_textanswers and the contributor counterpart also consider the represtened users
make difference between remove_textanswers_that_the_user_must_not_see and can_textanswer_be_seen_by clearer for the future
when users cannot or should not click specific textanswer buttons (because it does not make sense) they should still be there for consistency but should be disabled
removed unnecessary comment and fixed HTML broken indentations and whitespaces
Co-authored-by: Yannik <ybrnr@users.noreply.github.com>
jooooosef and others added 2 commits December 16, 2024 22:19
implemented smaller changes that were quested in PR.
- removed comments
- itereated over enums directly
- changed the name in this itereation from con_view to contributor_view (same for gen_view)
- correclty formatted HTML comment
- made things that should be in one line to be in one line
- implemented variables for reused expected answers (on method and instance level) in test_views.py

Co-authored-by: Yannik <ybrnr@users.noreply.github.com>
showing a tooltip with title is not possible since the tag has the disabled class and therefore does not accept any mouse events.
Also: formatted code.

Co-authored-by: Yannik <ybrnr@users.noreply.github.com>
Copy link
Collaborator

@Kakadus Kakadus left a comment

Choose a reason for hiding this comment

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

some last comments from me :)

evap/results/views.py Outdated Show resolved Hide resolved
evap/results/views.py Outdated Show resolved Hide resolved
evap/results/tools.py Outdated Show resolved Hide resolved
jooooosef and others added 5 commits January 6, 2025 20:41
Removed tooltip from individual buttons and added a big one on label of the results button groups, since it is not simply possible to show a tooltip on a disabled button.

Co-authored-by: Yannik <ybrnr@users.noreply.github.com>
Test seems to be deleted by accident.
Added it again.
should (maybe?) be a lil faster. But was recommend so here.
This uses the db to check if one of the represented users is a responsible.
Copy link
Member

@janno42 janno42 left a comment

Choose a reason for hiding this comment

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

This nice, want have.
(After changing these little things)

evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
evap/results/templates/results_evaluation_detail.html Outdated Show resolved Hide resolved
@jooooosef
Copy link
Collaborator Author

jooooosef commented Jan 13, 2025

I just realised that when I use the contributor and go in a contribution where I dont have general_textanswers rights but can edit change the contributor settings that the value for the view_general_results parameter is not set correctly.
Example:
user: contributor@institution.example.com
contribution: Operating Systems I
click on ratings

Why is that? @janno42

removed tooltips and changed some labels
@janno42
Copy link
Member

janno42 commented Jan 20, 2025

I just realised that when I use the contributor and go in a contribution where I dont have general_textanswers rights but can edit change the contributor settings that the value for the view_general_results parameter is not set correctly. Example: user: contributor@institution.example.com contribution: Operating Systems I click on ratings

Why is that? @janno42

Probably because you don't set the value and in evaluation_detail_parse_get_parameters the default is FULL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Customizable evaluation results filters
6 participants