Skip to content

Conversation

@katydidnot
Copy link
Contributor

  • Fix existing model object check to use the .first() method instead of slicing.

Bug: T404879
Change-Id: I97bbfc55162194bc970c664995b0ec8184405e10

Description

Describe your changes in detail following the commit message guidelines

This fixes the warning we saw in production where the QuerySet has no attribute save.

Rationale

  • Fixes the re-aggregation command

Phabricator Ticket

https://phabricator.wikimedia.org/T404879

How Has This Been Tested?

Re-ran the command locally using December 2024 archives and saw that the warning was no longer there.

Screenshots of your changes (if appropriate):

Screenshot 2025-10-02 at 3 55 17 PM

Types of changes

What types of changes does your code introduce? Add an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

- Fix existing model object check to use the .first() method instead of slicing.

Bug: T404879
Change-Id: I97bbfc55162194bc970c664995b0ec8184405e10
Copy link
Contributor

@suecarmol suecarmol left a comment

Choose a reason for hiding this comment

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

I can confirm I see data from uploading a couple of days in December 2024, including the WSj.com collections and MarketWatch!

Screenshot 2025-10-02 at 18 32 45 Screenshot 2025-10-02 at 18 32 50

@suecarmol suecarmol merged commit 219caaa into master Oct 3, 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