Performance slowdown when editing the registration section of the submitty-admin user

オープン
#13,196 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php

調査の方向性

submitty-admin ユーザーの Manage Grades フロー、具体的には edit-grader アクションと registration-section の更新から始めます。多数のコースを含むシステムで再現し、その後、編集によってどのデータベースが開かれ、または更新されるかを追跡します。完了条件は、登録のみの編集で無関係なコースのデータベースに触れず、instructor が他の instructor または superuser の名前とメールアドレスを編集することが制限されていることです。

索引モデルが issue の本文から書いたものです。

説明

bug Database / SQL Toolbox Instructor UI performance

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Submitty/Submitty のほかの issue

Submitty/Submitty の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。