internetarchive / internetarchive/openlibrary

Verified_fields: Allow librarians to lock certain work/edition fields

Open
#7,761 1 comment 0 reactions 0 assignees View on GitHub
Affects: Librarians Lead: @scottbarnes Module: Import Needs: Community Discussion Priority: 3 State: Blocked Type: Feature Request
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

### Describe the problem that you'd like solved

As of:
- #7495
...when we encounter new data (such as new publishers) the importer biases towards appending them to the list. In some cases where a librarian has verified a publisher (or book cover) we may want to lock these fields to prevent confusion: as described in:
- #7744

For now, let's start with `publishers` and `covers` as fields librarians can lock
- the UI might introduce a checkbox (librarian-only) on the /edit page next to covers and publishers to lock these fields
- the importer should ignore importing fields which existing the `verified_fields` array
- the `verified_fields` should exist on both the work and the edition

### Stakeholders

@seabelis

Contributor guide

Open the contributing guide

Research direction

Start at the /edit page, the importer, and the work and edition data models mentioned in the issue. Trace how publishers and covers are edited and imported, then verify that librarian-only controls can mark both fields and that imports preserve fields listed in verified_fields.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.