Skip to content

Conversation

@JPrevost
Copy link
Member

@JPrevost JPrevost commented Oct 8, 2025

One way to see this change:

  • Locally, create a new transfer with a few files
  • In a rails console
    • t = Transfer.last
    • t.files_count
    • t.unassigned_files_count

If everything is working as expected, both file counts should match the number of files you attached in the UI.

To see that this was fixed, revert line 98 in app/models/transfer.rb to save, restart your server and console and run the same test. You should get 0 unassigned_files_count which is incorrect.

https://mitlibraries.atlassian.net/browse/ETD-66

Requires database migrations?

NO

Includes new or updated dependencies?

NO

@mitlib mitlib temporarily deployed to thesis-submit-pr-1476 October 8, 2025 12:17 Inactive
@coveralls
Copy link

coveralls commented Oct 8, 2025

Coverage Status

coverage: 98.339%. remained the same
when pulling c0d9f10 on etd-667-71defaults
into d8fbf03 on main.

@JPrevost JPrevost force-pushed the etd-667-71defaults branch from 47da2b9 to c0d9f10 Compare October 8, 2025 14:19
@JPrevost JPrevost temporarily deployed to thesis-submit-pr-1476 October 8, 2025 14:19 Inactive
@JPrevost JPrevost requested a review from jazairi October 8, 2025 14:35
@jazairi jazairi self-assigned this Oct 8, 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 locally that this fixes the problem by running the test described in the PR description. Thanks for figuring out a long-standing problem!

@JPrevost JPrevost merged commit 737c70d into main Oct 8, 2025
2 checks passed
@JPrevost JPrevost deleted the etd-667-71defaults branch October 8, 2025 15:26
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.

5 participants