Deprecate comment_uri()

Created on 2 June 2013, almost 12 years ago
Updated 30 August 2023, over 1 year ago

Problem/Motivation

Part of ๐Ÿ“Œ [meta] convert โ€˜uri_callbackโ€™ entities param to EntityInterface::uri() method Active

Current state: the functions is not used after #1970360-78: Entities should define URI templates and standard links โ†’

Needs to implement Plugin\Entity\Comment.php uri() method and deprercate comment_uri() function replacing it's calls to $comment->uri() and clean-up Comment annotation uri_callback

1 usage in contrib found http://grep.xnddx.ru/search?text=comment_uri&filename=

Proposed resolution

- deprecate comment_uri() in favor of Comment::uri
- add deprecation test and change record

Remaining tasks

patch, review, commit

User interface changes

no

API changes

deprecated comment_uri()

Data model changes

no

Release notes snippet

no

๐Ÿ“Œ Task
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Commentย  โ†’

Last updated 5 days ago

Created by

๐Ÿ‡บ๐Ÿ‡ฆUkraine InternetDevels

Live updates comments and jobs are added and updated live.
  • API clean-up

    Refactors an existing API or subsystem for consistency, performance, modularization, flexibility, third-party integration, etc. May imply an API change. Frequently used during the Code Slush phase of the release cycle.

  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024