Enable environment tab and file scan from files in environment #2515
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces the GUI of environment and some fixes to previous dataset features. For the backend of environment, see #2434
After introducing the environment, the way of uploading data and scanning data using workflow is presented in this blog. For more specific information, there is a demo video.
Features
View the Environment information at the workspace

Add dataset to the current environment

Preview Data File in Dataset of environment

Scan Files that are in the datasets

Implementation Details
The changes on the ScanSourceOperatorDesc
Previously, the source file is located by its absolute path and scanned into the workflow. Now, since all the files are within the dataset and managed by JGit, its physical file may not be directly available. Therefore, couple of changes are made regarding the way that source operator scans the file.
A new member variable is added:
class
DatasetFileDesccontains the softlink to the file in the dataset, and has utilities to read the file as stream/tempraory file.datasetFileDescwill be initialized whensetContextis called:A new parameter is added in the constructor:
If
datasetFileDescis set non-null(i.e. user system is enabled), when creating the input stream reader, the stream will be created usingdatasetFileDesc.fileInputStream: