Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor to seperate Phabricator related metadata away from DiffComment
Summary: **Context:** Because ISL2.0 is an open source project. The infrastructure is shared with being able to be used for GitHub in mind. Such as DiffComment type. It is good for us to prevent Phabricator specific data leaking into generic typings. Thus in this Diff I'm trying to split the data parsing needed from the Phabricator extension side to be handled separately. This will also make it easier for us to add in other datatypes needed in the future. This is my try at doing this. It is a bit difficult and I try to do everything with one query call. So I split the query function and the parsing function up and I can individually call the query in the Phabricator extension side and have the flexibility of manipulating the other data. However, a cleaner way might be just have Phabricator extension to make another query for the data that it needs. Thoughts on this? cc. evangrayk More context. https://www.internalfb.com/diff/D68190279?dst_version_fbid=1546045746099332&transaction_fbid=1178252550317946 Reviewed By: quark-zju Differential Revision: D69585838 fbshipit-source-id: 666c34ef6e71de50b6ae624bb9cad2f26776218f
- Loading branch information