connect icon indicating copy to clipboard operation
connect copied to clipboard

[BUG] Tag Manager has bad channel count for tags assigned.

Open pacmano1 opened this issue 2 years ago • 3 comments

  • Mirth 4.0.1
  • OpenJDK 64-Bit Server VM (build 13.0.7+5-Ubuntu-0ubuntu120.04, mixed mode, sharing)
  • Backend db: postgres

This occurs on multiple engines, does not seem to be on 3.9.1 though

image

pacmano1 avatar Jul 03 '22 13:07 pacmano1

I wonder if this is something like a config or import that has a tag then that tag has many channel IDs assigned because it was imported from another instance or those channels were deleted.

As I recall the channel tags are stored as a generic property or setting in the MC DB. Based on quick code searches we can see in ChannelTag.java that the channel tags store a Set of channel IDs. It seems possible that a tag could exist with some number of channel IDs for the tag such that the channel IDs don't exist on a particular instance.

I was not able to quickly prove this idea. I am also largely working from memory. Take this with many grains of salt.

A quick way to prove this would be to do a server export then count the XML elements for channel IDs under your S1 tag, do you have 15 or hundreds?

jonbartels avatar Jul 03 '22 18:07 jonbartels

Interesting. I did import a few channels from another engine.

pacmano1 avatar Jul 03 '22 22:07 pacmano1

I was scrounging thru release notes and found this - https://github.com/nextgenhealthcare/connect/issues/4255 is that possibly a related issue?

jonbartels avatar Jul 07 '22 14:07 jonbartels