Skip to content

Conversation

BenjaminCharmes
Copy link
Contributor

@BenjaminCharmes BenjaminCharmes commented Oct 3, 2025

[TO DISCUSS]

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).

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 (b121182) to head (b592ac5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1369   +/-   ##
=======================================
  Coverage   80.10%   80.10%           
=======================================
  Files          70       70           
  Lines        4755     4755           
=======================================
  Hits         3809     3809           
  Misses        946      946           
🚀 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.

Copy link

cypress bot commented Oct 3, 2025

datalab    Run #3926

Run Properties:  status check passed Passed #3926  •  git commit ccd1b9ccbe ℹ️: Merge b592ac58eeaa5d6ba2fd1d26c30de671fe236416 into b121182e7a2c4ca1eebd268ed0b8...
Project datalab
Branch Review bc/copied-item_name
Run status status check passed Passed #3926
Run duration 07m 53s
Commit git commit ccd1b9ccbe ℹ️: Merge b592ac58eeaa5d6ba2fd1d26c30de671fe236416 into b121182e7a2c4ca1eebd268ed0b8...
Committer Ben Charmes
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
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 336
View all changes introduced in this branch ↗︎

@BenjaminCharmes BenjaminCharmes marked this pull request as ready for review October 7, 2025 14:38
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.

1 participant