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

[FIX] find & replace: remove debounce from store #4847

Closed

Conversation

hokolomopo
Copy link
Contributor

Description

The method updateSearchContent was debounced inside the f&r store. This does not work as expected, as the re-rendering of the panel was done when calling the updateSearchContent method, and not when the debounced function was called and the store state was updated.

I'm not sure why it still worked 50% of the time.

Task: : 4102172

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

@hokolomopo hokolomopo marked this pull request as ready for review August 14, 2024 12:37
@robodoo
Copy link
Collaborator

robodoo commented Aug 14, 2024

Pull request status dashboard

The method `updateSearchContent` was debounced inside the f&r store.
This does not work as expected, as the re-rendering of the panel was
done when calling the `updateSearchContent` method, and not when the
debounced function was called and the store state was updated.

I'm not sure why it still worked 50% of the time.

Task: 4102172
@hokolomopo hokolomopo force-pushed the saas-17.2-find-and-replace-debound-adrm branch from 168dfce to ef514fd Compare August 21, 2024 06:14
Copy link
Collaborator

@LucasLefevre LucasLefevre left a comment

Choose a reason for hiding this comment

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

robodoo r+

robodoo pushed a commit that referenced this pull request Aug 22, 2024
The method `updateSearchContent` was debounced inside the f&r store.
This does not work as expected, as the re-rendering of the panel was
done when calling the `updateSearchContent` method, and not when the
debounced function was called and the store state was updated.

I'm not sure why it still worked 50% of the time.

closes #4847

Task: 4102172
Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
@robodoo robodoo closed this Aug 22, 2024
@fw-bot fw-bot deleted the saas-17.2-find-and-replace-debound-adrm branch September 5, 2024 07:46
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