Skip to content
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

[#5727] Fix datapusher trigger in case of resource_update #6339

Conversation

shubham-mahajan
Copy link
Member

Fixes #5727

Proposed fixes:

The notify method in the IResourceUrlChange will be triggered only when the URL is changed or if we do the resource update via the API, _submit_to_datapusher will not be triggered and cause the old preview to be displayed.

To fix that we need to add the after_update IResourceController to trigger _submit_to_datapusher.

Features:

  • includes tests covering changes
  • includes updated documentation
  • includes user-visible changes
  • includes API changes
  • includes bugfix for possible backport

Please [X] all the boxes above that apply

… changing URL but using new file via API

The notify method in the IResourceUrlChange will be triggered only
when the URL is changed or if we do the resource update via the API
_submit_to_datapusher will not be triggered and cause the old preview to be displayed.
@pdelboca
Copy link
Member

Thanks @shubham-mahajan ! Looks good to me :)

cc @amercader

@shubham-mahajan
Copy link
Member Author

@amercader Can we merge this? I think back porting also required for this one.

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

Successfully merging this pull request may close these issues.

Datapusher being triggered before file is uploaded (update)
3 participants