Las etiquetas no aparecen en el menú desplegable de etiquetas

Hay etiquetas que se muestran en la página de etiquetas pero que no aparecen en el menú desplegable de etiquetas ni en la búsqueda.

Un ejemplo (de muchos) aquí en Meta es bug.

This is because of site setting max tags in filter list which defaults to 30. The description of the site setting is:

Maximum number of tags to show in the filter dropdown. The most used tags will be shown.

I just increased that setting to 100 here on Meta and #bug::tag is appearing in dropdown now.

If that is the case, this is not a bug @hawk.

what we could do though is making this component make ajax request if filtering doesnt return anything. Or apply filtering on the full list even if we only show a partial list in the first place.

I’d favor this solution: users usually don’t know about the max tags limit, and would expect they search the complete tag set when entering anything into the Search… field.

¿Sigue siendo así? Al menos deberíamos sugerir la existencia de más etiquetas en la parte inferior con más … o algo similar.

@codinghorror hace mucho tiempo implementé esto:

Sin embargo, es cierto que tienes que filtrar para encontrarlo, y nada te indica que hay más elementos además de los mostrados. ¿Sigues queriendo implementar \u003ckbd\u003emore…\u003c/kbd\u003e?

Sí, creo que debería haber algún tipo de pista visual que diga: “ah, hay más aquí, no solo los elementos visibles”… lo que sea más sencillo.

En segunda instancia, no creo que pueda hacer esto, al menos no con un impacto en el rendimiento.

Si limitamos las etiquetas mostradas, es básicamente para evitar tener que obtener (o incluso contar) todas las etiquetas. Así que lo único que sé es si tenemos menos etiquetas mostradas que la configuración máxima, pero no tengo forma de saber si tenemos más etiquetas que el máximo mostrado, porque en este caso: mostradas === máximo.

Un truco que uso comúnmente es que el backend siempre devuelva max+1 filas y solo se muestren max. Si existe el +1, hay más.

¡Truco genial, gracias! :+1:

Eso debería bastar:

Eso es… Un Truco Viejo y Raro™