Skip to content

SetVisibility for NestJs BullBoardFeatureModule #1039

@jeanbacan

Description

@jeanbacan

I would like to set guards/ visibility per queue when using NestJs. What happens is, BullboardFeatureModule instantiate the adapter with new queueOption.adapter(...) inside its Module onModuleInit which prevents me from dynamically creating this module and setting a custom visibility.
The options passed to the adaptor do not expect visibility function nor the type used by BullBoardQueueOptions accepts a previously created adapter instance.

Suggestions:
passing setVisibility function in QueueAdapterOptions or BullboardQueueOptions
Accepting adapter instances on BullMQAdapter, althought defeats the purpose of DI used by Nest
Export the adapter with ModuleRef to offer access later durin module creation;
Expand createBullBoard return type to be able to retrieve queue/adaptors from getQueueApi

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions