Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: change JSON cache structure to store linkbacks requests status #2

Open
Lucas-C opened this issue Jul 9, 2020 · 0 comments

Comments

@Lucas-C
Copy link
Collaborator

Lucas-C commented Jul 9, 2020

This would allow to easily audit which URLs have been successfully submitted, and the error responses for the ones that haven't.

Suggested new JSON structure:

{
  $article_slug: {
    $url: {
      "pingback": { // optional, no pingback support detected if field is absent
        "server_uri": "http...",
        "submission_successful": boolean,
        "error": // optional string
      },
      "webmention": { // optional, no webmention support detected if field is absent
        "server_uri": "http...",
        "submission_successful": boolean,
        "error": // optional string
      }
    },
    ...
  },
  ...
}

This schema change must be implemented so that the old JSON caches can still be parsed, but are then saved with the new structure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant