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

Write a script to import a user profile (including tracks) from openwhyd.org into the local db #220

Closed
adrienjoly opened this issue Sep 17, 2019 · 0 comments · Fixed by #235
Labels
enhancement hacktoberfest Contribute --> win a t-shirt! help wanted
Projects

Comments

@adrienjoly
Copy link
Member

adrienjoly commented Sep 17, 2019

That would be useful to setup realistic data while testing openwhyd locally, for troubleshooting and feature development.

E.g. to test the rendering and behavior of the "Load more" button, from the /all page. (cf #221)


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@adrienjoly adrienjoly created this issue from a note in Development (⚡️To Do Next) Sep 17, 2019
@adrienjoly adrienjoly added the hacktoberfest Contribute --> win a t-shirt! label Oct 15, 2019
Development automation moved this from ⚡️To Do Next to ✔️ Done / pending QA Oct 26, 2019
adrienjoly added a commit that referenced this issue Oct 26, 2019
…235)

Closes #220.

What does this PR do / solve?
-----------------------------

When developing and/or testing features (e.g. the "load more" button, see #221) in a local environment, it can be handy to have some posts in the local database.

Overview of changes
-------------------

Introduce `./scripts/import-from-prod.js` which loads [adrien's profile and posts](https://openwhyd.org/adrien) to the local/testing database.

How to test this PR?
--------------------

Run this after starting a local database server (e.g. with `$ docker-compose up`):

```sh
$ node scripts/import-from-prod.js
```

=> http://localhost:8080/all should display several pages of tracks imported from https://openwhyd.org/adrien.
adrienjoly pushed a commit that referenced this issue Oct 26, 2019
# [1.15.0](v1.14.5...v1.15.0) (2019-10-26)

### Features

* **dev:** script to import a user's posts from production, for [#220](#220) ([#235](#235)) ([9c6164f](9c6164f))
@adrienjoly adrienjoly moved this from ✔️ Done / pending QA to 🌲 In production in Development Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement hacktoberfest Contribute --> win a t-shirt! help wanted
Projects
Development
  
🌲 In production
Development

Successfully merging a pull request may close this issue.

1 participant