-
Notifications
You must be signed in to change notification settings - Fork 21
feat: Add time-window conversion via min/max TSDB offsets (day-rounded) #31
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
Open
TaranpreetSingh
wants to merge
15
commits into
thanos-io:main
Choose a base branch
from
TaranpreetSingh:timebased-sharding
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+195
−9
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6ae9f30
adding change to support the time based sharding
aac290c
removed the endofdate func
2adf0e6
moved from builder pattern to option pattern and cleanded discover.go
75b0752
added test case in plan.go
f2cc0da
added test case in plan.go
f296435
Merge branch 'thanos-io:main' into timebased-sharding
TaranpreetSingh 491f652
moved flag to convert opts
37b4e42
cleaned up commit and repeations
49989d9
fixed the test case for the time based window plan
d2b4365
Merge branch 'main' into timebased-sharding
TaranpreetSingh 17ecad9
Add minOffset and maxOffset parameters to Plan methods
TaranpreetSingh 7817ade
Refactor planner tests to use streams instead of metas
TaranpreetSingh 625dc3a
Merge branch 'main' into timebased-sharding
TaranpreetSingh c897e0b
change from duration-based offsets to explicit date format
ce5ee15
Merge branch 'main' into timebased-sharding
TaranpreetSingh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Same constant
2006-01-02could be reused. Also, could we move validation one layer up - the caller of this function could check if the inputs are correct and just pass time.Time, no? If a non-empty string is passed then I would expect it to be checked and error out if it doesn't follow the format that is expected.