New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems adding themes for the featured theme collections from django pages #6312
Comments
@diox I could reproduce this issue on AMO stage with FF67(Win10). Perhaps this information helps:
|
I can't tell if this issue is reproducible on prod or not but I see that it affects the appearance of the To further explain: If I add a theme and Perhaps @wagnerand could help to confirm if this is an issue only reproducible on the testing servers or it's also an issue on prod too. |
Apart from this sounding like an odd bug, we are not recommending themes at the moment, are we? |
@wagnerand Not yet, but this should affect right now the featured theme collection on prod with the original problem as described above |
Yes, I can reproduce this behavior in prod as well. |
Raising priority as this affects recommendations. |
After looking at the code I'm pretty sure it's because in django admin the Collection instance either isn't saved when a CollectionAddon instance is created, or it's saved before the CollectionAddon is created, so things like the ES index and the featured status cache are updated too early. We had specific methods for adding and removing add-ons that specifically saved the Collection afterwards but it appears they were only used by the legacy frontend. |
Prerequisites:
django admin pages
The user is an Admin or Collections:Contribute
STR:
Expected result:
The added themes are visible.
Actual result:
Only the second time after "Save" is clicked the collection is updated on AMO frontend.
Notes:
This issue is reproducible on AMO dev with FF64 (Win10).
The text was updated successfully, but these errors were encountered: