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

Fix non-canonical protocol not showing settings (PP-1472) #2029

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

jonathangreen
Copy link
Member

Description

If a setting is stored in the database with a non-canonical protocol, that is the protocol that is being sent to the admin UI. Because of this the admin UI isn't showing settings for these integrations.

This is a good thing to fix anyway, since its the first time we've tried migrating the name of a protocol, but it likely won't be the last time we have to migrate a protocol name.

Motivation and Context

In #2017, I updated the protocol for the MARC integration from MARCExporter to MarcExporter. This triggered the problem on the dev server.

How Has This Been Tested?

  • Tested locally with existing DB.

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@jonathangreen jonathangreen added the bug Something isn't working label Sep 5, 2024
@jonathangreen jonathangreen force-pushed the bugfix/integration-settings branch from 877995b to 871cb3c Compare September 5, 2024 15:53
@jonathangreen jonathangreen changed the title Fix non-canonical protocol not showing settings Fix non-canonical protocol not showing settings (PP-1472) Sep 5, 2024
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.70%. Comparing base (6d93cda) to head (2b7ed36).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2029      +/-   ##
==========================================
+ Coverage   90.69%   90.70%   +0.01%     
==========================================
  Files         342      342              
  Lines       40559    40579      +20     
  Branches     8793     8799       +6     
==========================================
+ Hits        36783    36808      +25     
+ Misses       2511     2508       -3     
+ Partials     1265     1263       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@tdilauro tdilauro left a comment

Choose a reason for hiding this comment

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

LGTM! 🥇

@@ -100,7 +101,7 @@ def test_registry_get_returns_default_if_name_not_registered(
assert registry.get("test_class", "default") == "default"

# __get__ throws KeyError
with pytest.raises(KeyError):
with pytest.raises(LookupException):
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: ^ Want to adjust comment above?

Copy link
Member Author

Choose a reason for hiding this comment

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

Missed that one 🤦🏻, thank you!

@jonathangreen jonathangreen merged commit c7489f7 into main Sep 5, 2024
20 checks passed
@jonathangreen jonathangreen deleted the bugfix/integration-settings branch September 5, 2024 20:05
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
Development

Successfully merging this pull request may close these issues.

2 participants