internetarchive / internetarchive/openlibrary

Add validation when creating a list of books

Open
#7,901 4 comments 0 reactions 0 assignees View on GitHub
Lead: @cdrini Priority: 4 Type: Feature Request
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

### Evidence / Screenshot (if possible)
![image](https://github.com/internetarchive/openlibrary/assets/63210374/6915ad67-1e21-41c2-ac1e-70cf57d4b4c1)

### Relevant url?
```
/people/openlibrary/lists
```

### Steps to Reproduce

1. Create a list with a title with more than 255 character, for example
2. Then go to your lists view

* Actual: List title breaks the page style
* Expected: Title to be less than 255 char or front-end not breaking the page

### Details

- **Logged in (Y/N)?** Y
- **Browser type/version?** Chrome Version 112.0.5615.165 (Official Build) (64-bit)
- **Operating system?** Ubuntu
- **Environment (prod/dev/local)?** dev/local

### Proposal & Constraints
Check the title length on both back end and front end to prevent this type of input from the user

### Related files

### Stakeholders

@gojomo
@anandology

Contributor guide

Open the contributing guide

Research direction

Start at /people/openlibrary/lists and reproduce the issue by creating a list with a title longer than 255 characters. The issue provides no related files, so trace the list-creation flow on both the front end and back end. Done means overly long titles are prevented or displayed without breaking the page.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
full-stack
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.