Skip to content

Importer evaluation merge and other things#2649

Open
janno42 wants to merge 7 commits intoe-valuation:mainfrom
janno42:importer-evaluation-merge
Open

Importer evaluation merge and other things#2649
janno42 wants to merge 7 commits intoe-valuation:mainfrom
janno42:importer-evaluation-merge

Conversation

@janno42
Copy link
Member

@janno42 janno42 commented Feb 23, 2026

see commit messages, best reviewed individually

Copy link
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.

First pass with some suggestions; haven't looked at evaluation merging or UI yet


self.assertEqual(course.semester, self.semester)
self.assertEqual(course.cms_id, EXAMPLE_DATA["events"][0]["gguid"])
self.assertEqual(course.course_links.first().cms_id, EXAMPLE_DATA["events"][0]["gguid"])
Copy link
Member

Choose a reason for hiding this comment

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

wouldn't it be nicer if we would use course.cms_links as the reverse name? (same for evaluation)

Copy link
Member Author

Choose a reason for hiding this comment

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

wouldn't it be confusing that course.cms_links returns CourseLinks?

Copy link
Member

Choose a reason for hiding this comment

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

Hm, fair point. I feel that from the pov of a course, I cannot grasp what a course link is, it could well be a link to the moodle or something. That's why I feel the word CMS must be in there. Now if a course has a "CMS link", I would be fine if that is a specialized type evap.cms.models.CourseLink

I would also be fine with cms_course_links


self.assertEqual(course.semester, self.semester)
self.assertEqual(course.cms_id, EXAMPLE_DATA["events"][0]["gguid"])
self.assertEqual(course.course_links.first().cms_id, EXAMPLE_DATA["events"][0]["gguid"])
Copy link
Member

Choose a reason for hiding this comment

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

also, I suppose it should be list(course.course_links.values_list(flat=True)) == [...]

@janno42 janno42 force-pushed the importer-evaluation-merge branch from c978d7c to 2a2d3b4 Compare March 1, 2026 10:08
@janno42 janno42 force-pushed the importer-evaluation-merge branch from 2a2d3b4 to 880038c Compare March 10, 2026 15:09
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.

2 participants