Skip to content
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

i_943 Fix Group tab on Edit Problem #944

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

johnbrvc
Copy link
Collaborator

Description of what the PR does

Do not enable/disable individual group check boxes. This causes excesseive overhad when checking for the Update button.
Instead, enable/disable the entire JCheckBoxJList control which CONTAINS the checkboxes. This appears to be the original author's intent.

Left some commented-out code with new comments to help in code review. Will be removed prior to merging after approved.

Issue which the PR addresses

Fixes #943

Environment in which the PR was developed (OS,IDE, Java version, etc.)

Windows 11
jdk1.8.0_321

Precise steps for testing the PR (i.e., how to demonstrate that it works correctly)

Part 1:

  1. Load a contest that has some groups defined
  2. Go to the Problems tab
  3. Add a problem (or edit an existing one)
  4. Go to the Groups tab
  5. Select the Show to all groups radio button
  6. Attempt to check some of the groups in the group box check list
  7. Note you can not change the state of the check boxes
  8. Select the Show to only these groups radio.
  9. Attempt to check some of the groups in the group box check list
  10. Note you can now change the state of the check boxes

Part 2 (slowness loading):

  1. Load a contest (such as wfluxor/contests/wf47/systest1) that has lots of groups defined (>20) and problems with lots of test cases and/or big test case files.
  2. Attempt to edit one of these problems (note that that the performance is now reasonable)

Do not enable/disable individual group check boxes.  This causes excesseive overhad when checking for the Update button.
Instead, enable/disable the entire JCheckboxJList control which CONTAINS the checkboxes.  This appears to be the original author's intent.
Left some commented-out code with comments to help in code review.  Will be removed prior to merging after approved.
Change copyright year for ProblemGroupPane.java
@johnbrvc johnbrvc added the One Approval A very low risk and low LOE PR/Change label Mar 20, 2024
@johnbrvc johnbrvc added this to the 9.11.0 milestone Mar 20, 2024
@johnbrvc johnbrvc self-assigned this Mar 20, 2024
Copy link
Contributor

@troy2914 troy2914 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes look reasonable to me.

Some code was left in for the code review/approval process.  Since the PR was approved, these comments are now gone (but still in the history).
@johnbrvc johnbrvc requested a review from troy2914 March 20, 2024 21:29
Copy link
Collaborator

@kkarakas kkarakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@troy2914 troy2914 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems reasonable.

@johnbrvc johnbrvc merged commit bffd924 into pc2ccs:develop Mar 29, 2024
3 checks passed
@johnbrvc johnbrvc deleted the i_943_group_tab_operates_poorly branch March 29, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
One Approval A very low risk and low LOE PR/Change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When editing a problem, the Groups tab operates poorly
3 participants