Skip to content

Conversation

@mgaffigan
Copy link
Contributor

  • Refactor to allow alternate implementations of LoginPanel
  • Moved handleLoginSuccess to Mirth client since it is actually setting up the process - not really doing anything with the panel
  • Make client command line testable

In support for future merge of mgaffigan:feature/add-oidc-auth

@tonygermano
Copy link
Member

@mgaffigan Is it possible to break this up into a few commits to make it easier to review? There is enough change that it's a bit difficult to mentally keep track of which changes are related to the same refactor and which aren't with all of the scrolling.

Copy link
Contributor Author

@mgaffigan mgaffigan left a comment

Choose a reason for hiding this comment

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

It is possible, yes, but it would result in ~4 PR's with 1 dependent upon the other three. I've added some comments in hopes those are sufficient to avoid splitting with dependencies. Vanilla git really sucks at stacked PR's.

@tonygermano
Copy link
Member

@mgaffigan I'm fine with them all being part of this single PR. I was just asking if the logical chunks can be separated into multiple commits.

@mgaffigan
Copy link
Contributor Author

Ah. Good call. Yes. I'll break to commits.

@mgaffigan mgaffigan force-pushed the maint/refactor-client-login branch from 4229704 to f9aad48 Compare September 3, 2025 14:56
@mgaffigan
Copy link
Contributor Author

@tonygermano, not sure each commit builds in isolation, but I rewrote the history by topic. Let me know if you need anything further.

@kpalang kpalang requested review from a team, gibson9583, kayyagari, kpalang and tonygermano and removed request for a team September 4, 2025 09:52
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
@mgaffigan mgaffigan force-pushed the maint/refactor-client-login branch from f9aad48 to 4710eae Compare October 15, 2025 11:54
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
…ying on global state

Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
…tations

Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
@mgaffigan mgaffigan force-pushed the maint/refactor-client-login branch from 4710eae to 37fe874 Compare October 15, 2025 12:04
* @return quit
*/
public static boolean quitMac() {
return (LoginPanel.getInstance().isVisible() || (PlatformUI.MIRTH_FRAME != null && PlatformUI.MIRTH_FRAME.logout(true)));
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the affect of removing the isVisible check?

Is this something Mac users need to specifically help test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I cannot find any code path where loginpanel is visible when MIRTH_FRAME is null. testers are welcome - and this is not a particularly critical change - I can revert.

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.

3 participants