Skip to content

Conversation

@mekarpeles
Copy link
Member

Closes #10965

Technical

The work we were getting back from infogami was actually a type redirect and was not hydrated by the core.models.Work class (and returned Nothing).

Stakeholders

@cdrini

@Copilot Copilot AI review requested due to automatic review settings July 18, 2025 18:16
@github-actions github-actions bot added the Priority: 1 Do this week, receiving emails, time sensitive, . [managed] label Jul 18, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an issue where redirect chains were not being properly resolved during export operations. The problem occurred when infogami returned a redirect type object instead of a hydrated Work object, causing the export to fail with Nothing being returned.

  • Replaces the incorrect method call on the redirect object with proper static method usage
  • Imports the Work class to access the correct resolve_redirect_chain method
  • Ensures the resolved work key is properly retrieved and used to fetch the actual work object

@mekarpeles mekarpeles assigned cdrini and unassigned jimchamp Jul 18, 2025
@mekarpeles mekarpeles added the Patch Deployed This PR has been deployed to production independently, outside of the regular deploy cycle. label Jul 18, 2025
@mekarpeles mekarpeles assigned jimchamp and unassigned cdrini Jul 18, 2025
Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

Lgtm! Tested on prod and my reading log works now 👍 Re-assigning to me since Mek and I were chatting about it.

@cdrini cdrini assigned cdrini and unassigned jimchamp Jul 18, 2025
@cdrini cdrini merged commit ed12baa into master Jul 18, 2025
7 checks passed
@cdrini cdrini deleted the 10965/hotfix/fix-exports-resolve-redirect-chain branch July 18, 2025 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Patch Deployed This PR has been deployed to production independently, outside of the regular deploy cycle. Priority: 1 Do this week, receiving emails, time sensitive, . [managed]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Internal error message when exporting reading log (as .csv)

3 participants