Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BCD "category" can be derived from the query

See original GitHub issue


The component is never called with a category prop. However, as of yesterday, we do have data.query as a prop. That is the key to derive a different value to the category variable.

According to @Elchi3 that value should be the first part of the query. So if the query is '' the category should be 'html'. I.e. data.query.split('.').shift().

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

Elchi3commented, Oct 21, 2019

@Elchi3 Would you mind reviewing that on its own to make sure it’s exactly the way you want it? …separate from how the argument to that function works.

The gatherPlatformsAndBrowsers function does exactly do what I want, yes. What I don’t know is whether we will have WebExtensions docs in stumptown, since it is rather Firefox docs than Web docs. With that being gone potentially, the logic could just be: when there is nodejs compat data present, show a third column with “Server”, otherwise omit that column, and then there would be no need anymore for categorization at all.

joedarccommented, Nov 1, 2019

Just to put a little update on this. Using the query for the category works as you suggested @peterbe. Ended up using it when working with the legacy Kuma docs. I’ll make a PR for it at some point today.

What I don’t know is whether we will have WebExtensions docs in stumptown

Interesting, I actually ran into some discrepancies when rendering the BCD table for a webextensions doc. Basically, the data was a bit different than what the renderer is currently expecting. I sort of expected this as we were only working with html docs at the time and figured there may be some other cases down the road. Probably not relevant information for this issue specifically, just putting that in the air.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get Boot Configuration Data (BCD) Information out of ...
This seems possible via WMI, but I'm am having no luck figuring out how to access root\wmi and the BCD* classes. I found...
Read more >
SQL Query with dynamic number of columns - Ask TOM
SQL Query with dynamic number of columns Hi Tom,I have a table like ... The above result can be easily obtained in MS...
Read more >
Oracle SQL Query: Display employee id, name, department no ...
Write a Oracle SQL query to display employee id, name, department no, salary of the employees. The output first based on the employee...
Read more >
SQLCODE SQL0901N may be issued while executing a query that satisfies the following conditions: - There is an equality predicate (EQPRD) in the...
Read more >
CPSC 304 Introduction to Database Systems - Hassan Khosravi
the relational model. We knew how to normalize our database relations. We could formally specify queries. Now: how do most people write queries?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found