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

Convert Endpoint #201

Merged
merged 50 commits into from
Aug 9, 2023
Merged

Conversation

juanfpatino
Copy link
Contributor

@juanfpatino juanfpatino commented Aug 7, 2023

Completed:

  • /sboms/convert logic
  • JPA generated IDs

Added

  • Relevant exceptions for conversion endpoint
    • DeserializerException
    • SerializerException
    • SBOMBuilderException
  • Convert endpoint in SBOMController.java

Changed

  • ConvertFromApiTest.java
  • Deleted old Converter.java

txdvse and others added 30 commits August 3, 2023 16:25
+ Added Conversion driver code
+ Added generic
+ Skeleton for ConvertCDX14.java
+ Skeleton for ConvertSPDX23.java
+ Added top level SBOM conversion for SVIP to SPDX 2.3
+ Added component converter
+ Added null checks
+ Added small fixes to make sure components convert when necessary
+ Updated convert to SVIP tests
+ Added a test to convert CycloneDX to SPDX

ConvertSPDX23.java
+ Added component conversion call
+ Added proper format and version setting

ConvertCDX14.java
+ Added proper format and version setting
+ docstrings
+ formatting
+ Formatting
+ Docstrings

Conversion.java
+ Fixed a bug with instancing causing data to be carried over
+ Docstrings
+ Formatting
…gnLab/SVIP into dev-dbRefactor-sboms-convert

# Conflicts:
#	doc/changelog.md
Copy link
Member

@dlg1206 dlg1206 left a comment

Choose a reason for hiding this comment

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

Upload doesn't work with frontend / endpoint. See comment for details

@juanfpatino juanfpatino linked an issue Aug 8, 2023 that may be closed by this pull request
7 tasks
Copy link
Member

@dlg1206 dlg1206 left a comment

Choose a reason for hiding this comment

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

Converted results don't show on frontend (requests are send successfully though) but basic testing shows API + Database works as intended.

Copy link
Contributor

@ian1dunn ian1dunn left a comment

Choose a reason for hiding this comment

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

Tested with front-end and works as intended, looks great

@juanfpatino juanfpatino merged commit f003387 into dev-dbRefactor-sboms Aug 9, 2023
3 checks passed
@juanfpatino juanfpatino deleted the dev-dbRefactor-sboms-convert branch August 9, 2023 20:08
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.

Convert Endpoint
4 participants