-
Notifications
You must be signed in to change notification settings - Fork 76
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
Check record collisions when editing a record #203
Comments
Hi. I am trying to work on this. Is there anything that uniquely identifies a record? |
@dsa0x The unique identifier for a record is its timestamp (start time). Quite frankly, I think the only way to handle record collisions when editing a record manually is to wait until the user has saved the file (i.e. after the |
@dominikbraun I think so too. That's kinda what I did. I simply called |
Okay. Cool. I'll wait then. In the meantime, you can assign me to this. Thanks |
At the moment, record collision checks are only performed when creating a belated record using
timetrace create record
but not when editing an existing record.This needs to be changed by calling
t.RecordCollides
when runningtimetrace edit record
.What is record collision?
Say you have 2 records:
And you want to insert a new one:
This record collides with the second (5PM - 8PM) record, because it lies within that record. timetrace doesn't allow this.
The text was updated successfully, but these errors were encountered: