Skip to content

Conversation

dragomirp
Copy link
Contributor

@dragomirp dragomirp commented Jan 16, 2023

Issue

  • DPE-1049
  • Relating fails if event.app is None

Solution

  • More resilient check for database name and extensions

Context

  • The VM charm is also affected by perpetual blocked status if extensions are requested, so the check to unblock is also copied

Testing

  • Adds integration test for relating with weebl
  • Adds unit tests for extension unblocking logic

Release Notes

  • More resilient check for database name and extensions
  • Unblock charm when relations requesting extensions are broken

@codecov
Copy link

codecov bot commented Jan 16, 2023

Codecov Report

Merging #52 (9ea722e) into main (c36b503) will increase coverage by 0.46%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##             main      #52      +/-   ##
==========================================
+ Coverage   65.35%   65.82%   +0.46%     
==========================================
  Files           6        6              
  Lines         814      828      +14     
  Branches      115      123       +8     
==========================================
+ Hits          532      545      +13     
  Misses        258      258              
- Partials       24       25       +1     
Impacted Files Coverage Δ
src/relations/db.py 72.18% <83.33%> (+2.43%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@dragomirp dragomirp changed the title DPE-1049 Legacy interface fails to relate if event attributes are None Jan 16, 2023
@dragomirp dragomirp marked this pull request as ready for review January 16, 2023 23:02
Copy link
Member

@marceloneppel marceloneppel left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks Dragomir!

Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

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

Nice!

@dragomirp dragomirp merged commit acc1dff into main Jan 24, 2023
@dragomirp dragomirp deleted the dpe-1049-weebl branch January 24, 2023 12:52
@dragomirp dragomirp restored the dpe-1049-weebl branch January 24, 2023 13:43
dragomirp added a commit that referenced this pull request Jan 24, 2023
@dragomirp dragomirp deleted the dpe-1049-weebl branch January 25, 2023 16:43
BON4 pushed a commit to BON4/postgresql-operator that referenced this pull request Apr 23, 2024
…cal#52)

* More resilient database name check and clearing of extensions blocked
status

* Unpinning libjuju test

* Revert "Unpinning libjuju test"

This reverts commit 7c6ed45.

* Move clearing of blocked status to _on_relation_broken

* Unit tests
github-actions bot added a commit to canonical/test-runners-2-github-x64-postgresql-operator that referenced this pull request May 25, 2024
github-actions bot added a commit to canonical/test-runners-2-azure-arm64-postgresql-operator that referenced this pull request May 25, 2024
github-actions bot added a commit to canonical/test-runners-2-is-x64-postgresql-operator that referenced this pull request May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants