Skip to content

Add truthy check for data.policies before calling 'includes' on it#9467

Merged
chelshaw merged 2 commits into
masterfrom
ui/fix-GH9179
Jul 13, 2020
Merged

Add truthy check for data.policies before calling 'includes' on it#9467
chelshaw merged 2 commits into
masterfrom
ui/fix-GH9179

Conversation

@chelshaw
Copy link
Copy Markdown
Contributor

This should fix issue #9179 but unfortunately I haven't been able to replicate the same behavior, before or after the fix.

Should be backported to the next 1.4.x release. Still looking into what could be causing the root issue (policies is saved as null) and open to other ways this could be addressed

Copy link
Copy Markdown
Contributor

@Monkeychip Monkeychip left a comment

Choose a reason for hiding this comment

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

My only thought is to see if the person reporting the issue can test on this branch to see if it fixes their issue. However, that's likely not an option. Regardless, this fix appears to be harmless even if it does not fix the issue as all you're doing is catching null on data.policies where before we were not.

@chelshaw chelshaw merged commit 583f6a6 into master Jul 13, 2020
@chelshaw chelshaw deleted the ui/fix-GH9179 branch July 13, 2020 20:14
pull Bot pushed a commit to Zezo-Ai/vault that referenced this pull request Sep 19, 2025
…#9467)

* adding new locks

* adding initial testing

* changelog

* Update changelog/_9336.txt



* fixing test to use proper error output

* added additional locks on pops and last push.

* fixing tests since I cant use t.Fatalf in a go func

* adding rotation window, removing lock as reached a deadlock in test

* removing locking from the OnFailure

* removing unused locks.

---------

Co-authored-by: JMGoldsmith <spartanaudio@gmail.com>
Co-authored-by: John-Michael Faircloth <fairclothjm@users.noreply.github.com>
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.

3 participants