Skip to content

Commit a6a82a6

Browse files
authored
remove searchCategory field no longer supported in widgets.json (#7400)
1 parent 46cb904 commit a6a82a6

6 files changed

Lines changed: 0 additions & 36 deletions

File tree

openbb_platform/extensions/platform_api/openbb_platform_api/utils/widgets.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,6 @@ def build_json( # noqa: PLR0912 # pylint: disable=too-many-branches, too-many-
596596
"description": route_api[route_method].get("description", ""),
597597
"category": category.replace("_", " ").title(),
598598
"type": widget_type,
599-
"searchCategory": category.replace("_", " ").title(),
600599
"widgetId": f"{widget_id}_{provider}_obb",
601600
"mcp_tool": {
602601
"mcp_server": "Open Data Platform",
@@ -726,7 +725,6 @@ def build_json( # noqa: PLR0912 # pylint: disable=too-many-branches, too-many-
726725
"show": False,
727726
},
728727
)
729-
widget_config_chart["searchCategory"] = "chart"
730728
widget_config_chart["gridData"]["h"] = widget_config_dict.get(
731729
"gridData", {}
732730
).get("h", 20)

openbb_platform/extensions/platform_api/tests/mock_widgets.json

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "Get Senior Loan Officers Opinion Survey.",
55
"category": "Economy",
66
"type": "table",
7-
"searchCategory": "Economy",
87
"widgetId": "economy_survey_sloos_fred_obb",
98
"mcp_tool": {
109
"mcp_server": "Open Data Platform",
@@ -185,7 +184,6 @@
185184
"description": "Get University of Michigan Consumer Sentiment and Inflation Expectations Surveys.",
186185
"category": "Economy",
187186
"type": "table",
188-
"searchCategory": "Economy",
189187
"widgetId": "economy_survey_university_of_michigan_fred_obb",
190188
"mcp_tool": {
191189
"mcp_server": "Open Data Platform",
@@ -349,7 +347,6 @@
349347
"description": "Get The Survey Of Economic Conditions For The Chicago Region.",
350348
"category": "Economy",
351349
"type": "table",
352-
"searchCategory": "Economy",
353350
"widgetId": "economy_survey_economic_conditions_chicago_fred_obb",
354351
"mcp_tool": {
355352
"mcp_server": "Open Data Platform",
@@ -561,7 +558,6 @@
561558
"description": "Get The Manufacturing Outlook Survey For The Texas Region.",
562559
"category": "Economy",
563560
"type": "table",
564-
"searchCategory": "Economy",
565561
"widgetId": "economy_survey_manufacturing_outlook_texas_fred_obb",
566562
"mcp_tool": {
567563
"mcp_server": "Open Data Platform",
@@ -816,7 +812,6 @@
816812
"description": "Get Nonfarm Payrolls Survey.",
817813
"category": "Economy",
818814
"type": "table",
819-
"searchCategory": "Economy",
820815
"widgetId": "economy_survey_nonfarm_payrolls_fred_obb",
821816
"mcp_tool": {
822817
"mcp_server": "Open Data Platform",
@@ -1009,7 +1004,6 @@
10091004
"description": "Get Consumer Price Index (CPI).\n\nReturns either the rescaled index value, or a rate of change (inflation).",
10101005
"category": "Economy",
10111006
"type": "table",
1012-
"searchCategory": "Economy",
10131007
"widgetId": "economy_cpi_fred_obb",
10141008
"mcp_tool": {
10151009
"mcp_server": "Open Data Platform",
@@ -1350,7 +1344,6 @@
13501344
"description": "Balance of Payments Reports.",
13511345
"category": "Economy",
13521346
"type": "table",
1353-
"searchCategory": "Economy",
13541347
"widgetId": "economy_balance_of_payments_fred_obb",
13551348
"mcp_tool": {
13561349
"mcp_server": "Open Data Platform",
@@ -1761,7 +1754,6 @@
17611754
"description": "Search for FRED series or economic releases by ID or string.\n\nThis does not return the observation values, only the metadata.\nUse this function to find series IDs for `fred_series()`.",
17621755
"category": "Economy",
17631756
"type": "table",
1764-
"searchCategory": "Economy",
17651757
"widgetId": "economy_fred_search_fred_obb",
17661758
"mcp_tool": {
17671759
"mcp_server": "Open Data Platform",
@@ -2045,7 +2037,6 @@
20452037
"description": "Get data by series ID from FRED.",
20462038
"category": "Economy",
20472039
"type": "table",
2048-
"searchCategory": "Economy",
20492040
"widgetId": "economy_fred_series_fred_obb",
20502041
"mcp_tool": {
20512042
"mcp_server": "Open Data Platform",
@@ -2265,7 +2256,6 @@
22652256
"description": "Get data by series ID from FRED.",
22662257
"category": "Economy",
22672258
"type": "chart",
2268-
"searchCategory": "chart",
22692259
"widgetId": "economy_fred_series_fred_obb_chart",
22702260
"mcp_tool": {
22712261
"mcp_server": "Open Data Platform",
@@ -2495,7 +2485,6 @@
24952485
"description": "Get economic release data by ID and/or element from FRED.",
24962486
"category": "Economy",
24972487
"type": "table",
2498-
"searchCategory": "Economy",
24992488
"widgetId": "economy_fred_release_table_fred_obb",
25002489
"mcp_tool": {
25012490
"mcp_server": "Open Data Platform",
@@ -2641,7 +2630,6 @@
26412630
"description": "Query the Geo Fred API for regional economic data by series group.\n\nThe series group ID is found by using `fred_search` and the `series_id` parameter.",
26422631
"category": "Economy",
26432632
"type": "table",
2644-
"searchCategory": "Economy",
26452633
"widgetId": "economy_fred_regional_fred_obb",
26462634
"mcp_tool": {
26472635
"mcp_server": "Open Data Platform",
@@ -2968,7 +2956,6 @@
29682956
"description": "Get retail prices for common items.",
29692957
"category": "Economy",
29702958
"type": "table",
2971-
"searchCategory": "Economy",
29722959
"widgetId": "economy_retail_prices_fred_obb",
29732960
"mcp_tool": {
29742961
"mcp_server": "Open Data Platform",
@@ -3177,7 +3164,6 @@
31773164
"description": "Get Personal Consumption Expenditures (PCE) reports.",
31783165
"category": "Economy",
31793166
"type": "table",
3180-
"searchCategory": "Economy",
31813167
"widgetId": "economy_pce_fred_obb",
31823168
"mcp_tool": {
31833169
"mcp_server": "Open Data Platform",
@@ -3341,7 +3327,6 @@
33413327
"description": "Map a ticker symbol to a CIK number.",
33423328
"category": "Regulators",
33433329
"type": "table",
3344-
"searchCategory": "Regulators",
33453330
"widgetId": "regulators_sec_cik_map_sec_obb",
33463331
"mcp_tool": {
33473332
"mcp_server": "Open Data Platform",
@@ -3405,7 +3390,6 @@
34053390
"description": "Search SEC-regulated institutions by name and return a list of results with CIK numbers.",
34063391
"category": "Regulators",
34073392
"type": "table",
3408-
"searchCategory": "Regulators",
34093393
"widgetId": "regulators_sec_institutions_search_sec_obb",
34103394
"mcp_tool": {
34113395
"mcp_server": "Open Data Platform",
@@ -3475,7 +3459,6 @@
34753459
"description": "Explore SEC and FASB XBRL taxonomy schemas, labels, and presentation structures.\n\n- No parameters: list all available taxonomy families.\n- taxonomy only: get all parsed structures for the most recent year.\n- taxonomy + year: get all parsed structures for a specific year.\n- taxonomy + component: get one component's structure using the most recent year.\n- taxonomy + year + component: get one component's parsed structure.",
34763460
"category": "Regulators",
34773461
"type": "table",
3478-
"searchCategory": "Regulators",
34793462
"widgetId": "regulators_sec_schema_files_sec_obb",
34803463
"mcp_tool": {
34813464
"mcp_server": "Open Data Platform",
@@ -3793,7 +3776,6 @@
37933776
"description": "Map a CIK number to a ticker symbol, leading 0s can be omitted or included.",
37943777
"category": "Regulators",
37953778
"type": "table",
3796-
"searchCategory": "Regulators",
37973779
"widgetId": "regulators_sec_symbol_map_sec_obb",
37983780
"mcp_tool": {
37993781
"mcp_server": "Open Data Platform",
@@ -3858,7 +3840,6 @@
38583840
"description": "Get the RSS feed that provides links to litigation releases concerning civil lawsuits brought by the Commission in federal court.",
38593841
"category": "Regulators",
38603842
"type": "table",
3861-
"searchCategory": "Regulators",
38623843
"widgetId": "regulators_sec_rss_litigation_sec_obb",
38633844
"mcp_tool": {
38643845
"mcp_server": "Open Data Platform",
@@ -3932,7 +3913,6 @@
39323913
"description": "Search for Industry Titles, Reporting Office, and SIC Codes. An empty query string returns all results.",
39333914
"category": "Regulators",
39343915
"type": "table",
3935-
"searchCategory": "Regulators",
39363916
"widgetId": "regulators_sec_sic_search_sec_obb",
39373917
"mcp_tool": {
39383918
"mcp_server": "Open Data Platform",
@@ -4009,7 +3989,6 @@
40093989
"description": "",
40103990
"category": "Form Widget",
40113991
"type": "table",
4012-
"searchCategory": "Form Widget",
40133992
"widgetId": "form_widget_custom_obb",
40143993
"mcp_tool": {
40153994
"mcp_server": "Open Data Platform",

openbb_platform/providers/congress_gov/openbb_congress_gov/models/bill_info.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class CongressBillInfoData(Data):
4343
"$.description": "Metadata and summary info for a U.S. Congressional Bill.",
4444
"$.category": "Government",
4545
"$.subCategory": "Congress",
46-
"$.searchCategory": "Government",
4746
"$.data": {
4847
"dataKey": "results.markdown_content",
4948
},

openbb_platform/providers/congress_gov/openbb_congress_gov/router/congress_gov_router.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ async def bills(
7474
"category": "Government",
7575
"subCategory": "Congress",
7676
"type": "multi_file_viewer",
77-
"searchCategory": "Congress",
7877
"widgetId": "uscongress_bill_text_congress_gov_obb",
7978
"endpoint": f"{api_prefix}/uscongress/bill_text",
8079
"params": [

openbb_platform/providers/nasdaq/openbb_nasdaq/app.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ async def post_open_document(
278278
"category": "Equity",
279279
"subCategory": "Calendar",
280280
"type": "table",
281-
"searchCategory": "Equity",
282281
"widgetId": "nasdaq_earnings_calendar",
283282
"refetchInterval": False,
284283
"params": [
@@ -358,7 +357,6 @@ async def earnings_calendar(
358357
"category": "Equity",
359358
"subCategory": "Calendar",
360359
"type": "table",
361-
"searchCategory": "Equity",
362360
"widgetId": "nasdaq_dividends_calendar",
363361
"refetchInterval": False,
364362
"params": [
@@ -432,7 +430,6 @@ async def dividend_calendar(
432430
"category": "Equity",
433431
"subCategory": "Dividends",
434432
"type": "table",
435-
"searchCategory": "Equity",
436433
"widgetId": "nasdaq_historical_dividends",
437434
"refetchInterval": False,
438435
"params": [
@@ -499,7 +496,6 @@ async def historical_dividends(
499496
"category": "Equity",
500497
"subCategory": "Calendar",
501498
"type": "table",
502-
"searchCategory": "Equity",
503499
"widgetId": "nasdaq_ipo_calendar",
504500
"refetchInterval": False,
505501
"params": [
@@ -601,7 +597,6 @@ async def ipo_calendar(
601597
"category": "Economy",
602598
"subCategory": "Calendar",
603599
"type": "table",
604-
"searchCategory": "Equity",
605600
"widgetId": "nasdaq_economic_calendar",
606601
"refetchInterval": False,
607602
"params": [

openbb_platform/providers/nasdaq/tests/record/expected_widgets.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "View SEC filings by company.",
55
"category": "Open Document",
66
"type": "multi_file_viewer",
7-
"searchCategory": "Open Document",
87
"widgetId": "nasdaq_company_filings",
98
"mcp_tool": {
109
"mcp_server": "Open Data Platform",
@@ -240,7 +239,6 @@
240239
"description": "Upcoming, and historical, company earnings releases (US Markets).",
241240
"category": "Equity",
242241
"type": "table",
243-
"searchCategory": "Equity",
244242
"widgetId": "nasdaq_earnings_calendar",
245243
"mcp_tool": {
246244
"mcp_server": "Open Data Platform",
@@ -394,7 +392,6 @@
394392
"description": "Upcoming, and historical, dividend payments (US Markets).",
395393
"category": "Equity",
396394
"type": "table",
397-
"searchCategory": "Equity",
398395
"widgetId": "nasdaq_dividends_calendar",
399396
"mcp_tool": {
400397
"mcp_server": "Open Data Platform",
@@ -519,7 +516,6 @@
519516
"description": "Historical dividend payments for a given symbol.",
520517
"category": "Equity",
521518
"type": "table",
522-
"searchCategory": "Equity",
523519
"widgetId": "nasdaq_historical_dividends",
524520
"mcp_tool": {
525521
"mcp_server": "Open Data Platform",
@@ -642,7 +638,6 @@
642638
"description": "IPO announcements and calendar.",
643639
"category": "Equity",
644640
"type": "table",
645-
"searchCategory": "Equity",
646641
"widgetId": "nasdaq_ipo_calendar",
647642
"mcp_tool": {
648643
"mcp_server": "Open Data Platform",
@@ -809,7 +804,6 @@
809804
"description": "Upcoming, and historical, macroeconomic events.",
810805
"category": "Economy",
811806
"type": "table",
812-
"searchCategory": "Equity",
813807
"widgetId": "nasdaq_economic_calendar",
814808
"mcp_tool": {
815809
"mcp_server": "Open Data Platform",

0 commit comments

Comments
 (0)