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

Improved/fixed category manager #2649

Merged
merged 3 commits into from
Mar 8, 2024

Conversation

rozyczko
Copy link
Member

Description

The Category Manager has been pretty neglected over the years, so it is time to fix it properly.

Fixes #2584

How Has This Been Tested?

Locally on Win10

Review Checklist (please remove items if they don't apply):

  • Code has been reviewed
  • Functionality has been tested
  • Windows installer (GH artifact) has been tested (installed and worked)
  • MacOSX installer (GH artifact) has been tested (installed and worked)

@wpotrzebowski wpotrzebowski added the Discuss At The Call Issues to be discussed at the fortnightly call label Sep 25, 2023
@wpotrzebowski wpotrzebowski changed the base branch from main to release_6.0.0 September 26, 2023 13:32
@wpotrzebowski wpotrzebowski removed the Discuss At The Call Issues to be discussed at the fortnightly call label Sep 26, 2023
@wpotrzebowski
Copy link
Contributor

wpotrzebowski commented Oct 9, 2023

If I am testing it correctly it works fine. The issue raised by @krzywon needs to be addressed but may be a subject of separate issue/pr?

@wpotrzebowski wpotrzebowski added the Discuss At The Call Issues to be discussed at the fortnightly call label Oct 9, 2023
@wpotrzebowski
Copy link
Contributor

@rozyczko will take a look at it

@wpotrzebowski wpotrzebowski removed the Discuss At The Call Issues to be discussed at the fortnightly call label Oct 10, 2023
@butlerpd butlerpd added Discuss At The Call Issues to be discussed at the fortnightly call and removed Discuss At The Call Issues to be discussed at the fortnightly call labels Oct 23, 2023
@krzywon
Copy link
Contributor

krzywon commented Oct 26, 2023

The issue I noted is now fixed, but main was merged into this branch instead of release_6.0.0. There are (only) 4 commits in main not in the release branch, but we should discuss whether these should be removed from here or not.

@rozyczko rozyczko changed the base branch from release_6.0.0 to main October 31, 2023 09:29
@rozyczko
Copy link
Member Author

Modified the target to main, since this branch was based off of it.
Merging it with main will make it possible to cherry-pick the changes to release_6.0.0

Copy link
Member

@butlerpd butlerpd left a comment

Choose a reason for hiding this comment

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

Doing functionality testing the installer on windows 10, I found several small issues:

  • The help button doesn't work though there is a small section in the documentation about it. Other help buttons do work. However that button does not work in 5.0.6 so this could be turned into another issue and separated from this pull request
  • The documentation needs to be updated as well. However most of the changes relate to things prior to this fix so this could also be moved to another issue and separated from this pull request
  • The category changes, including any new categories created do not persist after exiting the program.
  • Most importantly, if a built in model has a second category added to it, while it shows up in both categories till exiting the program, when you restart SasView, the model is read in as disabled and does not show up in any category. This definitely needs to be fixed.

@butlerpd butlerpd added the Discuss At The Call Issues to be discussed at the fortnightly call label Nov 19, 2023
@wpotrzebowski wpotrzebowski added Discuss At The Call Issues to be discussed at the fortnightly call and removed Discuss At The Call Issues to be discussed at the fortnightly call labels Dec 3, 2023
@wpotrzebowski
Copy link
Contributor

@rozyczko do you think we should address requested changes in this PR or separate? Also do we want to rebase to 6.0.0 or is it a "nice to have" feature that having it in 6.0.0 is not a priority?

@rozyczko
Copy link
Member Author

rozyczko commented Dec 5, 2023

@rozyczko do you think we should address requested changes in this PR or separate? Also do we want to rebase to 6.0.0 or is it a "nice to have" feature that having it in 6.0.0 is not a priority?

I think this needs a bit more work, given persistence issues noted by @butlerpd . Let's prioritize it out of 6.0, if possible.

@rozyczko rozyczko marked this pull request as draft December 5, 2023 08:49
@wpotrzebowski wpotrzebowski removed the Discuss At The Call Issues to be discussed at the fortnightly call label Dec 5, 2023
@rozyczko
Copy link
Member Author

Issues reported by @butlerpd have been fixed (except of the documentation update)

Please retest

@rozyczko rozyczko marked this pull request as ready for review January 24, 2024 08:45
@rozyczko rozyczko requested a review from butlerpd January 25, 2024 08:42
Copy link
Member

@butlerpd butlerpd left a comment

Choose a reason for hiding this comment

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

WOW .. very nice!! Sorry @rozyczko I failed to see this in the bustle of the final day of camp.

I have fairly thoroughly tested now I think using the installer for windows and it is a finally a pleasure to work with modulo a couple of minor glitches which I would not allow to prevent this from being included in 6.0.0! I list them below nonetheless:

  • the Kill button is greyed out and does not work (and there are no minimize/maximize buttons). Hitting the OK button closes the window but that does break the general expectations of how windows behave? But there may be some complications there?
  • Any new categories created do not appear in the list of available categories in the Category Manager dropdown when modifying a model. This even after exiting and restarting SasView. As long as one makes no spelling mistakes it works fine .. otherwise you can easily create another category by accident. Moreover it seems a bit odd to have to click "create new" category then type exactly the same as the one previously created. This would be presumably the biggest use case: adding a bunch of models to "my most used models" category. Still not a show stopper at all.
  • Adding a category to a plugin model does not automatically "enable" it. This means the model still shows up in plugins (no way to disable plugins other than by deleting them but that makes sense to me), but it will not appear in the category just assigned unless one ALSO checks the enable box. Not sure that is the best/desired behavior? If so then at least it should be documented in the updated documentation (a separate PR) as it is not the most intuitive.
  • The help button does not go to the desired section but that is due to a long standing problem with calling sections out in help. That should be fixed with the new "documentation editor" PR.

@butlerpd
Copy link
Member

NOTE: I just realized that the problem with the kill button was probably fixed by PR #2690 which was against 6.0. Once 6.0 is merged into main (see PR #2808) this should be fixed automatically.

@butlerpd
Copy link
Member

@wpotrzebowski to give a final check but otherwise read to merge

@butlerpd butlerpd force-pushed the 2584-category-management-problems branch from 2af187c to ccd5916 Compare March 7, 2024 17:14
@butlerpd butlerpd changed the base branch from main to release_6.0.0 March 7, 2024 17:14
@butlerpd butlerpd merged commit 9305f5a into release_6.0.0 Mar 8, 2024
18 checks passed
@butlerpd butlerpd deleted the 2584-category-management-problems branch March 8, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

category management problems
5 participants