Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug duplicate job name cannot be deleted #544

Closed
irainia opened this issue Aug 29, 2022 · 0 comments · Fixed by #556
Closed

Bug duplicate job name cannot be deleted #544

irainia opened this issue Aug 29, 2022 · 0 comments · Fixed by #556
Assignees
Labels
bug Something isn't working

Comments

@irainia
Copy link
Member

irainia commented Aug 29, 2022

Describe the bug
This bug is highly related to another issue mentioned here. This is a bug where we cannot rename or delete a job through deployment. This bug happens when:

  • there are two or more jobs with the same name (but with different projects),
  • there are one or more jobs that use the duplicated name job mentioned in the first point as a dependency (like static dependency), and
  • when we want to re-deploy in the hope to rename the duplicate job names

To Reproduce
The following is just an example on how to reproduce this bug:

  1. create two projects, let's name it projectA and projectB
  2. create one job for each project above, let's name both of them jobA
  3. deploy both of them
  4. create another job under projectA, name it jobB and has jobA as the dependency
  5. deploy the new job
  6. try to rename jobA under projctB into jobA_b
  7. deploy all jobs
  8. what we get in database is that there are three jobs now, jobA for projectA, jobA for projectB, and jobA_b for projectB

Expected behavior
There should be only two jobs in the database, jobA for projectA and jobA_b for projectB and sensor should be created for jobB to point to jobA (not jobA_b).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants