Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Export folders and requests #1396
The initial state is that all folders are expanded and none of the checkboxes is selected. If no folders or requests are selected, then the "Export" button will be disabled.
When the "Export" button is pressed, the flow will be the same as the existing "Export Workspace".
Since the focus here are requests, empty folders (without requests) will not appear in the tree.
There is also a top folder "All requests" which is a dummy folder to make exporting all top requests and folders easier with a single click, but will not be exported itself.
What are exported
The requests tree is constructed from the globally cached
Every time a folder is collapsed or checkbox selected, all of its children will be traversed which in worst case will result in O(N) time complexity. However, I think that this is still quite performant for most users.