activity_log has warnings in GatewayQuiz

未关闭 适合新手
#3,295 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
perl
领域
backend

调研方向

警告指向 lib/WeBWorK/ContentGenerator.pm 第313行的 prepare_activity_entry 方法。首先阅读该方法,并在受监考的测试中启用 activity_log 后切换题目,以复现警告;如果 develop 分支可用,请与之比较。警告得到解决且活动日志仍能正确记录题目切换时,工作即告完成。

由索引模型根据 Issue 内容生成。

描述

I was testing the activity log by setting $courseFiles{logs}{activity_log} = "$courseDirs{logs}/activity.log", and there are warnings when switching problems while taking a proctored test (unsure if the proctored test is important or not). I have only reproduced this on my production 2.21 server, haven't tried in develop. The warning is:

Use of uninitialized value in concatenation (.) or string at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm line 313.

This is part of the prepare_activity_entry method.

主要语言
Perl
星标
164
派生
167
平均合并
6 天 7 小时
30 天内合并 PR
27

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

openwebwork/webwork2 的其他 Issue

查看 openwebwork/webwork2 的全部 Issue

相似的 Issue

更多 Perl Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。