Conversation
There was a problem hiding this comment.
👍 Looks good to me! Reviewed everything up to 96d0a9e in 41 seconds
More details
- Looked at
478lines of code in13files - Skipped
0files when reviewing. - Skipped posting
1drafted comments based on config settings.
1. fennel/internal_lib/to_proto/to_proto.py:221
- Draft comment:
Thehistoryparameter is still being used here, which seems incorrect after the change toretention. Consider removing or replacing it withretention. - Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_v2l71u3pGYOQKeze
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.
96d0a9e to
ee7fae2
Compare
There was a problem hiding this comment.
👍 Looks good to me! Incremental review on ee7fae2 in 1 minute and 8 seconds
More details
- Looked at
816lines of code in14files - Skipped
0files when reviewing. - Skipped posting
1drafted comments based on config settings.
1. fennel/internal_lib/to_proto/to_proto.py:222
- Draft comment:
Thehistoryfield is being set usingds._retention. It should be set usingds._historyinstead.
history.FromTimedelta(ds._history)
- Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
The presence of both_historyand_retentionfields, along with the newdisable_historicalfield, suggests these are distinct concepts. The fact that both fields were changed from_historyto_retentionin the same PR suggests this was an intentional refactoring. The comment may be missing context about why this change was made. Without understanding the Dataset class implementation and the difference between these fields, I cannot be confident that using_retentionis wrong.
I don't have access to the Dataset class implementation to verify the intended usage of_historyvs_retention. The comment could be correct if these are truly different concepts that shouldn't be mixed.
However, the coordinated change of both fields to use_retention, plus the addition ofdisable_historicalbased on_history, suggests this was an intentional architectural change rather than a mistake.
Delete the comment because we don't have enough context to be confident that using_retentionis incorrect, and the coordinated changes suggest this was intentional.
Workflow ID: wflow_4oqEjXz6WcJL1V2l
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.
ee7fae2 to
d5bf6d7
Compare
There was a problem hiding this comment.
👍 Looks good to me! Incremental review on d5bf6d7 in 1 minute and 18 seconds
More details
- Looked at
816lines of code in14files - Skipped
0files when reviewing. - Skipped posting
1drafted comments based on config settings.
1. fennel/internal_lib/to_proto/to_proto.py:221
- Draft comment:
Thehistoryfield is being set usingds._retention. This should be updated to reflect the newretentionfield instead ofhistory. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
The comment seems to be suggesting a change that's already been made. The code is already usingds._retentionto set thehistoryfield. The comment appears to have misread the diff and is suggesting something that's already implemented. This makes the comment not useful and potentially confusing.
Could there be some deeper architectural issue the comment is trying to point out about using retention for history? Maybe there's context I'm missing about the relationship between these fields?
While there could be deeper issues, the comment as written is clearly just pointing out thathistoryshould useretention, which is exactly what the code already does. If there were deeper architectural concerns, they should have been expressed differently.
The comment should be deleted because it's suggesting a change that has already been made in the code, making it confusing and not useful.
Workflow ID: wflow_Ko3AoIqDUEbH6kF7
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.
d5bf6d7 to
477ea04
Compare
There was a problem hiding this comment.
👍 Looks good to me! Incremental review on 477ea04 in 58 seconds
More details
- Looked at
815lines of code in14files - Skipped
0files when reviewing. - Skipped posting
1drafted comments based on config settings.
1. fennel/internal_lib/to_proto/to_proto.py:221
- Draft comment:
Thehistoryfield is being set usingds._retention. This should be updated to reflect the newretentionparameter. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
The comment seems to misunderstand the intent of the code. The code is deliberately setting both history and retention to use ds._retention. There's even a TODO comment on line 224 that explains this is intentional. The comment is suggesting there's an issue when there isn't one - this appears to be the desired behavior.
Could there be some context I'm missing about why history and retention should be different? Could the TODO comment be indicating future plans to change this?
While the TODO suggests future changes, the current code is clearly intentional in using ds._retention for both fields. The comment is suggesting there's a mistake when it's actually working as designed.
The comment should be deleted because it incorrectly suggests there's an issue with using ds._retention for both fields, when this appears to be the intended behavior.
Workflow ID: wflow_KG39cxPauP488APZ
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.
477ea04 to
d9a482f
Compare
There was a problem hiding this comment.
❌ Changes requested. Incremental review on d9a482f in 1 minute and 3 seconds
More details
- Looked at
815lines of code in14files - Skipped
0files when reviewing. - Skipped posting
0drafted comments based on config settings.
Workflow ID: wflow_bRZq2hUFJNI4lxg8
Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.
| _check_owner_exists(ds) | ||
| history = duration_proto.Duration() | ||
| history.FromTimedelta(ds._history) | ||
| history.FromTimedelta(ds._retention) |
There was a problem hiding this comment.
The history field is being set using ds._retention, which seems incorrect. It should be set using ds._history if it exists. Please verify and correct this.
Important
Rename
historyparameter toretentionin@datasetdecorator and update related code, protobuf, and documentation.@dataset(history="4m")to@dataset(retention="4m")inoperators_ref.py,troubleshooting-guide.py, andtest_dataset.py.datasetfunction indatasets.pyto useretentioninstead ofhistory.disable_historicalattribute toCoreDatasetindataset_pb2.pyanddataset_pb2.pyi.CHANGELOG.mdto document the change fromhistorytoretention.pyproject.tomlto1.6.0.This description was created by
for d9a482f. It will automatically update as commits are pushed.