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
Export articles/posts #576
Conversation
Overall this is pleasantly scalable. Had we built this in-house we would have likely rushed to do a simpler synchronous export which would have to be re-built once peoples' data started piling up. One comment: I expect people will want to export their comments or other data in the future, so any logic which could be generalized as "export logic" as opposed to "article export" is probably worth considering at this point. Probably not worth building the other exports just yet. Articles are their own special category as they are the most portable concept of the site. |
@benhalpern agreed. I didn't plan to have it merged it as it is, I'm happy we started a conversation. You're right, it definitely needs to be more generic, the service should be about "exporting user content" (regardless of the fact that the first version only exports articles), same for the two attributes introduce. Something more like Let's discuss it in the next few days, thanks for the review! |
@benhalpern I gave this another go. The changes so far:
I'm not sure about the naming of the class |
@rhymes what about |
fine by me! I'll change it right away |
PS - the copy looks good to me! We can change the user facing copy to be more general once we get other types of exports in as an option. |
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.
Hey @rhymes, so sorry we haven't gotten to this yet. This all looks good to me. @maestromac I didn't wind up having time for a full-full-full human review, but I feel pretty good about all this. If you want to give this a review, we can merge at some point tomorrow.
@rhymes can you confirm you'd like to merge this if we give it the okay?
@benhalpern @maestromac The branch is ready. My main concern was about the list of fields in the export and whatever might have been missed by my pair of eyes. Not being a critical core feature we can still adjust it on the go by tweaking the copy as @jessleenyc mentioned and then decide how to export the rest of the content (comments, hearts, unicorns, saved articles and so on) |
@rhymes Nothing is sensitive in the export, but it probably makes sense to not include fields we don't really use.
Those are the only ones I'd remove (and keeping them wouldn't be the end of the world) I'll leave this up to @maestromac @jessleenyc and @Zhao-Andy to give this all final approval. Let me know when you've settled this all and I'll merge it. |
@benhalpern done, thanks for review! |
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.
Aside from a few tiny details, awesome work @rhymes ! I've tested it out locally and it's works well!
@maestromac feel free to take whatever action is needed and then merge this 🙂 |
@maestromac @benhalpern @jessleenyc thanks for the help in getting this past the finish line :-) Really appreciate it! |
Sure! I'll write it now. Thanks |
sorry for my late comment, haven't noticed that your referenced #219 in this PR. thanks for implementing my feature request. awesome that the feature is now in the codebase.
please make it also possible to download the generated file/files via the profile/setting/dashboard page (and an option to disable getting it sent by email). from security point of view, email is unsafe. all posts get transfered unencrypted (also unpublished ones). |
@c33s altough I understand the value of a "download" link, the website and the content are already public. Which sensitive data are you referring to? |
@rhymes unpublished articles. which can contain uncleaned code including secrets. |
@c33s nice catch, can you open a separate issue? |
This is an attempt to implement an "export posts" feature on the website.
What type of PR is this? (check all applicable)
Description
This PR is to allow people to export their own posts.
The feature works likes this:
articles_export_requested
becomes truearticles_export_requested
to false so that another request can be issued in the futureBeing a WIP there are a few details to work out and I would like @benhalpern and @jessleenyc feedbacks on these question if possible:
Article
model: I'm not 100% sure the subset is correct because I'm not familiar with all the attributes. Maybe I should have included something I've excluded and viceversaRelated Tickets & Documents
Closes #219
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
Added to documentation?