Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Profiles don't update in Algolia #1283

Open
viktor-yunenko opened this issue Jun 13, 2021 · 3 comments
Open

Profiles don't update in Algolia #1283

viktor-yunenko opened this issue Jun 13, 2021 · 3 comments
Assignees

Comments

@viktor-yunenko
Copy link
Member

viktor-yunenko commented Jun 13, 2021

eg a user approval through the admin panel doesn't push them into the index (tested on prod)

cc sebgrebe

@viktor-yunenko
Copy link
Member Author

@sebgrebe, FYI I also noticed that there's an issue with the outdated tags index, which could be related. It's why the 400 issue on tags is happening even although we fixed the bug on Sunday. The server returns Invalid pk "9" - object does not exist, which usually means that there's a tag in algolia that doesn't exist on the backend. Eg that tag is on the stage server only.

Details: https://sentry.io/organizations/eahub/issues/2401386725/events/b4f480e0d3454b689beed9a7e4ec2efa/?project=5545929

@sebgrebe
Copy link
Collaborator

sebgrebe commented Jun 16, 2021

I'm starting to look at this now, @victor-yunenko

@sebgrebe sebgrebe self-assigned this Jun 17, 2021
@sebgrebe
Copy link
Collaborator

sebgrebe commented Jun 18, 2021

@victor-yunenko, I found the culprit:

Finally, realize that update() does an update at the SQL level and, thus, does not call any save() methods on your models, nor does it emit the pre_save or post_save signals (which are a consequence of calling Model.save()).

django docs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants