-
Notifications
You must be signed in to change notification settings - Fork 14
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
refactor: migrate live quiz to unified data structure (i.e., from question instances/blocks to element block and element instances) #4338
Conversation
…ting (#4337) Co-authored-by: Roland Schläfli <rolandschlaefli@gmail.com>
Current Aviator status
This PR was merged manually (without Aviator). Merging manually can negatively impact the performance of the queue. Consider using Aviator next time.
See the real-time status of this PR on the
Aviator webapp.
Use the Aviator Chrome Extension
to see the status of your PR within GitHub.
|
Important Review skippedMore than 25% of the files skipped due to max files limit. The review is being skipped to prevent a low-quality review. 178 files out of 300 files are above the max files limit of 75. Please upgrade to Pro plan to get higher limits. You can disable this status message by setting the 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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
klicker-uzh Run #3726
Run Properties:
|
Project |
klicker-uzh
|
Branch Review |
v3
|
Run status |
Passed #3726
|
Run duration | 11m 51s |
Commit |
801d9f047f: refactor: migrate live quiz to unified data structure (i.e., from question insta...
|
Committer | Roland Schläfli |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
146
|
View all changes introduced in this branch ↗︎ |
klicker-uzh Run #3725
Run Properties:
|
Project |
klicker-uzh
|
Branch Review |
v3-new-live-quiz
|
Run status |
Passed #3725
|
Run duration | 11m 47s |
Commit |
b9c73782b1 ℹ️: Merge c4e050f4549b64c9806222a4b1db1d601098d09e into b014faa40c46f4371e663c05a134...
|
Committer | Julius Schlapbach |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
146
|
View all changes introduced in this branch ↗︎ |
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
1509424 | Triggered | Generic Password | 761360a | docker-compose.yml | View secret |
1509424 | Triggered | Generic Password | 761360a | deploy/compose/docker-compose.yml | View secret |
1623504 | Triggered | Username Password | 761360a | deploy/compose-traefik-proxy/klicker/services.env | View secret |
1509424 | Triggered | Generic Password | 761360a | deploy/compose/docker-compose.yml | View secret |
1509424 | Triggered | Generic Password | c06d004 | util/_restore-db.sh | View secret |
1509424 | Triggered | Generic Password | c06d004 | util/_restore-db.sh | View secret |
1509424 | Triggered | Generic Password | c06d004 | docker-compose.yml | View secret |
1509424 | Triggered | Generic Password | c06d004 | util/_restore-db.sh | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
… from redis session
…w-live-quiz # Conflicts: # apps/frontend-manage/src/components/activities/creation/practiceQuiz/PracticeQuizSettingsStep.tsx # apps/frontend-manage/src/components/activities/creation/practiceQuiz/PracticeQuizWizard.tsx # cypress/cypress/e2e/H-practice-quiz-workflow.cy.ts # packages/graphql/src/ops.ts # packages/graphql/src/public/client.json # packages/graphql/src/public/schema.graphql # packages/graphql/src/public/server.json # pnpm-lock.yaml
Copilot
AI
left a comment
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.
Copilot reviewed 331 out of 346 changed files in this pull request and generated 1 suggestion.
Files not reviewed (15)
- _down_macos.sh: Language not supported
- apps/auth/package.json: Language not supported
- apps/docs/docs/gamification/experience.mdx: Language not supported
- apps/docs/docs/gamification/grading_logic.mdx: Language not supported
- apps/docs/docs/tutorials/course_management.mdx: Language not supported
- apps/docs/docs/tutorials/element_management.mdx: Language not supported
- apps/docs/docs/tutorials/group_activity.mdx: Language not supported
- apps/docs/docs/tutorials/live_qa.mdx: Language not supported
- apps/docs/docs/tutorials/live_quiz.mdx: Language not supported
- apps/docs/docs/tutorials/lti_integration.mdx: Language not supported
- apps/docs/docs/tutorials/microlearning.mdx: Language not supported
- apps/docs/docs/tutorials/practice_quiz.mdx: Language not supported
- apps/backend-docker/scripts/fixQuestionData.ts: Evaluated as low risk
- .github/workflows/cypress-testing.yml: Evaluated as low risk
- .github/workflows/test-graphql.yml: Evaluated as low risk
Comments skipped due to low confidence (1)
CHANGELOG.md:380
- The word 'quesiton' is misspelled. It should be corrected to 'question'.
* ensure that validation in quesiton edit modal works properly ([#4251](https://github.com/uzh-bf/klicker-uzh/issues/4251)) ([5e26453](https://github.com/uzh-bf/klicker-uzh/commit/5e2645381465ccfbf26dac17d2f36b380ef9e4bf))
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…w-live-quiz # Conflicts: # apps/frontend-manage/src/components/activities/creation/CompletionStep.tsx # packages/graphql/src/ops.ts # packages/graphql/src/public/client.json # packages/graphql/src/public/server.json # packages/graphql/src/services/practiceQuizzes.ts
…is sequentially to prevent instance mismatches due to ordering
"react": "18.3.1", | ||
"react-dom": "18.3.1", | ||
"sharp": "0.33.5", |
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.
I believe this is a prod dependency especially in standalone deployments but this might have changed with Next.js 15. I'll add it back and we can check it later :)
apps/frontend-manage/package.json
Outdated
@@ -83,6 +71,7 @@ | |||
"eslint-config-next": "~15.0.0", | |||
"postcss": "~8.4.47", | |||
"postcss-import": "~16.1.0", | |||
"react-tagcloud": "~2.3.3", |
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.
! Why did we move this production dependency to dev deps? Would fail once deployed, as in Docker, we only get "dependencies" installed.
"is-hotkey": "0.2.0", | ||
"js-cookie": "3.0.5", |
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.
! I think this is necessary as we are using it in shared-components (useStickyState) and the component is imported in frontend-manage.
apps/frontend-manage/package.json
Outdated
"js-search": "2.0.1", | ||
"localforage": "1.10.0", |
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.
! Same, used in useStickyState and therefore used in frontend-manage
"react": "18.3.1", | ||
"react-csv-downloader": "3.1.1", |
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.
! this is also used in shared-components (DataTable).
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.
Will merge this now as functionality has been verified and/or fixed. Will be tested further on staging including the other PRs before deployment tomorrow.
Small TODOs for before/after deployment that I saw during testing:
- Fix realtime feedback charts on quiz cockpit not displayed nicely
- Fix countdown block closing but not updating lecturer UI (still showing with 0 sec)
- Fix grid display layout of choice questions
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
DO NOT SQUASH THIS BRANCH ON MERGE - development branch for live quiz migration
Before / after merging and applying this branch, execute the following steps: