openlibrary icon indicating copy to clipboard operation
openlibrary copied to clipboard

Refresh dev instance data (bugs and lacking)

Open jdlrobson opened this issue 7 years ago • 7 comments

Description

What problem are we solving? What does the experience look like today? What are the symptoms?

A new install of OpenLibrary will make use of scripts/dev-instance/dev_db.pg_dump to populate a new working instance. Many of the data here could potentially be outdated in its format and leading to issues such as covers not appearing on the home page or broken URIs

Let's remove this data or refresh (and encourage importing data via https://github.com/internetarchive/openlibrary/wiki/Getting-Started#importing-test-data) or replace it with more recent data. I believe this is super important as many new potential contributors are hitting this problem and it is a barrier to working with our code where having local data is vitally important. Even I, who have been coding here for 6 months still find myself working less efficient then I would like to due to bad data/missing data.

We may also want to take this opportunity to expand the data added to include reading list data for example.

Evidence

Create a fresh install and notice how images do not appear. Inspect and notice the ia has been converted to string from an array.

screen shot 2019-01-26 at 9 22 05 am

Relevant url? https://openlibrary.org/...

Screenshot (if possible):

Expectation

What should by happening? What will it look like / how will it behave?

Details

Logged in (Y/N)?

Browser type/version?

Operating system?

Proposal & Constraints

What is the proposed solution / implementation? Is there a precedent of this approach succeeding elsewhere?

Which suggestions or requirements should be considered for how feature needs to appear or be implemented?

Stakeholders

@ tag stakeholders of this bug / feature

jdlrobson avatar Jan 26 '19 17:01 jdlrobson

I'm having a hard time following the different aspects of this. An updated database dump would be good & useful, but it sounds like there are also some plain bugs that need to be fixed. Is the string vs array thing a problem with the data dump or some piece of code?

I don't think forcing developers to input their test data piece by piece is a good answer. I'd rather see us come up with a more representative set of test data that fills most developers' needs. Having the ability to easily augment that on an individual basis is useful, but the base set should satisfy 90%.

tfmorris avatar Jan 26 '19 18:01 tfmorris

I've broken out this specific issue into its own task.As you say, I think there are other reasons to update the database dump so probably best to think about that issue separately.

jdlrobson avatar Jan 26 '19 20:01 jdlrobson

@jdlrobson can you please review to see if this can be closed?

mekarpeles avatar Apr 16 '19 16:04 mekarpeles

The database dump is still outdated. If someone can provide guidance on how to update the initial database data I will happily work on this task.

jdlrobson avatar Apr 16 '19 21:04 jdlrobson

Assigning @hornc per slack discussions. Is this still an issue?

xayhewalo avatar Nov 10 '19 18:11 xayhewalo

Instructions for updating the dev database can be found here. Is there a set of specific things people think should be added at this point?

SouthGoingZax avatar Nov 21 '20 02:11 SouthGoingZax

Let's close this because we do have docs (i.e. a solution exists) to get new data into one's test instance. Here are the docs:

https://github.com/internetarchive/openlibrary/wiki/Getting-Started#importing-test-data

https://github.com/internetarchive/openlibrary/blob/0d992241c5c37b40b131b2424e82722d16fedcad/scripts/copydocs.py

mekarpeles avatar Nov 25 '20 21:11 mekarpeles