D7: Seed log/report table with details of most recent sync

Created on 16 June 2023, about 1 year ago
Updated 19 July 2023, 11 months ago

Problem/Motivation

It could be very handy to have a page with a searchable table of the latest sync information for each thing sent to Quant that includes whether it errored out (403/404/etc), time, link to page/asset, etc. This would make checking particular pages/assets easier.

Some other things based on recent discussions to speed up seeding:

  1. We would track the seed status in a new db table (node last updated date, md5 as returned by the quant response)
  2. Seed operation would optionally take into account the local status (e.g skip adding items to the queue if they already exist in Quant and haven’t been modified since)
  3. Needs an option for status export/import, although this could just be an SQL query via Drush if we are just storing in a new table
  4. Could then run the initial seed on a copy of site, export the status, and do a followup seed on production that would be very light and lean

Steps to reproduce

Proposed resolution

Create a new tab, e.g. Log or Report, that has a filterable/sortable paged table with details such as:

  • URL
  • Type
  • Status
  • Hash
  • Updated
  • Log

Data would be in a new database table. Could make it views-enabled.

A benefit of this table is that you show some/all of this information on individual pages too in a widget/popup/fieldset/something which could be helpful when debugging.

A possible follow-up feature is a widget/whatever on each page that shows this information and the static link would be clickable to get to the static page directly.

Would also be interesting to integrate some visual regression analysis into this.

Remaining tasks

  • Evaluate idea
  • If worth pursing, create code
  • Review and test
  • Commit :)

User interface changes

A new tab that has a table of useful seed data that can be filtered and sorted.

API changes

Data model changes

A new database table.

✨ Feature request
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.69.0 2024