Quant redirects live tracking is broken (e.g. add/edit/delete)

Created on 6 February 2023, almost 2 years ago
Updated 8 February 2023, almost 2 years ago

Problem/Motivation

Adding, updating, and deleting redirects isn't getting the changes into Quant. For example, when trying to add a new redirect, I got this error in the logs:

TYPE	quant
DATE	Monday, February 6, 2023 - 14:52
USER	admin
LOCATION	https://quantdrupal7rc4.ddev.site/admin/config/search/redirect/add
REFERRER	https://quantdrupal7rc4.ddev.site/admin/config/search/redirect/add
MESSAGE	Unable to seed redirect: "{\"url\":\"\\\/foobar\",\"redirect_url\":\"node\\\/11\",\"redirect_http_code\":\"301\",\"published\":true}" (Bad Request)
SEVERITY	error
HOSTNAME	
OPERATIONS	

Steps to reproduce

  • Install Drupal 7
  • Enable and configure quant, quant_api, quant_redirect and redirect modules
  • Use devel_generate to generate content
  • Go to Config tab (/admin/config/services/quant)
  • Check Redirects under Tracked Entities
  • Click Save configuration button
  • Manually create a redirect and test it works locally
  • Look at Quant Dashboard redirects and redirect isn't listed
  • Look at logs
  • Result: Error above is shown
  • Expected result: Redirect should get added to Quant
  • Proposed resolution

    Figure out error and get it working :)

    Remaining tasks

    1. Debug
    2. Update code
    3. Review and test
    4. Commit :)

    User interface changes

    API changes

    Data model changes

    πŸ“Œ Task
    Status

    Fixed

    Version

    1.0

    Component

    Code

    Created by

    πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Live updates comments and jobs are added and updated live.
    Sign in to follow issues

    Comments & Activities

    Production build 0.71.5 2024