Skip to content

Add relationships by refcode rather than item_id from the UI #1227

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

Merged
merged 1 commit into from
Jun 21, 2025

Conversation

BenjaminCharmes
Copy link
Contributor

Closes #1173

Stock item_id and refcode in the db, but refcode has priority.

Copy link

cypress bot commented Jun 4, 2025

datalab    Run #3490

Run Properties:  status check passed Passed #3490  •  git commit 9b1a25ffc3 ℹ️: Merge caff6c55f88f0486fc7c4905a87ba6e7f5fcf74d into c842a455bccf6ad77997f0305e41...
Project datalab
Branch Review bc/synthesis-refcode
Run status status check passed Passed #3490
Run duration 07m 33s
Commit git commit 9b1a25ffc3 ℹ️: Merge caff6c55f88f0486fc7c4905a87ba6e7f5fcf74d into c842a455bccf6ad77997f0305e41...
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 504
View all changes introduced in this branch ↗︎

@ml-evs ml-evs added this to the v0.6.x milestone Jun 4, 2025
@BenjaminCharmes BenjaminCharmes changed the title Synthesis constituents should be added from UI by refcode rather than item_id Synthesis constituents are added from UI by refcode rather than item_id Jun 5, 2025
Copy link

codecov bot commented Jun 6, 2025

Codecov Report

Attention: Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 71.76%. Comparing base (c842a45) to head (caff6c5).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pydatalab/src/pydatalab/models/relationships.py 66.66% 1 Missing ⚠️
pydatalab/src/pydatalab/models/utils.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1227      +/-   ##
==========================================
+ Coverage   71.75%   71.76%   +0.01%     
==========================================
  Files          66       66              
  Lines        4485     4487       +2     
==========================================
+ Hits         3218     3220       +2     
  Misses       1267     1267              
Files with missing lines Coverage Δ
pydatalab/src/pydatalab/models/cells.py 91.22% <ø> (ø)
pydatalab/src/pydatalab/models/traits.py 98.63% <100.00%> (+0.01%) ⬆️
pydatalab/src/pydatalab/models/relationships.py 91.89% <66.66%> (-2.40%) ⬇️
pydatalab/src/pydatalab/models/utils.py 88.12% <83.33%> (+0.54%) ⬆️
🚀 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.

@ml-evs ml-evs force-pushed the bc/synthesis-refcode branch from 4d33805 to 111b074 Compare June 11, 2025 20:31
@BenjaminCharmes BenjaminCharmes marked this pull request as ready for review June 17, 2025 11:01
@ml-evs ml-evs force-pushed the bc/synthesis-refcode branch from 111b074 to caff6c5 Compare June 21, 2025 12:51
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.

Works nicely, thanks @BenjaminCharmes! Will need to consider a migration for all existing relationships at some point (c.f. #1184), but perhaps a bit further down the line...

@ml-evs ml-evs added bug Something isn't working API For issues/PRs pertaining to the API server labels Jun 21, 2025
@ml-evs ml-evs changed the title Synthesis constituents are added from UI by refcode rather than item_id Add relationships by refcode rather than item_id from the UI Jun 21, 2025
@ml-evs ml-evs changed the title Add relationships by refcode rather than item_id from the UI Add relationships by refcode rather than item_id from the UI Jun 21, 2025
@ml-evs ml-evs merged commit 3fda425 into main Jun 21, 2025
18 checks passed
@ml-evs ml-evs deleted the bc/synthesis-refcode branch June 21, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API For issues/PRs pertaining to the API bug Something isn't working server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Synthesis constituents should be added from UI by refcode rather than item_id
2 participants