-
Notifications
You must be signed in to change notification settings - Fork 1
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
🚸 Improve UX of db$track()
and db$finish()
#120
Conversation
@falexwolf I think this should work but I'm running into an issue on the Python side. If the file I already exists I get a prompt:
Which causes rendering to get stuck because it doesn't get a response. Is there away to avoid this? Also, the error message I was using to get the UID seems to have changed. The error doesn't include the UID anymore, instead it is outputted as a separate message and the error just says "Please follow the instructions". Was this a deliberate change? I'm not sure if I can capture the Python message to get the UID but I can look into it if this is how it's supposed to work. |
I see. The transform type of an I will fix this right away on the
This is the same issue as the one above. 2 min! |
It's fixed here (now checks for On the |
Thanks! It's doing what I expected now. |
I haven't gotten found the time to install RStudio and understand how it writes files etc. but I just found a stupid bug for the timestamp check. It's fixed here: Can you please try to call Maybe this fixes everything already. 😅 |
db$track()
We can probably handle the error message better but I think the timestamp check works now 🎉! I also got this prompt:
But it worked after running If I try running it a second time I keep getting the |
Ok, this is good!
Hm. This is strange and has to be resolved. 🤔 I'm wondering whether that's a consequence of your particular setup. Upon calling Saving source code and computing its hash only happens upon If you're working with a transform
This should then simply overwrite the existing source code without asking you to make a new version. Can you clarify whether this is what happened?
Calling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code diff looks good to me
- Could you add an entry to the changelog?
From my perspective, you guys wouldn't need to maintain a changelog manually because it's auto-generated: |
Can we merge and release package 0.3.0 on Monday morning? This is already a ton better and we want this out so that anybody who tries it will have the new version next week. |
If there is time on Monday morning, ironing out the remaining questions here would of course be great: |
db$track()
db$track()
and db$finish()
Ok, I spent the past 5 hours playing with RStudio and the typical workflows of iterating on notebooks, getting notebook versions from the hub, re-running them, etc. It's now smooth for most cases. 🎉 -- It required all kinds of small tweaks to the lamindb code though. They're all here: There is one edge case left: This is for another time. We need to get the release out now and say it depends on lamindb 0.77.1: |
Improve UX for
db$track()
anddb$finish()
.db$track()
Before:
After:
db$finish()
Before:
After:
Implementation
detect_path()
functionInstance$track()
to attempt to detect which path to trackNeeds:
db$track()
anddb$finish()
lamindb#2213Resolves:
path = ...
withindb$track()
#115