Skip to content

[Bug]: Same environment names with different project names #6452

@lucaspouzac

Description

@lucaspouzac

Apache Hop version?

2.17.0-SNAPSHOT

Java version?

docker image from official repo

Operating system

Windows

What happened?

With the 2.17.0 version, the environement name is correctly filtered by project name. But if we have the same environement name on wo different project, the two environments are added at the default project.

With this conf

{
  "projectsConfig" : {
    "lifecycleEnvironments" : [
      {
        "name" : "DEFAULT - LOCAL",
        "purpose" : "Development",
        "projectName" : "default",
        "configurationFiles" : [
          "${HOP_CONFIG_FOLDER}/environments/local/env-variables.json"
        ]
      },
      {
        "name" : "DEFAULT - STAGING",
        "purpose" : "Staging",
        "projectName" : "default",
        "configurationFiles" : [
          "${HOP_CONFIG_FOLDER}/environments/staging/env-variables.json"
        ]
      },
      {
        "name" : "DEFAULT-PROD",
        "purpose" : "Production",
        "projectName" : "default",
        "configurationFiles" : [
          "${HOP_CONFIG_FOLDER}/environments/production/env-variables.json"
        ]
      },
      {
        "name" : "AD-LOCAL",
        "purpose" : "Development",
        "projectName" : "ad",
        "configurationFiles" : [
          "${HOP_CONFIG_FOLDER}/environments/local/env-variables.json"
        ]
      },
      {
        "name" : "AD-STAGING",
        "purpose" : "Staging",
        "projectName" : "ad",
        "configurationFiles" : [
          "${HOP_CONFIG_FOLDER}/environments/staging/env-variables.json"
        ]
      },
      {
        "name" : "AD-PROD",
        "purpose" : "Production",
        "projectName" : "ad",
        "configurationFiles" : [
          "${HOP_CONFIG_FOLDER}/environments/production/env-variables.json"
        ]
      }
    ]
  }
}
Image Image

With this conf

{
  "projectsConfig" : {
    "lifecycleEnvironments" : [
      {
        "name" : "LOCAL",
        "purpose" : "Development",
        "projectName" : "default",
        "configurationFiles" : [
          "${HOP_CONFIG_FOLDER}/environments/local/env-variables.json"
        ]
      },
      {
        "name" : "STAGING",
        "purpose" : "Staging",
        "projectName" : "default",
        "configurationFiles" : [
          "${HOP_CONFIG_FOLDER}/environments/staging/env-variables.json"
        ]
      },
      {
        "name" : "PROD",
        "purpose" : "Production",
        "projectName" : "default",
        "configurationFiles" : [
          "${HOP_CONFIG_FOLDER}/environments/production/env-variables.json"
        ]
      },
      {
        "name" : "LOCAL",
        "purpose" : "Development",
        "projectName" : "ad",
        "configurationFiles" : [
          "${HOP_CONFIG_FOLDER}/environments/local/env-variables.json"
        ]
      },
      {
        "name" : "STAGING",
        "purpose" : "Staging",
        "projectName" : "ad",
        "configurationFiles" : [
          "${HOP_CONFIG_FOLDER}/environments/staging/env-variables.json"
        ]
      },
      {
        "name" : "PROD",
        "purpose" : "Production",
        "projectName" : "ad",
        "configurationFiles" : [
          "${HOP_CONFIG_FOLDER}/environments/production/env-variables.json"
        ]
      }
    ]
  }
}
Image Image

Issue Priority

Priority: 2

Issue Component

Component: Hop Gui

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions