-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(fossid-webapp): List snippets from FossID lazily
Currently, the FossID snippets are all listed in a first step, including their matching lines. Then in a second step, they are mapped to ORT snippets. A future commit is going to introduce a limit for listing snippets. If this limit is applied to the current logic (i.e. when listing the snippets), it is going to clash with the snippet choice feature: chosen snippets are removed from the results and thus should not be counted when enforcing the limit. Therefore, this commit makes the listed snippets a Flow. When mapping the snippets and applying the snippet choices, the current snippet count can then be compared to the limit and additional snippets can lazily be fetched. Signed-off-by: Nicolas Nobelis <nicolas.nobelis@bosch.com>
- Loading branch information
1 parent
10cef09
commit 6a53cc0
Showing
4 changed files
with
70 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters