Skip to content

fix(opsgenie): store the team name in teams.name - #9402

Merged
klesh merged 1 commit into
apache:mainfrom
ShivamSharma43:fix/opsgenie-team-name
Nov 19, 2026
Merged

klesh merged 1 commit into
apache:mainfrom
ShivamSharma43:fix/opsgenie-team-name

Conversation

@ShivamSharma43

Copy link
Copy Markdown
Contributor

Summary

The Opsgenie convertTeams subtask writes the team's UUID to teams.name and the real team name to teams.alias:

Name:  team.Id,
Alias: team.Name,

Opsgenie is the only plugin that writes the teams table. DevLake's team dashboards (DORA by team, Engineering Throughput and Cycle Time - Team View, Work Logs) list and filter teams by teams.name. So Opsgenie teams show up there as UUIDs like 6a95a94a-2db4-4ec0-9f0f-694c40e017fe, not as old_team / new_team. The id is already in teams.id (opsgenie:Team:<connection>:<team id>), so name doesn't need to hold it.

Changes:

  • tasks/teams_convertor.go: Name is set to the Opsgenie team name. Alias is left empty, because Opsgenie teams have no separate alias and the name would only be repeated.
  • e2e/snapshot_tables/teams.csv: name is old_team / new_team (from _raw_opsgenie_teams.csv), and alias is empty. No other column changes.

No migration: rows are rewritten on the next conversion.

Does this close any open issues?

No issue is open for this. The bug is described above.

Screenshots

N/A

Other Information

  • go test ./plugins/opsgenie/tasks/: pass. The e2e test that checks teams.csv needs E2E_DB_URL, which I didn't run locally. The snapshot values come from the team names in the raw fixture.
  • go vet ./plugins/opsgenie/... and gofmt: clean.
  • No open PR touches the opsgenie plugin.
  • Suggested label: pr-type/bug-fix.
  • AI assistance disclosure: I prepared this change with Claude Code (Claude Opus 5.5), reviewed the diff and ran the tests. The commit has a Generated-by: trailer, following the ASF generative tooling guidance.

🤖 Generated with Claude Code

ConvertTeams wrote the Opsgenie team id to teams.name and the team
name to teams.alias. The team dashboards list and filter teams by
teams.name, so Opsgenie teams showed up there as UUIDs.

Set Name to the team name, leave Alias empty, and update the e2e
teams snapshot.

Generated-by: Claude Code (Claude Opus 5.5)

Signed-off-by: Shivam Sharma <192242476+ShivamSharma43@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 17, 2026 05:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@klesh
klesh merged commit f576392 into apache:main Nov 19, 2026
10 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