Skip to content
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

Feat: Import ScanCode Json Files #2740

Merged
merged 17 commits into from
Feb 11, 2025
Merged

Feat: Import ScanCode Json Files #2740

merged 17 commits into from
Feb 11, 2025

Conversation

PhilippMa
Copy link
Contributor

Summary of changes

By connecting the previously implemented import dialog with the existing backend interface for opossum-file, it is now possible to import ScanCode Json files into OpossumUI.

Context and reason for change

We want OpossumUI to be usable with different foreign file formats.

closes #2718

@PhilippMa PhilippMa linked an issue Jan 31, 2025 that may be closed by this pull request
@PhilippMa PhilippMa force-pushed the feat/import-scancode branch from f2c76ac to e9aa212 Compare January 31, 2025 16:28
Copy link
Contributor

@Hellgartner Hellgartner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Impressive!
That needed way less code changes that I had feared for --> good work from the previous tickets!

Base automatically changed from feat/enhance-import-process to main February 5, 2025 08:19
@PhilippMa PhilippMa force-pushed the feat/import-scancode branch 2 times, most recently from 9029466 to 5eff797 Compare February 5, 2025 09:10
* allows importing scancode .json files through the import dialog by using the opossum-file converter
* put scancode input file directly in test directory to avoid path issues
…ate handling

* by creating a new ImportDialog instance every time it is opened, no manual state resets are needed
* ImportDialog can also safely assume that fileFormat always has a proper value
* It also conceptually makes sense to separate the IPC listening logic from the dialog that it opens
* currently only support for .opossum files is needed
* support for legacy files is no longer needed
* support for importing other file formats may become useful later but can be postponed to another issue
* default bottom placement overlaps with component for save location selection
@PhilippMa PhilippMa force-pushed the feat/import-scancode branch from 723c8f8 to 7b67cf5 Compare February 5, 2025 16:39
// need to make sure that the confirmSavePopup is closed before any assertions
// are run on linkedResourcesTree, because the confirmSavePopup also contains
// a LinkedResourcesTree which makes locators resolve to 2 elements
await confirmSavePopup.assert.isHidden();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one 💯

@Hellgartner Hellgartner merged commit 8fa8234 into main Feb 11, 2025
6 checks passed
@Hellgartner Hellgartner deleted the feat/import-scancode branch February 11, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Good case flow for scancode json
2 participants