Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Fix deprecation warnings

Open
#324 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
backend

Research direction

Start by inspecting the listed locations in src/DataSource.ts, src/common/annotationsFromDataFrame.ts, src/module.ts, and src/types.ts. Read the linked RxJS deprecation guidance and the replacement APIs referenced in the warnings, then run the repository's existing checks to confirm the listed deprecation warnings are gone.

Written by the indexing model from the issue text.

Description

help wanted type/chore
  • src/DataSource.ts

    • deprecation/deprecation: 'toPromise' is deprecated. Replaced with {@link firstValueFrom } and {@link lastValueFrom }. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise at line 67, column 41
    • deprecation/deprecation: 'toPromise' is deprecated. Replaced with {@link firstValueFrom } and {@link lastValueFrom }. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise at line 96, column 45
    • deprecation/deprecation: 'toPromise' is deprecated. Replaced with {@link firstValueFrom } and {@link lastValueFrom }. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise at line 116, column 45
  • src/common/annotationsFromDataFrame.ts

    • deprecation/deprecation: 'get' is deprecated. Use [idx]. This only exists to help migrate Vector to Array at line 120, column 30
  • src/module.ts

    • deprecation/deprecation: 'setVariableQueryEditor' is deprecated. -- prefer using {@link StandardVariableSupport} or {@link CustomVariableSupport} or {@link DataSourceVariableSupport} in data source instead at line 15, column 4
  • src/types.ts

    • deprecation/deprecation: 'DataQuery' is deprecated. use the type from at line 136, column 49
Dominant language
Go
Stars
311
Forks
72
Avg merge
7d 10h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from grafana/github-datasource

All issues in grafana/github-datasource

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.