Topics deprecated and export
- Topics deprecated UI
- Topics export
- Stream data from Mongo secondary to user
- Uses
ndjson
format (new-line delimited JSON) so we don't have to buffer the whole list - Rate-limited to once per hour
- Each topic has nested replies
- https://gitlab.com/gitlab-org/gitter/env/merge_requests/15 also created for injecting an error object if something goes wrong
- Add utility scripts
scripts/utils/list-group-admins.js
andscripts/utils/list-admins-of-every-forum.js
to help gather topics/forum admin emails - Add utility script
scripts/utils/email-for-user.js
to get an email for a given user - Blog post draft (GitLab internal), https://docs.google.com/document/d/17S3CzrZNbIwjWrt2c5eiOl6H0CQ0_mwJBarYLGVYRG0/edit?usp=sharing
Dev notes
Add a bunch of topics
Windows
for /l %x in (1, 1, 100) do node .\scripts\fixtures\create-topic.js --username MadLittleMods --group lots-a-topics --category general --title asdf%x --text asdf%x
scripts/utils/list-admins-of-every-forum.js
against beta
Run # Update the symlink because it doesn't work straight from the git repo on Windows
# https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/
mklink "C:\Users\MLM\Documents\GitLab\gitter-secrets\webapp\env" "C:\Users\MLM\Documents\GitLab\gitter-secrets\env"
# Eval the beta secrets
@FOR /f "tokens=*" %i IN ('bash /c/Users/MLM/Documents/GitLab/gitter-secrets/webapp/env beta') DO @%i
# Run the util script
set NODE_ENV=beta&&node .\scripts\utils\list-admins-of-every-forum.js
Related to
Edited by Eric Eastwood