OpenRefine / OpenRefine/OpenRefine

OpenRefine exports projects as .tar.gz and importing those via Cypress does not work

Open
#5,985 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

reconciliation tests Type: Bug
Dominant language
Java
Stars
12k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
27

Description

While working on issue #1457, I was trying to write a cypress test for the feature and encountered a problem where only the files with .zip extension were getting imported, while the files with .tar.gz extension were showing error upon importing.

To Reproduce

Steps to reproduce the behavior:
1.Open any project in OpenRefine and export OpenRefine project archive to file
2. Try writing a cypress test for any issue and attach the exported file (mentioned above) (by default it should have .tar.gz extension )to 'cy.get('#project-tar-file-input').attachFile(<eg.tar.gz>)'
3. Then, try to run the cypress test.

Current Results

In cypress the test showed an error at this line and failed to import the file.

Expected Behavior

.tar.gz is an extension for project archive generated by OpenRefine is expected to be imported again without transforming it manually.

Screenshots

Screen Shot 2023-07-25 at 9 07 13 PM

Versions

Operating System: macOS High Sierra Version 10.13.6
Browser Version: chrome 113.0.5672.126 (Official Build) (x86_64)
JRE or JDK Version: 17.0.6
OpenRefine: Version 3.8-SNAPSHOT

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Cypress flow using cy.get('#project-tar-file-input').attachFile with an exported .tar.gz project archive, then trace the project archive import handling. Done means a .tar.gz archive exported by OpenRefine can be attached and imported in Cypress without manual conversion.

Written by the indexing model from the issue text.

Assessment

Tech stack
cypress, java
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.