[QTI] Remove the server wait for possibly stale cached assessment items

未关闭
#6,341 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
25/100
Issue 类型
重构
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
backend

调研方向

Read the startup cleanup and its tests from issue #6340, then identify the EditModal test that checks complete when loading fails. Remove the startup cleanup and its cleanup tests while preserving that EditModal behavior; done means startup no longer touches the assessment item table and the acceptance criteria pass. The issue says this work is not open for contribution, so find a suitable issue through the contributing guidelines.

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

描述

DEV: frontend

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

This is a reminder. The checks from #6340 only matter while caches may hold legacy items, or edits from tabs still on the old assets. Both come from the weeks around the QTI release. Once active users have opened their exercises on the new assets, remove them.

Part of #6337. Ships in the cleanup release: the first hotfixes release after the QTI release has been in production for about a month.

Complexity: Low
Target branch: hotfixes

Context
  • #6340 makes loadAssessmentItems wait for the server on an exercise's first open after a page load, and when its cached items include a legacy one.
  • An exercise that isn't opened between the QTI release and the cleanup release keeps its cached legacy items. When it's opened, the background refresh updates IndexedDB but not the open exercise, so its legacy items show as unsupported until it's reopened.
The Change
  • Delete #6340's checks and their tests.
Acceptance Criteria
  • loadAssessmentItems no longer waits for the server on a first open after a page load, or when cached items are legacy
  • #6340's tests are removed

AI usage

I outlined the approach. Claude drafted the issue, which I then checked and corrected for accuracy.

主要语言
Python
星标
212
派生
321
平均合并
1 天 7 小时
30 天内合并 PR
14

环境准备

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

从这里开始

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

learningequality/studio 的其他 Issue

查看 learningequality/studio 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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