Skip to content

Fix job update SQL to correctly use simple_name for job updates#2457

Merged
collado-mike merged 1 commit into
mainfrom
fix/job_update_simple_name
Mar 28, 2023
Merged

Fix job update SQL to correctly use simple_name for job updates#2457
collado-mike merged 1 commit into
mainfrom
fix/job_update_simple_name

Conversation

@collado-mike

Copy link
Copy Markdown
Collaborator

Problem

In #2448 we updated the job update logic to support adding a parent to an existing job. However, there was a bug in the update SQL that set the simple_name field to the fully qualified name instead. This fix addresses that bug and adds an assertion to the test that covers this case.

Checklist

  • You've signed-off your work
  • Your changes are accompanied by tests (if relevant)
  • Your change contains a small diff and is self-contained
  • You've updated any relevant documentation (if relevant)
  • You've included a one-line summary of your change for the CHANGELOG.md (Depending on the change, this may not be necessary).
  • You've versioned your .sql database schema migration according to Flyway's naming convention (if relevant)
  • You've included a header in any source code files (if relevant)

Signed-off-by: Michael Collado <collado.mike@gmail.com>
@boring-cyborg boring-cyborg Bot added the api API layer changes label Mar 27, 2023

@wslulciuc wslulciuc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM 👍

@wslulciuc wslulciuc enabled auto-merge (squash) March 27, 2023 22:17
@collado-mike collado-mike disabled auto-merge March 28, 2023 17:04
@collado-mike collado-mike merged commit ffc2ac7 into main Mar 28, 2023
@collado-mike collado-mike deleted the fix/job_update_simple_name branch March 28, 2023 17:04
Xavier-Cliquennois pushed a commit to Xavier-Cliquennois/marquez that referenced this pull request Jul 26, 2023
…uezProject#2457)

Signed-off-by: Michael Collado <collado.mike@gmail.com>
Signed-off-by: Xavier-Cliquennois <xavier.cliquennois@wearegraphite.io>
jonathanpmoraes referenced this pull request in nubank/NuMarquez Feb 6, 2025
Signed-off-by: Michael Collado <collado.mike@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api API layer changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants