Skip to content

Conversation

@ghukill
Copy link
Contributor

@ghukill ghukill commented Oct 7, 2025

Purpose and background context

The og_description field can be None in the source record, but we cannot set [None] in the output TIMDEXRecord instance or we get validation errors.

How this addresses that need:

  • If og_description is None, just return None

How can a reviewer manually see the effects of these changes?

The new test test_mitlibwebsite_get_summary_returns_none_if_og_description_is_none pretty succinctly shows the change.

Includes new or updated dependencies?

NO

Changes expectations for external applications?

NO

What are the relevant tickets?

Why these changes are being introduced:

The 'og_description' field can be 'None' in the source record, but
we cannot set '[None]' in the output TIMDEXModel instance or we get
validation errors.

How this addresses that need:
* If og_description is None, just return None

Side effects of this change:
* None

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/TIMX-557
  * related work
@ghukill ghukill requested a review from a team October 7, 2025 13:45
@ghukill ghukill merged commit 5fa9354 into main Oct 7, 2025
3 checks passed
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