This repository was archived by the owner on Aug 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Remove timestamp in favor of the date/time selector implemented in 2023 #48
Open
charlesbaer
wants to merge
4
commits into
main
Choose a base branch
from
charlesbaer-patch-2
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.
Conversation
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
Contributor
|
Thx for this PR @charlesbaer. What is driving this change? Just to understand more as we would need to apply this consistently. Almost all queries have a codified timestamp filter in order to:
The query works correctly in Log Analytics query editor, but I understand the time-range selector is basically disabled with some explanation in the UI: Would it be OK to add that as a comment next to the timestamp condition in all the SQLs for those who prefer to use time-range selector in the UI? |
Contributor
Author
|
Including the timestamp for basic operations actually produces a
significantly degraded experience which is why I propose to remove them
from all places where the date/time selector can change the SQL line into a
simple dropdown selection. We still need to keep the timestamp filters for
any more complicated logic that isn't a simple date restriction and that
won't interact with date/time picker.
…On Wed, Jan 24, 2024 at 12:15 PM Roy Arsan ***@***.***> wrote:
Thx for this PR @charlesbaer <https://github.com/charlesbaer>. What is
driving this change? Just to understand more as we would need to apply this
consistently. Almost all queries have a codified timestamp filter in order
to:
- codify and version-control a default lookback window depending on
the CSA use case
- avoid inadvertently running a query across entire log bucket
The query works correctly in Log Analytics query editor, but I understand
the time-range selector is basically disabled with some explanation in the
UI: To use the time-range selector, remove timestamp expressions from the
WHERE clause...
Would it be OK to add that as a comment next to the timestamp condition in
all the SQLs for those who prefer to use time-range selector in the UI?
—
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHHRAK6BI36XF66JHIFIVKTYQE6SVAVCNFSM6AAAAABCI4STMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBYGU3TQOBUHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Contributor
|
Understood. Thx for clarifying. How about we comment out all these
timestamp filters from the SQL? Lemme know and I can help with this
wholesale change in this PR.
In the comment we could clarify it's in order to fall back on the preferred
UI date/time selector.
This way 1) the default would be the date/time selector, 2) while also
leaving the end-user with the commented boilerplate code which might be
needed e.g. if the SQL (and timestamp filter) is version-controlled or
executed as part of an ETL pipeline...
On Wed, Jan 24, 2024 at 8:28 PM charlesbaer ***@***.***>
wrote:
… Including the timestamp for basic operations actually produces a
significantly degraded experience which is why I propose to remove them
from all places where the date/time selector can change the SQL line into
a
simple dropdown selection. We still need to keep the timestamp filters for
any more complicated logic that isn't a simple date restriction and that
won't interact with date/time picker.
On Wed, Jan 24, 2024 at 12:15 PM Roy Arsan ***@***.***> wrote:
> Thx for this PR @charlesbaer <https://github.com/charlesbaer>. What is
> driving this change? Just to understand more as we would need to apply
this
> consistently. Almost all queries have a codified timestamp filter in
order
> to:
>
> - codify and version-control a default lookback window depending on
> the CSA use case
> - avoid inadvertently running a query across entire log bucket
>
> The query works correctly in Log Analytics query editor, but I
understand
> the time-range selector is basically disabled with some explanation in
the
> UI: To use the time-range selector, remove timestamp expressions from
the
> WHERE clause...
>
> Would it be OK to add that as a comment next to the timestamp condition
in
> all the SQLs for those who prefer to use time-range selector in the UI?
>
> —
> Reply to this email directly, view it on GitHub
> <
#48 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AHHRAK6BI36XF66JHIFIVKTYQE6SVAVCNFSM6AAAAABCI4STMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBYGU3TQOBUHA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHCFNXBTNWER5NRCS2OR23YQG7MLAVCNFSM6AAAAABCI4STMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZGI2DCNZQGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.