Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example data in developer environment #49

Open
zacharyzollman opened this issue Dec 17, 2021 · 4 comments
Open

Example data in developer environment #49

zacharyzollman opened this issue Dec 17, 2021 · 4 comments

Comments

@zacharyzollman
Copy link
Contributor

zacharyzollman commented Dec 17, 2021

hi! I was hoping to tweak author and/or book pages in response to some URL ideas (like in BookWyrm issue 1585). I set up the developer environment then concluded that there aren't any preset book or author pages and that the only way to add this information is via an authenticated user who has at least editor-level permissions. It seems like this would require setting up email verification. If I just want to see a representative book page, is there a recommended method for adding an example book (with an author) and/or user? If so, it occurred to me that this could be included in the documentation, perhaps in the permissions or developer environment pages. I apologize if this has been addressed elsewhere. Thanks!

@mouse-reeve
Copy link
Member

Yes! This is a very good point. There's another issue somewhere about improving the setup process so that you don't need to have email working as well, which is related to this.

@zacharyzollman
Copy link
Contributor Author

Oh ok, I think that might be BookWyrm issue 1665

@seedlingattempt
Copy link

I think that this maybe should be part of some dev-setup script that could add a book and author + maybe some status posts as mock-data directly into the db? I don't have time to check right now, but shouldn't most of this stuff already exist as part of testing suites, @mouse-reeve ? If so could we just break it out as mock data and have it shared across dev + testing environments?

@mouse-reeve
Copy link
Member

I've been creating the test data ad-hoc in the tests, it would probably have been wiser to write a single script that generates test data, but at this point it would be quite an endeavor to refactor the tests.

But it wouldn't be hard to add a script that adds example data to dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants