internetarchive / internetarchive/openlibrary

Proposal: Persist Record Edit State when Edit Form Fails

Open
#11,729 3 comments 0 reactions 0 assignees View on GitHub
Affects: Librarians Lead: @jimchamp Needs: Breakdown Needs: Response Priority: 3 Theme: Editing Type: Feature Request
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

### Feature Request

### Problem / Opportunity

Related to #9930

If a book page edit submission fails due to an unexpected error, the changes that were made are lost forever. It is extremely frustrating to editors when this happens.

### Proposal

Instead of throwing away this work, let's improve the error handling/messaging and preserve the changes made by failed edits.

### Breakdown

### Related files

Refer to [this map of common Endpoints](https://github.com/internetarchive/openlibrary/wiki/Endpoints):
*

### Requirements Checklist
Checklist of requirements that need to be satisfied in order for this issue to be closed:
* [ ]

### Stakeholders

- @tfmorris
- @seabelis
- @bilch
- @akramcodez


### Instructions for Contributors

* **Before** [creating a new branch](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#making-changes-and-creating-a-pull-request) or pushing up changes to a PR, please first [run these commands](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#working-on-your-branch) to ensure your repository is up to date, as the pre-commit bot may add commits to your PRs upstream.

Contributor guide

Open the contributing guide

Research direction

Start with the common Endpoints map and related issue #9930, then locate the book-page edit submission and its error handling. The issue does not name implementation files or tests; completion would require preserving changes after an unexpected failure and improving the resulting error messaging.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.