Performance slowdown when editing the registration section of the submitty-admin user
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- php
- 領域
- backend, databases, performance
調査の方向性
submitty-admin ユーザーの Manage Grades フロー、具体的には edit-grader アクションと registration-section の更新から始めます。多数のコースを含むシステムで再現し、その後、編集によってどのデータベースが開かれ、または更新されるかを追跡します。完了条件は、登録のみの編集で無関係なコースのデータベースに触れず、instructor が他の instructor または superuser の名前とメールアドレスを編集することが制限されていることです。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
On our production system, which has ~10 years worth of courses, dozens of courses per year.
When I go to any course as an instructor user, and go to the Manage Grades page, then click the "edit grader" pencil for the submitty-admin user (the super user who is an instructor in EVERY course) and I make a minor edit, e.g., changing the registration section, the action seems to take a long time.
Yes, this user is in every course, and if I changed the preferred name or email address of that user it would need to update EVERY course database since preferred name and email address are stored redundantly in every database. Opening a connection to each course database is costly, and wasteful if no edit is actually made.
Expected behavior
But the edit I have made only impacts this course, the registration section of the user in this course. Yes, this information is stored in the master database as well as in the course database, but that is only two databases, not every one of the hundreds of course database on our system.
Secondly. I think we should limit the editing that can be done from this "manage students" interface by instructor users. E.g., Instructor users should not be able to edit the preferred names or email addresses of other instructors or of superusers. The editing actions should be limited to edits on student users. NOTE: The reason we allow instructors to edit these details is to help students who are first-time or occasional Submitty users and are overwhelmed by the interface.
To Reproduce
I expect to see this error on a developer VM it will be necessary to create ALOT of additional courses. This error should be reproduced on a developer VM and appropriately documented before a PR is created to solve the problem.
- 主要言語
- PHP
- スター
- 806
- フォーク
- 1.1k
- 平均マージ
- 4日 13時間
- マージ済み PR(30日)
- 53
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Submitty/Submitty のほかの issue
-
bug good first issue Image/PDF Annotation TA Grading / TA UI URGENT / PRIORITY
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 5 日以内に返信
-
Awaiting Triage Bulk Upload / Scanned PDF Submission enhancement / feature request Instructor UI
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 5 日以内に返信
-
Awaiting Triage bug Student UI
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 5 日以内に返信
-
Awaiting Triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
Submitty/Submitty#13558 · コメント 3 件 ·
メンテナーはふだん 5 日以内に返信
-
Add character limit to Full Course Name対応中かも @aconfo が 24 日前に担当しました。 オープンAwaiting Triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Submitty/Submitty#13555 · 担当者 1 名 ·
メンテナーはふだん 5 日以内に返信
Submitty/Submitty の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
[Bug]:オープン0. Needs triage 35-feedback bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
akai-org/wosp-puszki#317 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
revive-adserver/revive-adserver#1811 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信