Skip to content

Conversation

@mgaffigan
Copy link
Contributor

@mgaffigan mgaffigan commented Jun 2, 2025

Closes #5 by adding branding constants:

  • CONNECT_SERVER_URL
  • CENTRAL_USER_REGISTRATION
  • CHECK_FOR_NOTIFICATIONS
  • SEND_USAGE_STATISTICS

As is, stats and registrations are sent to the non-existent https://connect.openintegrationengine.org/. Not sure what is desired, but I presume it is easier to keep it enabled than to try to merge a re-enable later.

This also updates the HttpClient configuration for notifications and telemetry to use the system defaults. I presume the preceding was an over-zealous edit during the "no PHI over anything but TLS1.2" heyday.

Related: #114
Alternative: #107

@jonbartels jonbartels added this to the Technical Preview 1 milestone Jun 2, 2025
@mgaffigan mgaffigan force-pushed the feature/branding-connectservice branch from a048024 to 346e1a4 Compare June 3, 2025 15:33
@mgaffigan
Copy link
Contributor Author

Ok. I think all comments have been addressed. Let me know if I missed something.

jonbartels
jonbartels previously approved these changes Jun 5, 2025
Copy link
Contributor

@jonbartels jonbartels left a comment

Choose a reason for hiding this comment

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

LGTM Thank you for this PR!

It solves some bigger issues and questions using very little code.

@jonbartels jonbartels requested review from a team, gibson9583, kayyagari, kpalang, pacmano1, ssrowe and tonygermano and removed request for a team June 5, 2025 13:53
gibson9583
gibson9583 previously approved these changes Jun 5, 2025
Copy link
Contributor

@gibson9583 gibson9583 left a comment

Choose a reason for hiding this comment

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

LGTM

kayyagari
kayyagari previously approved these changes Jun 5, 2025
@mgaffigan mgaffigan dismissed stale reviews from kayyagari, gibson9583, and jonbartels via cb867db June 5, 2025 19:23
@tonygermano
Copy link
Member

@mgaffigan I pushed my changes. If all look good to you I'm going to rebase and squash this PR. I moved all of the constants to the client-core class, because I didn't like having them split up and some duplicated. As a result I used static imports in several places.

I also put a few more safety checks in place and show/hide additional gui components based on the settings. See screenshots below:

CENTRAL_USER_REGISTRATION=true; MANDATORY_USER_REGISTRATION=false; registration box not checked

image

CENTRAL_USER_REGISTRATION=true; MANDATORY_USER_REGISTRATION=false; registration box checked

image

CENTRAL_USER_REGISTRATION=true; MANDATORY_USER_REGISTRATION=true

image

CENTRAL_USER_REGISTRATION=false

image

CHECK_FOR_NOTIFICATIONS=false

image

CHECK_FOR_NOTIFICATIONS=true

image

SEND_USAGE_STATISTICS=false

image

SEND_USAGE_STATISTICS=true

image

@jonbartels jonbartels requested review from a team, gibson9583, jonbartels and kayyagari and removed request for a team June 6, 2025 14:47
Copy link
Contributor

@gibson9583 gibson9583 left a comment

Choose a reason for hiding this comment

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

+1 from me

@mgaffigan
Copy link
Contributor Author

mgaffigan commented Jun 6, 2025

@tonygermano, I like the disabled UI for mandatory. Much more clear. Am I missing something re: stats? I was unaware of the setting, but don't see anything that checks it in Mirth.java:404 nor ConnectServiceUtil.java:227. I only see it checked in front-end. It should not be an issue given SEND_USAGE_STATISTICS = false.

Adds the following settings to BrandingConstants in client-core:
- CENTRAL_USER_REGISTRATION - When false, disables the sending of user
  demographic information and hides the registration and marketing
  consent boxes from the first time login screen.
- MANDATORY_USER_REGISTRATION - used in conjunction with
  CENTRAL_USER_REGISTRATION. When this is setting is true and the user
  id is 1, then the user will not be able to unselect the registration
  checkbox.
- CHECK_FOR_NOTIFICATIONS - When false, allows for notification fetching
  from the client to be disabled. The notification menu task is also
  removed.
- SEND_USAGE_STATISTICS - When false, allows for sending of usage
  statistics to be disabled. Also hides the setting which allows users
  to opt-in or opt-out of sending statistics.

With the restoration of the registration checkbox when the appropriate
settings are enabled, the adjustment of which fields are required on the
user profile has also been restored.

Co-authored-by: Tony Germano <tony@germano.name>
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Signed-off-by: Tony Germano <tony@germano.name>
Issue: OpenIntegrationEngine#5
@tonygermano tonygermano force-pushed the feature/branding-connectservice branch from e3ffc1e to 3954bc5 Compare June 6, 2025 17:35
@tonygermano tonygermano merged commit 3954bc5 into OpenIntegrationEngine:main Jun 6, 2025
2 checks passed
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.

Rollback most changes related to the first login and user edit screens starting with mirth 4.1 Disable telemetry calling home to NG

5 participants