Skip to content

[PM-17562] Add GET endpoints for event integrations #6104

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

Merged

Conversation

brant-livefront
Copy link
Contributor

@brant-livefront brant-livefront commented Jul 18, 2025

🎟️ Tracking

PM-17562

📔 Objective

This PR adds database and API support for GET endpoints on the API. Specifically:

  • GET organizations/{organizationId}/integrations
    • Returns all of the currently active integrations for this organization (user must be an admin for the organization)
  • GET organizations/{organizationId}/integrations/{integrationId}/configurations
    • Returns all of the configurations for the specific integration (user must be an admin for the organization and the integration must be owned by the organization)

I've also altered the OrganizationIntegrationResponseModel to include the configuration. And I've also added an optional string? Service property to HecIntegration. This allows the front end to store a service enum into the object when it is created. When a user comes back to the page and the FE polls to see what is configured, it can use the Service parameter to determine which HEC service the user had setup previously.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@brant-livefront brant-livefront requested review from a team as code owners July 18, 2025 20:22
@brant-livefront brant-livefront requested a review from BTreston July 18, 2025 20:22
Copy link

codecov bot commented Jul 18, 2025

Codecov Report

Attention: Patch coverage is 25.25253% with 74 lines in your changes missing coverage. Please review.

Project coverage is 51.83%. Comparing base (f4e1e2f) to head (da78a60).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
...urationReadManyByOrganizationIntegrationIdQuery.cs 0.00% 19 Missing ⚠️
...izationIntegrationReadManyByOrganizationIdQuery.cs 0.00% 16 Missing ⚠️
.../OrganizationIntegrationConfigurationRepository.cs 0.00% 12 Missing ⚠️
.../Repositories/OrganizationIntegrationRepository.cs 0.00% 9 Missing ⚠️
.../OrganizationIntegrationConfigurationRepository.cs 0.00% 9 Missing ⚠️
.../Repositories/OrganizationIntegrationRepository.cs 0.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6104      +/-   ##
==========================================
- Coverage   51.86%   51.83%   -0.04%     
==========================================
  Files        1730     1732       +2     
  Lines       76422    76519      +97     
  Branches     6817     6820       +3     
==========================================
+ Hits        39639    39663      +24     
- Misses      35231    35304      +73     
  Partials     1552     1552              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

github-actions bot commented Jul 18, 2025

Logo
Checkmarx One – Scan Summary & Detailsc2aa2f6e-fab8-475f-9c29-692704ed6428

New Issues (1)

Checkmarx found the following issues in this Pull Request

Severity Issue Source File / Package Checkmarx Insight
HIGH Path_Traversal /src/Api/Controllers/SelfHosted/SelfHostedOrganizationLicensesController.cs: 56
detailsMethod PostLicenseAsync at line 56 of /src/Api/Controllers/SelfHosted/SelfHostedOrganizationLicensesController.cs gets dynamic data from the model...
ID: gsOHJYoGf23vh%2BwNdCZQWci4Gmw%3D
Attack Vector

Base automatically changed from brant/add-support-for-all-events-configuration to main July 22, 2025 14:02
Copy link

@withinfocus
Copy link
Contributor

@BTreston this is ready for AC team review.

@brant-livefront brant-livefront merged commit 988b994 into main Jul 23, 2025
63 of 64 checks passed
@brant-livefront brant-livefront deleted the brant/add-get-api-endpoints-for-event-integrations branch July 23, 2025 18:25
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