Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated imports from OpenSearch #318

Open
idastambuk opened this issue Dec 15, 2023 · 1 comment
Open

Remove deprecated imports from OpenSearch #318

idastambuk opened this issue Dec 15, 2023 · 1 comment

Comments

@idastambuk
Copy link
Contributor

What happened:
When we updated Grafana dev dependencies to 10.2.0, we started getting deprecation warnings for some grafana/data and /runtime fields.
From first glance, it doesn't look trivial, especially with code that builds dataframes, but we should replace them before they get removed completely from grafana

/src/components/QueryEditor/MetricAggregationsEditor/styles.ts
    'stylesFactory' is deprecated. use useStyles hook

/src/components/QueryEditor/PPLFormatEditor/OpenCloseButton.tsx
    'stylesFactory' is deprecated. use useStyles hook

/src/components/QueryEditor/QueryEditorRow.tsx
      'stylesFactory' is deprecated. use useStyles hook

/src/components/QueryEditor/SettingsEditorContainer.tsx
   'stylesFactory' is deprecated. use useStyles hook

/src/configuration/DataLink.tsx
      'LegacyForms' is deprecated. Please use non-legacy versions of these components               
      'stylesFactory' is deprecated. use useStyles hook

/src/configuration/LogsConfig.tsx
    'LegacyForms' is deprecated. Please use non-legacy versions of these components  

/src/configuration/OpenSearchDetails.tsx
      'LegacyForms' is deprecated. Please use non-legacy versions of these components                                                                   
      'database' is deprecated. -- use jsonData to store information related to database.

/src/datasource.ts
    'datasourceRequest' is deprecated. Use the fetch function instead  

/src/dependencies/DataSourcePicker.tsx
   'substr' is deprecated. A legacy feature for browser compatibility  

/src/dependencies/table_model.ts
    'Column' is deprecated. this is a very old (pre Grafana 7 + DataFrame) representation for tabular data     
    'TableData' is deprecated. this is a very old (pre Grafana 7 + DataFrame) representation for tabular data  
    'Column' is deprecated. this is a very old (pre Grafana 7 + DataFrame) representation for tabular data     
    'Column' is deprecated. this is a very old (pre Grafana 7 + DataFrame) representation for tabular data     

/src/traces/formatTraces.ts
    'MutableDataFrame' is deprecated. use standard DataFrame, or create one with PartialDataFrame  deprecation/deprecation

/src/tracking.ts
      'error' is deprecated. use errors instead

src/types.ts
      'DataQuery' is deprecated. use the type from @grafana/data instead

/src/utils.ts
      'MutableDataFrame' is deprecated. use standard DataFrame, or create one with PartialDataFrame  
      'MutableDataFrame' is deprecated. use standard DataFrame, or create one with PartialDataFrame  

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Grafana version:
  • OpenSearch version:
  • Plugin version:
Copy link
Contributor

This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!

@github-actions github-actions bot added the stale label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant