Skip to content

Conversation

@lucas-oristanio
Copy link
Member

No description provided.

@lucas-oristanio lucas-oristanio self-assigned this Jun 8, 2025
@lucas-oristanio lucas-oristanio marked this pull request as ready for review June 8, 2025 20:45
@ezpmartins ezpmartins requested review from Copilot and removed request for leOhsantos June 8, 2025 20:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This hotfix removes the "impressions" metric from the API calls that fetch post insights.

  • Removed "impressions" from the query parameters in PublicacaoService.
  • Removed the "impressions" case handling in InsightService to align with upstream API changes.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/main/java/com/vulpix/api/service/integracoes/graph/PublicacaoService.java Removed "impressions" from the metrics parameter in the API URL.
src/main/java/com/vulpix/api/service/integracoes/graph/InsightService.java Removed "impressions" from the batch request and eliminated corresponding metric handling.
Comments suppressed due to low confidence (2)

src/main/java/com/vulpix/api/service/integracoes/graph/PublicacaoService.java:304

  • Ensure that the removal of the 'impressions' metric from query parameters is intentional and that downstream services or documentation are updated to reflect this change.
.queryParam("metric", "reach,likes,comments,shares,saved,profile_visits")

src/main/java/com/vulpix/api/service/integracoes/graph/InsightService.java:107

  • Since the 'impressions' metric has been removed from the metric query, remove or refactor any related logic (such as the impressions handling case) in InsightService to avoid dead code.
case "impressions":

@ezpmartins ezpmartins merged commit ea9dba3 into main Jun 8, 2025
3 checks passed
@lucas-oristanio lucas-oristanio deleted the hotfix/get-metrics branch June 8, 2025 20:46
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