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

DEV: Use the new discourseDebounce function wrapper. #85

Merged
merged 1 commit into from Jan 5, 2021

Conversation

romanrizzi
Copy link
Member

We recently merged a Discourse core's PR to replace usages of Ember's debounce and discourseDebounce with a new debounce wrapper. The new wrapper works exactly like Ember's debounce but internally calls "run" when called in test mode.

This PR replaces all usages of other debounce functions with the new wrapper and fallbacks to Ember's debounce for backward-compatibility.

We recently merged a Discourse core's PR to replace usages of Ember's debounce and discourseDebounce with a new debounce wrapper. The new wrapper works exactly like Ember's debounce but internally calls "run" when called in test mode.

This PR replaces all usages of other debounce functions with the new wrapper and fallbacks to Ember's debounce for backward-compatibility.
@romanrizzi romanrizzi merged commit c6a11d9 into master Jan 5, 2021
@romanrizzi romanrizzi deleted the debounce_wrapper branch January 5, 2021 16:09
@goodeas
Copy link

goodeas commented Feb 20, 2021

Hi @romanrizzi @eviltrout

Just wondering if this change was tested on Discourse stable? I am running a self-hosted instance, now v2.6.2 (eb9f15a94a), also with the latest Data Explorer updates as of today. I am unable to edit any queries in Data Explorer - the JS error seems to be related to this change. I described the issue and the error a couple of weeks ago in the following post:

https://meta.discourse.org/t/data-explorer-plugin/32566/214

I'm still seeing the same symptoms after the latest updates today.

Thanks
Andrew

@romanrizzi
Copy link
Member Author

Hi @goodeas

Sorry for the trouble. Should be fixed in 50e62d8.

@goodeas
Copy link

goodeas commented Feb 23, 2021

Thanks @romanrizzi

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