port-labs / ocean

🌊 Ocean 🌊 is an innovative solution developed by Port to seamlessly integrate various third-party systems with our developer portal product, empowering engineers to effortlessly prioritize key features and streamline the integration process.
https://ocean.getport.io
Apache License 2.0
109 stars 45 forks source link

[Integration][Snyk] Make Snyk Integration accept a list of organizations #980

Closed oiadebayo closed 1 week ago

oiadebayo commented 2 weeks ago

Description

What -
Updated the Snyk Integration to accept a list of organization IDs instead of a single ID. This change allows users to specify multiple organizations when setting up the integration, enabling more granular control over which organizations' data is ingested.

Why -
Previously, the Snyk Integration only allowed the specification of a single organization ID, which posed a limitation for users who needed to fetch data from multiple organizations within their Snyk account. This limitation led to errors when users attempted to input a comma-separated list of organization IDs. By allowing a list of organization IDs, the integration becomes more flexible, accommodating the needs of users managing multiple organizations, especially when dealing with sensitive data where selective ingestion is required.

How -
The integration code was modified to accept and process a comma-separated list of organization IDs. The system now iterates through each organization ID provided, fetching data accordingly. This update maintains backward compatibility, ensuring that the integration will continue to function as expected for users who provide a single organization ID. Additionally, the description of the organizationId input parameter has been updated to reflect this new functionality.

Type of change

All tests should be run against the port production environment(using a testing org).

Core testing checklist

Integration testing checklist

Preflight checklist

Screenshots

Include screenshots from your environment showing how the resources of the integration will look.

API Documentation

Provide links to the API documentation used for this integration.