Get rid of /api/civictheme-alerts?_format=json 404 errors

Created on 6 September 2024, 12 days ago
Updated 10 September 2024, 9 days ago

Problem/Motivation

Lots of these in the logs:

Type	page not found
Date	Friday, September 6, 2024 - 22:58
User	admin
Location	https://starshot-xb.ddev.site/api/civictheme-alerts?_format=json
Referrer	https://starshot-xb.ddev.site/xb/node/10
Message	/api/civictheme-alerts?_format=json
Severity	Warning
Operations	

Steps to reproduce

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

No errors in the logs.

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

Merge Requests

Comments & Activities

  • Issue created by @Kristen Pol
  • Status changed to Postponed 10 days ago
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    For now, I've commented it out to reduce the noise. Postponing to later for figuring out how to fix properly.

    diff --git a/components/03-organisms/alert/alert.js b/components/03-organisms/alert/alert.js
    index da30b7a..952a00c 100644
    --- a/components/03-organisms/alert/alert.js
    +++ b/components/03-organisms/alert/alert.js
    @@ -15,7 +15,9 @@ function CivicThemeAlert(el) {
       }
     
       this.container = el;
    -  this.endpoint = this.container.getAttribute('data-alert-endpoint');
    +  // @fixme comment out for now to prevent 404 errors.
    +  //this.endpoint = this.container.getAttribute('data-alert-endpoint');
    +  this.endpoint = null;
       if (this.endpoint !== null) {
         this.getAll();
       }
    
  • Status changed to Active 9 days ago
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Still getting this. I'll remove the view for now. This can be addressed properly later.

  • Pipeline finished with Success
    9 days ago
    Total: 265s
    #278610
  • Pipeline finished with Success
    9 days ago
    Total: 225s
    #278612
  • Pipeline finished with Success
    9 days ago
    #278622
  • Merge request !56Resolve #3472691 "Get rid of" β†’ (Merged) created by Kristen Pol
  • Status changed to Fixed 9 days ago
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Sitebuilding changes will be addressed here:

    πŸ“Œ [META] Determine SDDS sitebuilding approach with XB and Drupal CMS Postponed

  • Pipeline finished with Success
    9 days ago
    Total: 168s
    #278626
Production build 0.71.5 2024