BCD "category" can be derived from the query
See original GitHub issueThe 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 'html.elements.video'
the category should be 'html'
. I.e. data.query.split('.').shift()
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top 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 >IC62635: SQL0901N MAY BE ISSUED EXECUTING A QUERY ... - IBM
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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.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.
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 withhtml
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.