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

[data_source_datadog_software_catalog] Adding Software Catalog data source #2822

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cmcmacs
Copy link

@cmcmacs cmcmacs commented Feb 9, 2025

This PR adds Software Catalog data source, using V2 api for getting Catalog Entities.

@cmcmacs cmcmacs requested review from a team as code owners February 9, 2025 06:29
@jhgilbert jhgilbert self-assigned this Feb 10, 2025
jhgilbert
jhgilbert previously approved these changes Feb 10, 2025
@jhgilbert jhgilbert removed their assignment Feb 10, 2025
@cmcmacs
Copy link
Author

cmcmacs commented Feb 19, 2025

@DataDog/web-frameworks Hi, can I have a review on this please? thanks

@cmcmacs cmcmacs force-pushed the software_catalog_entities branch from 42ba3f6 to bd2d590 Compare February 21, 2025 12:55
@cmcmacs cmcmacs requested a review from a team as a code owner February 21, 2025 12:55
optionalParams.WithPageOffset(offset)
optionalParams.WithPageLimit(limit)

ddResp, _, err := d.Api.ListCatalogEntity(d.Auth, *optionalParams)
Copy link

@fpighi fpighi Mar 7, 2025

Choose a reason for hiding this comment

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

We'll need to check if the ordering of entities from the API is stable. If not, could we do something to make it stable in the provider code (e.g. order by name). This way we minimize chances of meaningless drifts in plans.

Copy link
Author

Choose a reason for hiding this comment

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

This API endpoint doesnt support ordering, I added sort.Slice to explicitly sort slice before setting it to state in func (d *datadogSoftwareCatalogDataSource) updateState

kguske-datadog
kguske-datadog previously approved these changes Mar 7, 2025
@cmcmacs cmcmacs dismissed stale reviews from kguske-datadog and jhgilbert via 40d7975 March 10, 2025 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants