Skip to content

THUND-107: Add support for a deprecitated ltf table#232

Merged
phurley67 merged 9 commits intomasterfrom
THUND-107-multi-database-support
Jun 9, 2025
Merged

THUND-107: Add support for a deprecitated ltf table#232
phurley67 merged 9 commits intomasterfrom
THUND-107-multi-database-support

Conversation

@phurley67
Copy link
Contributor

@phurley67 phurley67 commented Jun 4, 2025

Add support for large_text_field_deprecated_class_name.

This is to allow for a model to transitioned over time to different table, so that it can eventually be placed into a separate database.

@phurley67 phurley67 requested a review from a team as a code owner June 4, 2025 18:12
@phurley67 phurley67 requested a review from dcaddell June 4, 2025 18:12
Copy link
Contributor

@dcaddell dcaddell left a comment

Choose a reason for hiding this comment

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

You mentioned this is still a draft, but here's a couple small things I noticed while skimming.

Copy link

@JQuinnie JQuinnie left a comment

Choose a reason for hiding this comment

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

Looking good! Just a minor comment...

CHANGELOG.md Outdated

Note: This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.3.0] - 2025-06-04
Copy link

Choose a reason for hiding this comment

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

Hmm... looks like someone prior did not fill the changelog for version 1.2.0?

And question, will you be bumping the date just before merge?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can bump the date, and yes there is no CHANGELOG entry for 1.2 🤷

Copy link
Contributor

@dcaddell dcaddell left a comment

Choose a reason for hiding this comment

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

Implementation looks good to me, just a couple of documentation-related requests!

Comment on lines 51 to 55
# Ensure that the resume was saved in the new table
assert_predicate DummyLargeTextValue.where(owner: p, field_name: "resume"), :exists?

# Does not currently delete the old value
assert_predicate NamedTextValue.where(owner: p, field_name: "resume"), :exists?
Copy link
Contributor

Choose a reason for hiding this comment

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

⛏️ I think it would be helpful to assert on the values in this test. It's not clear if this is leaving the old value in place or if it's updating both tables with the new value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently it updates both, I will add the test

CHANGELOG.md Outdated

Note: This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.3.0] - 2025-06-04
Copy link
Contributor

Choose a reason for hiding this comment

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

🔧 Can we add a note to the changelog that we've changed when the association is being loaded (from when module is included -> when the large_text_field macro is called)? There probably isn't many lines of code executing between those two actions, but we don't know for sure that it won't break anyone's implementation. We should make it obvious in case anyone does have issues with this release.

@phurley67 phurley67 requested a review from dcaddell June 9, 2025 17:01
Copy link
Contributor

@dcaddell dcaddell left a comment

Choose a reason for hiding this comment

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

Thank you!

@phurley67 phurley67 merged commit fb9e4bc into master Jun 9, 2025
20 of 21 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