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

Support max_active_channels #500

Merged
merged 4 commits into from
Jan 27, 2025
Merged

Support max_active_channels #500

merged 4 commits into from
Jan 27, 2025

Conversation

will-moore
Copy link
Member

@will-moore will-moore commented Jan 9, 2025

Fixes #472

This turns off all channels over the max_active_channels limit when the image loads and also prevents the user from turning on more channels than this limit. Use will see a message E.g. "The maximum number of active channels is 10."

When microservices are not available, we use a default value for max_active_channels.
This can be configured with:

omero config set omero.web.iviewer.max_active_channels 10

But what should the default value be if without the user setting anything?
Currently we don't limit the active channels, so to maintain that behaviour, we could set the value quite high, e.g. 50.
I seem to remember that saving rendering settings fails for around 60+ channels.

Or we go for 10 (same as microservices) or a bit higher, e.g. 20?

@francesw
Copy link

Tested a few images from idr0076 and idr0158 on idr-testing. Works well, max 10 channels message appears when trying to click on channel 11. Perhaps include in the message that you have to deselect a channel before you can reselect a channel.

@pwalczysko
Copy link
Member

Tested on idr-testing with idr0076 and idr0158. Wfm and I am happy with the level of messaging.

@jburel
Copy link
Member

jburel commented Jan 14, 2025

Other settings are described in the README
Since the list is increasing, I will suggest to start a separate "configuration" page with a link to it in the README

@will-moore
Copy link
Member Author

For comparison, Pathviewer message is "Cannot activate channel, maximum number of channels already active".

Screenshot 2025-01-20 at 11 37 07

@will-moore
Copy link
Member Author

Now looks like this:

Screenshot 2025-01-20 at 11 52 02

@francesw
Copy link

@will-moore On Pathviewer, they also have a count of the active channels with the maximum number stated, which can be useful and helps to make max channel number clear. Not sure if this is something we would also like to have.
Screenshot 2025-01-20 at 13 36 44

@will-moore
Copy link
Member Author

@francesw That's kinda nice, but I would prefer not to add it as it's a fair bit more work, unless it's really required?

@francesw
Copy link

@will-moore The counter is possibly also relatively new from Pathviewer as I don't recall seeing it a few months ago, hence they may have also updated the max channel message accordingly. But, yes, if it's a fair bit more work, then we can leave it, it's not required. Thanks

@jburel
Copy link
Member

jburel commented Jan 27, 2025

Discussed with @will-moore. My comment about the description of the configuration will be fixed in a follow up PR.

@jburel jburel merged commit 89ee6e8 into ome:master Jan 27, 2025
1 check 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.

Limit number of active Channels
4 participants