Skip to content

Preview update with no effect is initiated after changing unused parameters #4009

Description

@jquartel

After loading a new file and coming to the Configure Parsing Options page, you have the ability to modify the parsing rules, which I do pretty frequently with the kinds of (mostly tsv-like) files that I get. Most frequently I need to change the "Ignore first" and "Discard initial" parameters and since I usually need both of these and since my files are large and complex enough for the preview update to take some time, I try to save time by changing the parameters before they are checked/enabled. However, I find that even with the parameters left unenabled, changing their value results in an "Updating preview" pause even though the preview isn't changed (as it shouldn't be because the parameter isn't enabled).

To Reproduce

Steps to reproduce the behavior:

  1. Open a data file (a csv, say) and continue to the "Configure Parsing Options" page
  2. Change the "Ignore first" value without checking the enable box
  3. Observe the pause while "Updating preview", even though nothing about the preview is changed (until you enable the "Ignore first" value and then there is another pause and a correct preview update).

Expected Behavior

I don't expect there to be any preview update when changing values of unchecked (unenabled) parsing parameters. Either that or the parameter should be enabled when you change the value, and then the preview updated accordingly. It might be good to have some way to hold off all preview updates until you explicitly press the Update Preview button, since I usually want to to change a few parameters and waiting for the update after each one is time consuming.

Screenshots

Screenshot 2021-06-24 at 14 28 27

Versions

  • Operating System: MacOS 10.14.6
  • Browser Version: Chrome 91.0.4472.114
  • JRE or JDK Version: Unknown
  • OpenRefine: Version 3.5-beta1 [1b9907e]

Datasets

Additional context

Metadata

Metadata

Assignees

Labels

Good First IssueIndicates issues suitable for newcomers to design or coding, providing a gentle introduction.Module: FrontendThese issues involve working on HTML, CSS, and JavaScript code that affects the user interface.Type: BugIssues related to software defects or unexpected behavior, which require resolution.importAbout importers in general - add a label for the data format if available

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions