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

Fail when creating a Scope with a null-parent #1354. #1377

Merged
merged 2 commits into from Aug 31, 2021

Conversation

Treehopper
Copy link

@Treehopper Treehopper commented Sep 3, 2020

  • Prevent subsequent lookup of values in the parent-scope, from failing.
  • In case of failure: Preserve stack trace to uncover root cause.

See #1354


name: Pull Request
about: Create a report to help us improve
title: ''
labels: Status:Discovery
assignees: ''


Environment

Liquibase Version:

Liquibase Integration & Version: <Pick one: CLI, maven, gradle, spring boot, servlet, etc.>

Liquibase Extension(s) & Version:

Database Vendor & Version:

Operating System Type & Version:

Pull Request Type

  • Bug fix (non-breaking change which fixes an issue.)
  • Enhancement/New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

A clear and concise description of the issue being addressed. Additional guidance here.

  • Describe the actual problematic behavior.
  • Ensure private information is redacted.

Steps To Reproduce

List the steps to reproduce the behavior.

  • Please be precise and ensure private information is redacted
  • Include things like
    • Files used - sql scripts, changelog file(s), property file(s), config files, POM Files
    • Exact commands used - CLI, maven, gradle, spring boot, servlet, etc.

Actual Behavior

A clear and concise description of what happens in the software before this pull request.

  • Include console output if relevant
  • Include log files if available.

Expected/Desired Behavior

A clear and concise description of what happens in the software after this pull request.

Screenshots (if appropriate)

If applicable, add screenshots to help explain your problem.

Additional Context

Add any other context about the problem here.

Fast Track PR Acceptance Checklist:

<

!--- If you're unsure about any of these, just ask us in a comment. We're here to help|width=200,height=183!

-->

Need Help?

Come chat with us on our discord channel


Dev Handoff Notes (Internal Use)

Links

Testing

Dev Verification

Code review and automated tests

┆Issue is synchronized with this Jira Bug by Unito

- Prevent subsequent lookup of values in the parent-scope, from failing.
- In case of failure: Preserve stack trace to uncover root cause.
@Treehopper
Copy link
Author

Not sure what codecov is trying to tell me. Please let me know if there is something I should fix.

@molivasdat molivasdat linked an issue Sep 16, 2020 that may be closed by this pull request
@molivasdat
Copy link
Contributor

Hi @Treehopper Thanks for creating this PR.
Here’s what happens next:

A member of the Liquibase team will take a look at your contribution and may suggest
changes, additional tests, or provide other feedback. The PR will be prioritized
according to our development and testing capacity.

We’ll let you know when it’s ready to move to the next step or if any changes are needed.

@nvoxland
Copy link
Contributor

I pushed a merge conflict fix to your branch, along with moving your test to ScopeTest.

Marking this as NoManualTesting since it's a null-check that should only be hittable by libraries using Liquibase, not by our code.

@nvoxland nvoxland moved this from To Do to Code Review in Conditioning++ Jun 29, 2021
@@ -26,6 +26,8 @@
import java.nio.charset.Charset;
import java.util.*;

import static java.util.Objects.requireNonNull;
Copy link
Author

Choose a reason for hiding this comment

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

Looks like this is now unused.

@liquibase liquibase deleted a comment from codecov bot Jul 6, 2021
@suryaaki2 suryaaki2 moved this from Code Review to Ready for Handoff (In JIRA) in Conditioning++ Jul 27, 2021
@liquibase liquibase deleted a comment from sync-by-unito bot Aug 11, 2021
@nvoxland nvoxland changed the base branch from 4.4.x to master August 31, 2021 16:11
@nvoxland nvoxland merged commit 8de2145 into liquibase:master Aug 31, 2021
Conditioning++ automation moved this from Ready for Handoff (In JIRA) to Done Aug 31, 2021
@nvoxland nvoxland removed this from Done in Conditioning++ Sep 28, 2021
@nvoxland nvoxland added this to the v4.5.0 milestone Sep 28, 2021
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.

NPE triggered by liquibase.Scope.getLog
5 participants