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

[FW][FIX] selection_inputs_manager: arrow keys when broken ranges #3745

Conversation

fw-bot
Copy link
Collaborator

@fw-bot fw-bot commented Feb 26, 2024

Description:

Previously, the arrow keys failed to function as expected when broken ranges were present in the selection input.

Steps to reproduce:

From the side panel of a chart with a SelectionInput containing two ranges:

  • Enter a valid range in the second input.
  • Corrupt the first input by entering "A11wwwz".
  • Press Enter to confirm.
  • Reselect the first range.
  • Attempt to use the keyboard arrows to change the zone; however, this does not work.
  • Select the second input.
  • Attempt to use the keyboard arrows to change the zone; again, this does not work.

To address this issue, the if statement in command handling from the plugin was removed to ensure it allows capturing the range.

Task: : 3626171

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

Forward-Port-Of: #3727
Forward-Port-Of: #3675

stdout:
Auto-merging src/components/selection_input/selection_input.ts
Auto-merging src/plugins/ui_feature/selection_inputs_manager.ts
CONFLICT (content): Merge conflict in src/plugins/ui_feature/selection_inputs_manager.ts
Auto-merging tests/selection_input/selection_input_plugin.test.ts

stderr:
17:53:56.250784 git.c:463               trace: built-in: git cherry-pick cfad8ae
error: could not apply cfad8ae... [FIX] selection_inputs_manager: arrow keys when broken ranges
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
----------
status:

X-original-commit: 89ead135631922f5147c7e828c48075fc5b6b4a3
@robodoo
Copy link
Collaborator

robodoo commented Feb 26, 2024

@fw-bot
Copy link
Collaborator Author

fw-bot commented Feb 26, 2024

@dhrp-odoo @rrahir this PR targets saas-17.1 and is the last of the forward-port chain.

To merge the full chain, use

@fw-bot r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@dhrp-odoo
Copy link
Contributor

@fw-bot r+

@robodoo robodoo closed this Feb 26, 2024
rrahir pushed a commit that referenced this pull request Feb 26, 2024
Previously, the arrow keys failed to function as expected when broken
ranges were present in the selection input.

Steps to reproduce:

From the side panel of a chart with a SelectionInput containing two ranges:
- Enter a valid range in the second input.
- Corrupt the first input by entering "A11wwwz".
- Press Enter to confirm.
- Reselect the first range.
- Attempt to use the keyboard arrows to change the zone; however, this does not work.
- Select the second input.
- Attempt to use the keyboard arrows to change the zone; again, this does not work.

To address this issue, the if statement in command handling from the
plugin was removed to ensure it allows capturing the range.

closes #3745

Task: 3626171

X-original-commit: 89ead135631922f5147c7e828c48075fc5b6b4a3
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
Signed-off-by: Dhrutik Patel (dhrp) <dhrp@odoo.com>
@fw-bot fw-bot deleted the saas-17.1-saas-16.1-fix-selection-input-with-broken-ranges-dhrp-zOaC-fw branch March 11, 2024 13:46
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.

None yet

3 participants