-
Notifications
You must be signed in to change notification settings - Fork 297
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
Programming exercises
: Remove the legacy README.md handling
#9220
Programming exercises
: Remove the legacy README.md handling
#9220
Conversation
Programming exercises
: Display the README.md file in the online code editorProgramming exercises
: Remove the legacy README.md handling
...cript/spec/component/programming-exercise/programming-exercise-instruction.component.spec.ts
Show resolved
Hide resolved
src/test/javascript/spec/component/code-editor/code-editor-file-browser.component.spec.ts
Outdated
Show resolved
Hide resolved
|
WalkthroughThe changes primarily enhance the visibility of Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on Ts3, README.md shows up for the student
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me.
Only one little question to this topic: Old exercises have their problem statement in a README.md. Then this approach was replaced, but the README.md was still a fallback option for the problem statement. When was a migration of the README.md files into the new approach (the database)? Without such a migration this PR could break old exercises, isn't it?
@BaumiCoder I asked Stephan about this — the migration was several years ago. We already have a lot of features in Artemis that rely on the problemStatement stored in the DB (grading, tasks, etc.) that wouldn't work with the old README.md approach, so this change wouldn't break any exercises that aren't already broken |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested on ts1, lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code
Checklist
General
Client
Changes affecting Programming Exercises
Motivation and Context
Very long ago (#381), the problem statement of programming exercises was stored in the
README.md
file of the assignment repository. This meant that the online code editor had to filter out this file to prevent modifications. We no longer use this mechanism, so we can remove this restriction.Description
Closes #9214.
Steps for Testing
Prerequisites:
README.md
at the root level of the template repository. Enable the online code editor for this exercise.README.md
file is shown and that you can edit it.Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Code Review
Manual Tests
Test Coverage
Only trivial changes. Coverage of the CodeEditorFileBrowserComponent improves to 95% (roughly +9%p)
Screenshots
No UI changes.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Tests