bull-board icon indicating copy to clipboard operation
bull-board copied to clipboard

Feature: set default tab in BullAdapter settings

Open zxpectre opened this issue 3 years ago • 5 comments

Greate project already! Simple suggestion for non technical users UX:

If only one could set the default open tab in BullAdapter settings, for example to "logs" instead of data, a non experienced user could find the UI usefull and understandable enough. We devs love json in data and error tab but humans don't haha. Just simple stupid suggestion I could use with my team.

const lastOne="also maybe set the array of tabs to show, to hide others.";

zxpectre avatar May 01 '21 23:05 zxpectre

Thank you for the suggestion, I'm not sure if this feature has a lot of demand, let's see if so, I will implement it.

If it is crucial for you, you can make a PR :]

felixmosh avatar May 02 '21 05:05 felixmosh

I would also appreciate this feature. We have jobs that can have a huge payload of around 100k uuids. The pages sometimes load terribly slow because every job starts on the data tab.

sroettering avatar Feb 01 '23 08:02 sroettering

@sroettering you can filter out the jobs payload by providing a formatter...

const queueAdapter = new BullMQAdapter(queueMQ);

queueAdapter.setFormatter('data', (data) => 'FILTER OUT LARGE OBJECTS');
queueAdapter.setFormatter('returnValue', (returnValue) => 'FILTER OUT LARGE OBJECTS');

felixmosh avatar Feb 01 '23 08:02 felixmosh

Oh wow didn't know that. I will give it a try. Is it also possible to maybe collapse the json by default? Sorry for being a little bit off topic here

sroettering avatar Feb 01 '23 09:02 sroettering

It is possible, can you open a new feature request please?

felixmosh avatar Feb 01 '23 09:02 felixmosh