Skip to content

[NCL-9428] add endpoint for importing builds#4441

Merged
michalovjan merged 26 commits intoproject-ncl:masterfrom
michalovjan:NCL-9428-import-build
Feb 25, 2026
Merged

[NCL-9428] add endpoint for importing builds#4441
michalovjan merged 26 commits intoproject-ncl:masterfrom
michalovjan:NCL-9428-import-build

Conversation

@michalovjan
Copy link
Copy Markdown
Contributor

Checklist:

  • Have you added unit tests for your change?

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 23, 2026

REST API CHANGED

==========================================================================
==                            API CHANGE LOG                            ==
==========================================================================
                                   PNC                                    
--------------------------------------------------------------------------
--                              What's New                              --
--------------------------------------------------------------------------
- GET    /attachments
- POST   /attachments
- GET    /attachments/{id}
- PUT    /attachments/{id}
- GET    /builds/{id}/attachments

--------------------------------------------------------------------------
--                            What's Deleted                            --
--------------------------------------------------------------------------
- GET    /builds/{id}/artifacts/attachments

--------------------------------------------------------------------------
--                            What's Changed                            --
--------------------------------------------------------------------------
- GET    /environments/{id}
  Operation ID:
    - Changed getSpecific_4 to getSpecific_5
- GET    /scm-repositories/{id}
  Operation ID:
    - Changed getSpecific_12 to getSpecific_13
- PUT    /scm-repositories/{id}
  Operation ID:
    - Changed update_9 to update_10
- GET    /target-repositories/{id}
  Operation ID:
    - Changed getSpecific_13 to getSpecific_14
- GET    /build-configs/{id}
  Operation ID:
    - Changed getSpecific_1 to getSpecific_2
- PUT    /build-configs/{id}
  Operation ID:
    - Changed update_1 to update_2
- GET    /builds/{id}
  Operation ID:
    - Changed getSpecific_2 to getSpecific_3
- PUT    /builds/{id}
  Operation ID:
    - Changed update_2 to update_3
- GET    /deliverable-analyses/{id}
  Operation ID:
    - Changed getSpecific_3 to getSpecific_4
- GET    /environments
  Operation ID:
    - Changed getAll_4 to getAll_5
- GET    /group-builds/{id}
  Operation ID:
    - Changed getSpecific_5 to getSpecific_6
- GET    /group-configs/{id}
  Operation ID:
    - Changed getSpecific_6 to getSpecific_7
- PUT    /group-configs/{id}
  Operation ID:
    - Changed update_3 to update_4
- GET    /product-milestones/{id}
  Operation ID:
    - Changed getSpecific_8 to getSpecific_9
- PUT    /product-milestones/{id}
  Operation ID:
    - Changed update_5 to update_6
- GET    /product-releases/{id}
  Operation ID:
    - Changed getSpecific_9 to getSpecific_10
- PUT    /product-releases/{id}
  Operation ID:
    - Changed update_6 to update_7
- GET    /product-versions/{id}
  Operation ID:
    - Changed getSpecific_10 to getSpecific_11
- PUT    /product-versions/{id}
  Operation ID:
    - Changed update_7 to update_8
- GET    /products/{id}
  Operation ID:
    - Changed getSpecific_7 to getSpecific_8
- PUT    /products/{id}
  Operation ID:
    - Changed update_4 to update_5
- GET    /projects/{id}
  Operation ID:
    - Changed getSpecific_11 to getSpecific_12
- PUT    /projects/{id}
  Operation ID:
    - Changed update_8 to update_9
- GET    /scm-repositories
  Operation ID:
    - Changed getAll_9 to getAll_10
- GET    /target-repositories
  Operation ID:
    - Changed getAll_10 to getAll_11
- GET    /artifacts/purl/{purl}
  Return Type:
    - Changed 200 OK
      Media types:
        - Changed application/json
          Schema: Backward compatible
- GET    /artifacts/{id}
  Return Type:
    - Changed 200 OK
      Media types:
        - Changed application/json
          Schema: Backward compatible
- PUT    /artifacts/{id}
  Request:
        - Changed application/json
          Schema: Broken compatibility
          Missing property: attachedBuild (object)
- GET    /build-configs
  Operation ID:
    - Changed getAll_1 to getAll_2
- GET    /builds
  Operation ID:
    - Changed getAll_2 to getAll_3
- GET    /deliverable-analyses
  Operation ID:
    - Changed getAll_3 to getAll_4
- GET    /group-builds
  Operation ID:
    - Changed getAll_5 to getAll_6
- GET    /group-configs
  Operation ID:
    - Changed getAll_6 to getAll_7
- GET    /products
  Operation ID:
    - Changed getAll_7 to getAll_8
- GET    /projects
  Operation ID:
    - Changed getAll_8 to getAll_9
- POST   /artifacts
  Request:
        - Changed application/json
          Schema: Broken compatibility
          Missing property: attachedBuild (object)
  Return Type:
    - Changed 201 Created
      Media types:
        - Changed application/json
          Schema: Backward compatible
- GET    /artifacts
  Return Type:
    - Changed 200 OK
      Media types:
        - Changed application/json
          Schema: Backward compatible
- GET    /builds/{id}/artifacts/built
  Return Type:
    - Changed 200 OK
      Media types:
        - Changed application/json
          Schema: Backward compatible
- PUT    /builds/{id}/artifacts/built
  Return Type:
    - Changed 200 OK
      Media types:
        - Changed application/json
          Schema: Backward compatible
- POST   /builds/{id}/artifacts/built/quality
  Return Type:
    - Changed 200 OK
      Media types:
        - Changed application/json
          Schema: Backward compatible
- GET    /builds/{id}/artifacts/dependencies
  Return Type:
    - Changed 200 OK
      Media types:
        - Changed application/json
          Schema: Backward compatible
- PUT    /builds/{id}/artifacts/dependencies
  Return Type:
    - Changed 200 OK
      Media types:
        - Changed application/json
          Schema: Backward compatible
- GET    /product-milestones/delivered-artifacts/shared
  Return Type:
    - Changed 200 OK
      Media types:
        - Changed application/json
          Schema: Backward compatible
- GET    /product-milestones/{id}/delivered-artifacts
  Return Type:
    - Changed 200 OK
      Media types:
        - Changed application/json
          Schema: Backward compatible
- GET    /target-repositories/{id}/artifacts
  Return Type:
    - Changed 200 OK
      Media types:
        - Changed application/json
          Schema: Backward compatible
- GET    /deliverable-analyses/{id}/analyzed-artifacts
  Return Type:
    - Changed 200 OK
      Media types:
        - Changed application/json
          Schema: Backward compatible
--------------------------------------------------------------------------
--                                Result                                --
--------------------------------------------------------------------------
                 API changes broke backward compatibility                 
--------------------------------------------------------------------------

@michalovjan michalovjan force-pushed the NCL-9428-import-build branch from 472f58b to 57e4804 Compare January 23, 2026 14:12
@michalovjan
Copy link
Copy Markdown
Contributor Author

retest this please

1 similar comment
@michalovjan
Copy link
Copy Markdown
Contributor Author

retest this please

@michalovjan michalovjan force-pushed the NCL-9428-import-build branch from 57e4804 to 829adda Compare January 30, 2026 12:09
@michalovjan michalovjan requested a review from jomrazek January 30, 2026 12:15
@michalovjan
Copy link
Copy Markdown
Contributor Author

retest this please

@michalovjan
Copy link
Copy Markdown
Contributor Author

@jomrazek
these are broken because I've added more validation to Artifact DTO

- PUT    /artifacts/{id}
  Request:
        - Changed application/json
          Schema: Broken compatibility
- POST   /artifacts
  Request:
        - Changed application/json
          Schema: Broken compatibility

@michalovjan michalovjan force-pushed the NCL-9428-import-build branch from 829adda to a686c46 Compare February 16, 2026 11:48
@michalovjan
Copy link
Copy Markdown
Contributor Author

retest this please

@michalovjan michalovjan force-pushed the NCL-9428-import-build branch from a686c46 to e2f15e1 Compare February 16, 2026 13:00
@michalovjan michalovjan force-pushed the NCL-9428-import-build branch from e2f15e1 to 2591156 Compare February 16, 2026 13:04
@michalovjan michalovjan force-pushed the NCL-9428-import-build branch from 2591156 to 276bb36 Compare February 16, 2026 14:16
@michalovjan michalovjan force-pushed the NCL-9428-import-build branch from 276bb36 to d403940 Compare February 17, 2026 10:08
Copy link
Copy Markdown
Contributor

@jomrazek jomrazek left a comment

Choose a reason for hiding this comment

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

looks good 🤕

@michalovjan michalovjan merged commit cc29bbf into project-ncl:master Feb 25, 2026
1 of 2 checks passed
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.

3 participants