WordPress / WordPress/php-toolkit

Blueprints: ability to ignore failed resource requests

Open
#50 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
PHP
Stars
61
Forks
21
Avg merge
19h 34m
Merged PRs (30d)
7

Description

There isn't currently a way to tolerate a request failure when executing a Blueprint. This affects the GlotPress Playground in that it cannot proceed if a plugin has no translation file. Let's add a syntax similar to:

{
    "resource": "url",
    "url": "...",
    "onFailure": "ignore" | "error" | { "resource": "url" /* ... */ }
}

cc @akirk

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by locating the Blueprint resource-request execution entry point and existing failure handling, then trace how resource definitions are parsed. Done means the proposed onFailure forms are supported consistently, including ignored failures and the stated error or fallback behavior, with coverage for each form.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.