Skip to content

Conversation

@matt-bernhardt
Copy link
Member

@matt-bernhardt matt-bernhardt commented Aug 6, 2025

Developer

Why are these changes being introduced:

  • We are removing the lastnames feature from the MlCitation detector. It will still be extracted by Detector::Citation, but the algorithm within the detector won't support it.

How does this address that need:

This filters out the lastnames feature from Detector::MlCitation's extract_features method, which prevents it from being sent to the lambda.

The cassettes are also regenerated. Two of them are just removed, which confuses me as they should still be needed.

Document any side effects to this change:

None, as far as I know

Summary of changes (please refer to commit messages for full details)

Ticket(s)

https://mitlibraries.atlassian.net/browse/TCO-155

Accessibility

  • ANDI or Wave has been run in accordance to our guide and
    all issues introduced by these changes have been resolved or opened
    as new issues (link to those issues in the Pull Request details above)
  • There are no accessibility implications to this change

Documentation

  • Project documentation has been updated, and yard output previewed
  • No documentation changes are needed

ENV

  • All new ENV is documented in README.
  • All new ENV has been added to Heroku Pipeline, Staging and Prod.
  • ENV has not changed.

Stakeholders

  • Stakeholder approval has been confirmed
  • Stakeholder approval is not needed

Dependencies and migrations

NO dependencies are updated

NO migrations are included

Reviewer

Code

  • I have confirmed that the code works as intended.
  • Any CodeClimate issues have been fixed or confirmed as
    added technical debt.

Documentation

  • The commit message is clear and follows our guidelines
    (not just this pull request message).
  • The documentation has been updated or is unnecessary.
  • New dependencies are appropriate or there were no changes.

Testing

  • There are appropriate tests covering any new functionality.
  • No additional test coverage is required.

** Why are these changes being introduced:

* We are removing the lastnames feature from the MlCitation detector.
It will still be extracted by Detector::Citation, but the algorithm
within the detector won't support it.

** Relevant ticket(s):

* https://mitlibraries.atlassian.net/browse/tco-155

** How does this address that need:

This filters out the lastnames feature from Detector::MlCitation's
extract_features method, which prevents it from being sent to the
lambda.

The cassettes are also regenerated. Two of them are just removed, which
confuses me as they should still be needed.

** Document any side effects to this change:

None, as far as I know
@mitlib mitlib temporarily deployed to tacos-api-pipeline-pr-269 August 6, 2025 19:54 Inactive
@jazairi jazairi self-assigned this Aug 7, 2025
Copy link
Contributor

@jazairi jazairi left a comment

Choose a reason for hiding this comment

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

Confirmed behavior in Cloudwatch, as noted in the parallel PR. :shipit:

@matt-bernhardt matt-bernhardt merged commit 295cc05 into main Aug 7, 2025
5 checks passed
@matt-bernhardt matt-bernhardt deleted the tco-155-remove-lastnames branch August 7, 2025 14:09
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.

4 participants