X Tutup
Skip to content

Removing unsupported identifier#11305

Merged
jimchamp merged 1 commit intomasterfrom
rm-unsupported-identifiers
Sep 24, 2025
Merged

Removing unsupported identifier#11305
jimchamp merged 1 commit intomasterfrom
rm-unsupported-identifiers

Conversation

@mekarpeles
Copy link
Member

Removing unsupported identifier from the configuration.

Reverts adding an unsupported identifier, as per discussion w/ @seabelis

Technical

Testing

Screenshot

Stakeholders

Removing unsupported identifier from the configuration.
Copilot AI review requested due to automatic review settings September 24, 2025 16:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes an unsupported "Anna's Archive" identifier configuration from the edition identifiers list, reverting a previously added identifier that was determined to be unsupported.

  • Removes the "annas_archive" identifier entry from the identifiers configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@mekarpeles mekarpeles added the Priority: 1 Do this week, receiving emails, time sensitive, . [managed] label Sep 24, 2025
Copy link
Collaborator

@jimchamp jimchamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm. Tested locally -- did not see this identifier in the "ID Numbers" options.

@jimchamp jimchamp merged commit 39f6799 into master Sep 24, 2025
8 checks passed
@jimchamp jimchamp deleted the rm-unsupported-identifiers branch September 24, 2025 20:40
@mekarpeles
Copy link
Member Author

mekarpeles commented Jan 21, 2026

Proof of concept of removing an unsupported identifier

import web
import infogami
import os
from openlibrary.config import load_config
path = '/olsystem/etc/openlibrary.yml'
load_config(path)
infogami._setup()
from infogami import config
from openlibrary.accounts import RunAs
web.ctx.ip = web.ctx.ip or '127.0.0.1'

def rmids(limit=100, id_type="foo"):
  editions = web.ctx.site.things({"type": "/type/edition", f"identifiers.{id_type}~": "*", 'limit': limit})
  records = [r.dict() for r in web.ctx.site.get_many(editions)]
  for r in records:
    r['identifiers'].pop(id_type)
  with RunAs('ImportBot'):
    web.ctx.site.save_many(records, comment="Removing unsupported identifier")

@3a74h
Copy link

3a74h commented Feb 10, 2026

Reverts adding an unsupported identifier, as per discussion w/ ...

Why was this removed/unsupported?

@rogerari
Copy link

Pull Request Overview

This PR removes an unsupported "Anna's Archive" identifier configuration from the edition identifiers list, reverting a previously added identifier that was determined to be unsupported.

  • Removes the "annas_archive" identifier entry from the identifiers configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

How was this an unsupported identifier when it was actively being used up until it was removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: 1 Do this week, receiving emails, time sensitive, . [managed]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

X Tutup