parse-community / parse-community/parse-server

Add deprecation ID to deprecation log message

Open
#7,994 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:feature
Dominant language
JavaScript
Stars
21.4k
Forks
4.8k
Avg merge
7h 45m
Merged PRs (30d)
11

Description

New Feature / Enhancement Checklist
Current Limitation

There is currently no logic link between a deprecation log message and the corresponding deprecation in the deprecations table.

Feature / Enhancement Description

Add the deprecation ID to the deprecator, for example:

Deprecator.logRuntimeDeprecation({
  usage: 'Doing abc',
  solution: 'Use xyz instead.',
  id: '123',
});

Should result in a log message:

DeprecationWarning: (DEPPS123) Doing abc is deprecated and will be removed in a future version. Use xyz instead.

Example Use Case

n/a

Alternatives / Workarounds

n/a

3rd Party References

n/a

Contributor guide

Open the contributing guide

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.

Research direction

Start by locating the Deprecator.logRuntimeDeprecation entry point and the deprecations table logic. Trace how the current deprecation message is assembled, then verify that the supplied id appears in the expected DEPPS123 format. Done means the log links the message to its deprecation ID and the relevant tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.