Skip to content

Conversation

@florian-glombik
Copy link
Contributor

@florian-glombik florian-glombik commented Jul 7, 2025

Checklist

General

Client

Motivation and Context

The Add attachment as lecture unit button does not work on develop since #10575; this will be fixed by this PR.

While fixing it, I've noticed that the route definition can be simplified by using constants for the authorities.

Description

  • Exchange redundant authorities definition with constants
  • Fix route definition (and thereby the Add attachment as lecture unit button)
  • Remove the Attachments status section from the edit lecture page, which was forgotten when the section itself was removed in Lectures: Prefer attachment units over attachments #10708

Steps for Testing

  1. Create a lecture (or use an existing one)
  2. Edit the Attachments of the lecture
  3. Verify the Add attachment as lecture unit button forwards you to a new page

Testserver States

You can manage test servers using Helios. Check environment statuses in the environment list. To deploy to a test server, go to the CI/CD page, find your PR or branch, and trigger the deployment.

Review Progress

Performance Review

Code Review

  • Code Review 1
  • Code Review 2

Manual Tests

  • Test 1
  • Test 2

Test Coverage

Addded an E2E test

Screenshots

Attachment units forwarding works again

attachmentUnitButtonWorks

Before fix

attachmentUnitButtonBroken

Removed Attachments section from status bar

image
Before fix

Attachments section does not exist anymore on that page, will always be invalid

image

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features

    • Added hierarchical role groups for access control, simplifying permissions across course and lecture management sections.
    • Improved navigation for adding lecture attachments by updating button links and identifiers.
  • Bug Fixes

    • Streamlined visibility of lecture management links by consolidating permission checks and adding unique identifiers for easier access.
  • Tests

    • Introduced new automated tests to verify the process of opening the attachment unit creation page in lecture management.
    • Enhanced test utilities to support navigation and interaction with lecture attachments.

@github-project-automation github-project-automation bot moved this to Work In Progress in Artemis Development Jul 7, 2025
@github-actions github-actions bot added client Pull requests that update TypeScript code. (Added Automatically!) core Pull requests that affect the corresponding module iris Pull requests that affect the corresponding module lecture Pull requests that affect the corresponding module labels Jul 7, 2025
@github-actions
Copy link

github-actions bot commented Jul 7, 2025

End-to-End (E2E) Test Results Summary

TestsPassed ☑️Skipped ⚠️Failed ❌️Time ⏱
End-to-End (E2E) Test Report201 ran195 passed3 skipped3 failed58m 56s 470ms
TestResultTime ⏱
End-to-End (E2E) Test Report
e2e/exercise/quiz-exercise/QuizExerciseManagement.spec.ts
ts.Quiz Exercise Management › Quiz Exercise Creation › Creates a Quiz with Drag and Drop❌ failure2m 3s 523ms
e2e/exercise/programming/ProgrammingExerciseParticipation.spec.ts
ts.Programming exercise participation › Programming exercise team participation › Team members make git submissions❌ failure47s 100ms
e2e/exercise/programming/ProgrammingExerciseStaticCodeAnalysis.spec.ts
ts.Static code analysis tests › Configures SCA grading and makes a successful submission with SCA errors❌ failure2m 13s 755ms

coderabbitai[bot]
coderabbitai bot previously approved these changes Jul 7, 2025
@florian-glombik florian-glombik changed the title Lectures: Fix attachment units Lectures: Fix attachment lecture units creation Jul 7, 2025
@florian-glombik florian-glombik marked this pull request as ready for review July 7, 2025 13:14
@florian-glombik florian-glombik requested review from a team and krusche as code owners July 7, 2025 13:14
@github-actions github-actions bot removed the iris Pull requests that affect the corresponding module label Jul 7, 2025
@github-actions
Copy link

github-actions bot commented Jul 7, 2025

End-to-End (E2E) Test Results Summary

TestsPassed ✅SkippedFailedTime ⏱
End-to-End (E2E) Test Report1 ran1 passed0 skipped0 failed1s 689ms
TestResultTime ⏱
No test annotations available

@github-actions
Copy link

github-actions bot commented Jul 8, 2025

End-to-End (E2E) Test Results Summary

TestsPassed ☑️Skipped ⚠️Failed ❌️Time ⏱
End-to-End (E2E) Test Report202 ran197 passed3 skipped2 failed54m 14s 691ms
TestResultTime ⏱
End-to-End (E2E) Test Report
e2e/exercise/quiz-exercise/QuizExerciseManagement.spec.ts
ts.Quiz Exercise Management › Quiz Exercise Creation › Creates a Quiz with Drag and Drop❌ failure2m 3s 760ms
e2e/exercise/programming/ProgrammingExerciseParticipation.spec.ts
ts.Programming exercise participation › Programming exercise team participation › Team members make git submissions❌ failure39s 264ms

@helios-aet helios-aet bot temporarily deployed to artemis-test4.artemis.cit.tum.de July 8, 2025 01:00 Inactive
Copy link
Contributor

@ahmetsenturk ahmetsenturk left a comment

Choose a reason for hiding this comment

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

code

@helios-aet helios-aet bot temporarily deployed to artemis-test2.artemis.cit.tum.de July 8, 2025 12:58 Inactive
@cemsinan-tum
Copy link

Tested on artemis-test2 via instructor account 15, it works as intended.

@cemsinan-tum cemsinan-tum reopened this Jul 8, 2025
@github-project-automation github-project-automation bot moved this from Ready For Review to Work In Progress in Artemis Development Jul 8, 2025
@github-actions
Copy link

github-actions bot commented Jul 8, 2025

End-to-End (E2E) Test Results Summary

TestsPassed ☑️Skipped ⚠️Failed ❌️Time ⏱
End-to-End (E2E) Test Report202 ran196 passed3 skipped3 failed57m 17s 331ms
TestResultTime ⏱
End-to-End (E2E) Test Report
e2e/exercise/quiz-exercise/QuizExerciseParticipation.spec.ts
ts.Quiz Exercise Participation › DnD Quiz participation › Student can participate in DnD Quiz❌ failure2m 3s 214ms
e2e/exercise/programming/ProgrammingExerciseParticipation.spec.ts
ts.Programming exercise participation › Programming exercise team participation › Team members make git submissions❌ failure42s 428ms
e2e/exercise/programming/ProgrammingExerciseStaticCodeAnalysis.spec.ts
ts.Static code analysis tests › Configures SCA grading and makes a successful submission with SCA errors❌ failure2m 8s 788ms

Copy link
Contributor

@tobias-lippert tobias-lippert left a comment

Choose a reason for hiding this comment

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

code

@helios-aet helios-aet bot temporarily deployed to artemis-test2.artemis.cit.tum.de July 9, 2025 08:05 Inactive
Copy link
Contributor

@jonas-de jonas-de left a comment

Choose a reason for hiding this comment

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

works as expected on TS2, code changes look good

@florian-glombik florian-glombik moved this from Work In Progress to Developer Approved in Artemis Development Jul 9, 2025
@github-actions
Copy link

github-actions bot commented Jul 9, 2025

End-to-End (E2E) Test Results Summary

TestsPassed ☑️Skipped ⚠️Failed ❌️Time ⏱
End-to-End (E2E) Test Report202 ran197 passed3 skipped2 failed56m 37s 845ms
TestResultTime ⏱
End-to-End (E2E) Test Report
e2e/exercise/programming/ProgrammingExerciseParticipation.spec.ts
ts.Programming exercise participation › Programming exercise team participation › Team members make git submissions❌ failure45s 46ms
e2e/exercise/programming/ProgrammingExerciseStaticCodeAnalysis.spec.ts
ts.Static code analysis tests › Configures SCA grading and makes a successful submission with SCA errors❌ failure2m 12s 874ms

Copy link
Contributor

@badkeyy badkeyy left a comment

Choose a reason for hiding this comment

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

(Rereview) Code

@helios-aet helios-aet bot temporarily deployed to artemis-test6.artemis.cit.tum.de July 9, 2025 18:21 Inactive
Copy link

@chuuuun chuuuun left a comment

Choose a reason for hiding this comment

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

worked expected on ts6 : )

Copy link
Member

@konrad2002 konrad2002 left a comment

Choose a reason for hiding this comment

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

tested on TS2, works as expected

@krusche krusche merged commit 3826642 into develop Jul 10, 2025
33 of 38 checks passed
@krusche krusche deleted the bugfix/lecture/fix-attachment-units branch July 10, 2025 16:47
@github-project-automation github-project-automation bot moved this from Developer Approved to Merged in Artemis Development Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

client Pull requests that update TypeScript code. (Added Automatically!) core Pull requests that affect the corresponding module lecture Pull requests that affect the corresponding module playwright ready for review ready to merge tests

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Add attachment as lecture unit does NOT work