Skip to content

Conversation

@BenjaminCharmes
Copy link
Contributor

@BenjaminCharmes BenjaminCharmes commented Oct 3, 2025

Related to an issue in #1355

There is some strange behaviour when creating multiple copies of an item (using CreateItemModal) in a row without refreshing the page: As we do not clear the modal between two submit, upon the second creation, most fields are still present (except for id and date, which are cleared).

So if we created an item with the option ‘(Optional) Copy from existing sample:’, it should have the name ‘COPY OF ....’ However, since the name is clear in the modal and is only managed in the front, the second copy will not have a name (unless the user writes one, of course).

@codecov
Copy link

codecov bot commented Oct 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.10%. Comparing base (63105fc) to head (2910e24).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1369   +/-   ##
=======================================
  Coverage   80.10%   80.10%           
=======================================
  Files          70       70           
  Lines        4759     4759           
=======================================
  Hits         3812     3812           
  Misses        947      947           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cypress
Copy link

cypress bot commented Oct 3, 2025

datalab    Run #3951

Run Properties:  status check failed Failed #3951  •  git commit f70ac64f65 ℹ️: Merge 2910e24a006ca772c4022abbf1b0dc1865affb9a into 63105fc801e1912dd4ef917173c4...
Project datalab
Branch Review bc/copied-item_name
Run status status check failed Failed #3951
Run duration 06m 27s
Commit git commit f70ac64f65 ℹ️: Merge 2910e24a006ca772c4022abbf1b0dc1865affb9a into 63105fc801e1912dd4ef917173c4...
Committer Ben Charmes
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 217
View all changes introduced in this branch ↗︎

Tests for review

Failed  cypress/e2e/editPage.cy.js • 1 failed test • End-to-end tests (electron)

View Output

Test Artifacts
Edit Page > Clicks the upload buttons and checks that the modals are shown Test Replay Screenshots

@BenjaminCharmes BenjaminCharmes marked this pull request as ready for review October 7, 2025 14:38
@ml-evs ml-evs force-pushed the bc/copied-item_name branch from b592ac5 to 2910e24 Compare October 17, 2025 12:25
Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

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

@ml-evs ml-evs enabled auto-merge (squash) October 17, 2025 12:25
@ml-evs ml-evs added the webapp For issues/PRs pertaining to the web interface label Oct 17, 2025
@ml-evs ml-evs merged commit 1a6d5e9 into main Oct 17, 2025
21 of 22 checks passed
@ml-evs ml-evs deleted the bc/copied-item_name branch October 17, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

webapp For issues/PRs pertaining to the web interface

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants