-
Notifications
You must be signed in to change notification settings - Fork 189
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
Closes #2083: Migrate legacy accounts away from wiki #2096
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wrote something like this to check for dead feeds too, in case it's useful:
@@ -0,0 +1,68 @@ | |||
const fetch = require('node-fetch'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this live in tools/
vs. src/api/users/tools
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@manekenpix and I had some discussion about this too, we weren't sure so we decided to leave it here and see what others thought.
It originally was made to help with testing the paginated GET route, but now it instead dumps users to a json file so perhaps tools/
is the better place after all.
* Initial implementation of planet feed wiki migration tool * Removed satellite & migrated to console.log (and friends) instead * Added README, review fixes * Refactor README to be more a-temporal * Change feeds into string * Removed env.local
Co-authored-by: Josue [email protected]
Issue This PR Addresses
Closes #2083
Type of Change
Description
This tool fetches legacy users from the planet feed wiki list, parses them, and dumps to a JSON file for later use (in the parsing service).
How to test
gh pr checkout 2096
cd src\api\users\tools\migrate
npm install
npm start
The users are dumped to
src\api\users\tools\migrate\legacy_users.json
Checklist