Repository navigation
fix(opsgenie): store the team name in teams.name - #9402
Merged
Merged
Conversation
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>
klesh
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Opsgenie
convertTeamssubtask writes the team's UUID toteams.nameand the real team name toteams.alias:Opsgenie is the only plugin that writes the
teamstable. DevLake's team dashboards (DORA by team, Engineering Throughput and Cycle Time - Team View, Work Logs) list and filter teams byteams.name. So Opsgenie teams show up there as UUIDs like6a95a94a-2db4-4ec0-9f0f-694c40e017fe, not asold_team/new_team. The id is already inteams.id(opsgenie:Team:<connection>:<team id>), sonamedoesn't need to hold it.Changes:
tasks/teams_convertor.go:Nameis set to the Opsgenie team name.Aliasis left empty, because Opsgenie teams have no separate alias and the name would only be repeated.e2e/snapshot_tables/teams.csv:nameisold_team/new_team(from_raw_opsgenie_teams.csv), andaliasis 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 checksteams.csvneedsE2E_DB_URL, which I didn't run locally. The snapshot values come from the team names in the raw fixture.go vet ./plugins/opsgenie/...andgofmt: clean.pr-type/bug-fix.Generated-by:trailer, following the ASF generative tooling guidance.🤖 Generated with Claude Code