Skip to content

[Repo Assist] Add Frame.indexRowsDateTime and Frame.indexRowsDateTimeOffset aliases — closes #76#653

Merged
dsyme merged 4 commits intomasterfrom
repo-assist/fix-issue-76-indexRowsDateTime-3c4ea72bdfceac64
Mar 19, 2026
Merged

[Repo Assist] Add Frame.indexRowsDateTime and Frame.indexRowsDateTimeOffset aliases — closes #76#653
dsyme merged 4 commits intomasterfrom
repo-assist/fix-issue-76-indexRowsDateTime-3c4ea72bdfceac64

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

🤖 Repo Assist — adding explicit-named aliases for the date indexing functions.

Problem

Frame.indexRowsDate and Frame.indexRowsDateOffs have abbreviated names that obscure what type they return. In a discoverable API it's much clearer to see indexRowsDateTime and indexRowsDateTimeOffset, which match the .NET type names directly. The maintainer approved this in #76 back in 2014 but it was never implemented.

Solution

Add two explicit-named aliases in FrameModule.fs:

// New, more explicit names:
frame |> Frame.indexRowsDateTime "DateColumn"         // Frame(DateTime, _)
frame |> Frame.indexRowsDateTimeOffset "DateColumn"   // Frame(DateTimeOffset, _)

// Original names still work (backward compatible):
frame |> Frame.indexRowsDate "DateColumn"
frame |> Frame.indexRowsDateOffs "DateColumn"
```

The original `indexRowsDate` and `indexRowsDateOffs` functions are **unchanged**  no breaking changes.

## Implementation

- `FrameModule.fs`: adds `indexRowsDateTime` (after `indexRowsDate`) and `indexRowsDateTimeOffset` (after `indexRowsDateOffs`), both delegating to `indexRows`.

## Test Status

```
Passed! - Failed: 0, Passed: 669, Skipped: 0, Total: 669

All 669 tests pass on Ubuntu.

Generated by Repo Assist ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@30f2254f2a7a944da1224df45d181a3f8faefd0d

closes #76

The existing functions indexRowsDate and indexRowsDateOffs have abbreviated
names that don't clearly reflect the types they return. Add explicit-named
aliases indexRowsDateTime and indexRowsDateTimeOffset that are more
self-documenting and consistent with the type names.

The original functions are kept unchanged for backward compatibility; the
new names are purely additive aliases.

Co-authored-by: Copilot <[email protected]>
@dsyme dsyme marked this pull request as ready for review March 19, 2026 01:11
@dsyme
Copy link
Copy Markdown
Member

dsyme commented Mar 19, 2026

/repo-assist Make the old names obsolete

Add [<Obsolete>] attributes directing users to the new explicit names:
- indexRowsDate → indexRowsDateTime
- indexRowsDateOffs → indexRowsDateTimeOffset

Co-authored-by: Copilot <[email protected]>
@github-actions
Copy link
Copy Markdown
Contributor Author

Commit pushed: bb0b74e

Generated by Repo Assist

@github-actions
Copy link
Copy Markdown
Contributor Author

🤖 Repo Assist here. Done! I've added [(Obsolete)] attributes to both old names:

  • Frame.indexRowsDate"Use Frame.indexRowsDateTime instead."
  • Frame.indexRowsDateOffs"Use Frame.indexRowsDateTimeOffset instead."

Users calling the old names will now get a compiler warning directing them to the new explicit names. The new indexRowsDateTime and indexRowsDateTimeOffset functions have also been updated to drop the "alias for..." wording in their docs so they stand as the primary functions.

Generated by Repo Assist for issue #653 ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@30f2254f2a7a944da1224df45d181a3f8faefd0d

@dsyme dsyme merged commit 125a6c2 into master Mar 19, 2026
2 checks passed
@dsyme dsyme deleted the repo-assist/fix-issue-76-indexRowsDateTime-3c4ea72bdfceac64 branch March 19, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant