Implement bitly update on an entity save

Created on 25 May 2022, about 2 years ago
Updated 16 May 2024, about 2 months ago

Problem/Motivation

Our bitly link targets sometimes need to change. Generating a new link will loose any previous tracking history that is associated with the original link.

Proposed resolution

The bitly API supports updating a bitly link, using the update endpoint. Add a checkbox to the entities form to allow a user to instruct the bitly link module to run the update endpoint and refresh the target information.

Remaining tasks

There's a TODO for the generation of the $baseUrl. I'm not entirely sure that is the right method, but it works for now.

User interface changes

A checkbox is added to the entity form when the entity content is being edited.

API changes

Updated the constructor for the BitlyLinksManager, to include the AliasManager as a parameter. This is so that we can retrieve the pathinfo from the entity being edited.

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand atowl

Live updates comments and jobs are added and updated live.
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.69.0 2024