Skip to content

fix: atlan-poc-internal-app-flux-listing#6969

Open
vivekanandan-devtron wants to merge 1 commit into
mainfrom
fix/atlan-poc-flux-listing
Open

fix: atlan-poc-internal-app-flux-listing#6969
vivekanandan-devtron wants to merge 1 commit into
mainfrom
fix/atlan-poc-flux-listing

Conversation

@vivekanandan-devtron

@vivekanandan-devtron vivekanandan-devtron commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Description

• While constructing the map for helm apps, we are building the deploymentAppVariable inline as seen in line 142, which is a combination of appName + namespace.
• This name has to map with deployedApp.Name as seen in line 175. Only then the value will be excluded.
• I can also see a BuildDeployedAppName in DeploymentUtil.go which consists of a combination of appName + environmentName.
• The key is getting constructed in a wrong fashion which is leading to this bug.

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?


Summary by Bito

  • Updated InstalledAppRepository to include environment_name in the database query for deployment app details.
  • Refactored FluxApplicationService to use a utility function for building deployment app names instead of manual string formatting.
  • Cleaned up and reordered imports in both modified files.

- The deployed app being constructed in a wrong manner meant that apps deployed through Devtron were also getting listed as external app
- Use `appName+envName` instead of `appName+namaspace`
- Use the already existing util method to construct the deployed app name instead of building the string inline
@github-actions

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

@github-actions

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

2 participants