Skip to content

IgnoredEvaluations, evaluation notes, CMS link icons#2602

Merged
niklasmohrin merged 4 commits intoe-valuation:mainfrom
janno42:importer-ignored-evaluations
Feb 9, 2026
Merged

IgnoredEvaluations, evaluation notes, CMS link icons#2602
niklasmohrin merged 4 commits intoe-valuation:mainfrom
janno42:importer-ignored-evaluations

Conversation

@janno42
Copy link
Copy Markdown
Member

@janno42 janno42 commented Jan 12, 2026

We need to keep track of which evaluations have been deleted so that we don't import them again -> IgnoredEvaluation
I'm happy to discuss the way it's implemented and naming; I don't have any strong feelings about them.

It would also help to have manager notes for evaluations, such as who said an evaluation could be deleted and when or any other things to remember for later preparation -> Evaluation.notes
I'd also like to see which courses and evaluations are linked to the CMS -> link icons

@niklasmohrin niklasmohrin removed their request for review January 12, 2026 18:56
@janno42 janno42 force-pushed the importer-ignored-evaluations branch from 1cd7749 to 508eeac Compare January 12, 2026 21:38
@janno42 janno42 force-pushed the importer-ignored-evaluations branch 2 times, most recently from d1d2b02 to a5e2878 Compare January 13, 2026 21:56
Copy link
Copy Markdown
Member

@niklasmohrin niklasmohrin left a comment

Choose a reason for hiding this comment

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

makes sense; haven't checked frontend stuff yet, here are some comments from looking at the code:

Comment thread evap/evaluation/models.py Outdated
Comment thread evap/cms/management/commands/__init__.py
Comment thread evap/cms/json_importer.py Outdated
Comment thread evap/cms/models.py
Comment thread evap/cms/models.py Outdated
@janno42 janno42 force-pushed the importer-ignored-evaluations branch from 0416880 to b0adef0 Compare January 26, 2026 19:02
Copy link
Copy Markdown
Member

@richardebeling richardebeling left a comment

Choose a reason for hiding this comment

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

I have all files marked as "viewed" now, all code looked good to me at some point, but I'm not sure if everything is consistent within the "new app" approach now. Let me know if I should re-review or something

@janno42
Copy link
Copy Markdown
Member Author

janno42 commented Feb 2, 2026

The new app is currently on a separate branch and almost ready for its own PR. I'm just waiting for this PR to be merged :)
If you prefer a different approach and want to do everything in one PR, let me know.

@janno42 janno42 force-pushed the importer-ignored-evaluations branch 2 times, most recently from bc945d7 to 131eef2 Compare February 2, 2026 20:18
Copy link
Copy Markdown
Member

@niklasmohrin niklasmohrin left a comment

Choose a reason for hiding this comment

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

still need to check with a test file

Comment thread evap/staff/templates/staff_evaluation_form.html Outdated
Copy link
Copy Markdown
Member

@niklasmohrin niklasmohrin left a comment

Choose a reason for hiding this comment

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

Nice :)

from evap.evaluation.models_logging import LogEntry
from evap.staff.importers.json import ImportDict, JSONImporter, NameChange, WarningMessage, _clean_whitespaces

EXAMPLE_DATA: ImportDict = {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

note (to self): depending on whether we merge this or #2634 first, we need to move the file and update the module name in the import then

Comment thread evap/cms/json_importer.py
) -> Evaluation | None:
# Don't import ignored evaluations again
if IgnoredEvaluation.objects.filter(cms_id=data["gguid"]).exists():
return None
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not blocking, but we should add a note here that this evaluation was ignored; I guess a warning on self.statistics is a bit much, maybe ImportStatistics could get a new info_messages field?

I think some of our young contributors can figure this one out :)

@janno42 janno42 force-pushed the importer-ignored-evaluations branch from 131eef2 to f8d024d Compare February 9, 2026 17:21
@janno42 janno42 force-pushed the importer-ignored-evaluations branch from f8d024d to 11f19f5 Compare February 9, 2026 18:07
@niklasmohrin niklasmohrin merged commit 9a627c7 into e-valuation:main Feb 9, 2026
14 of 15 checks passed
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.

3 participants