Skip to content
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

Add source filter for queries. #11

Merged

Conversation

KevinJoiner
Copy link
Collaborator

No description provided.

Copy link

linear bot commented May 9, 2024

internal/graph/resolver.go Outdated Show resolved Hide resolved
@KevinJoiner KevinJoiner requested a review from elffjs May 10, 2024 13:27
@elffjs elffjs requested a review from Allyson-English May 10, 2024 17:35
internal/graph/base.resolvers.go Outdated Show resolved Hide resolved
internal/graph/resolver.go Outdated Show resolved Hide resolved
internal/repositories/queries.go Show resolved Hide resolved
internal/repositories/queries.go Outdated Show resolved Hide resolved
internal/repositories/queries.go Show resolved Hide resolved
internal/repositories/queries.go Outdated Show resolved Hide resolved
schema/base.graphqls Outdated Show resolved Hide resolved
internal/repositories/signal.go Outdated Show resolved Hide resolved
internal/repositories/signal.go Outdated Show resolved Hide resolved
func (r *Repository) GetLatestSignalString(ctx context.Context, sigArgs SignalArgs) (*model.SignalString, error) {
query := fmt.Sprintf(latestSignalQuery, "ValueString")
row := r.conn.QueryRow(ctx, query, sigArgs.TokenID, sigArgs.Name)
func (r *Repository) getLatestSignal(ctx context.Context, sigArgs *SignalArgs, valueCol string, dest ...any) error {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the shape/typing of dest vary at all?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, one will call dest with a float, the other with a string.

@KevinJoiner KevinJoiner requested a review from elffjs May 10, 2024 19:06
Copy link
Member

@elffjs elffjs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You changed the context stuff! I didn't mean to bother about that in this PR but it looks nice to me.

Rest is great.

@KevinJoiner KevinJoiner merged commit ae75cb5 into main May 13, 2024
3 checks passed
@KevinJoiner KevinJoiner deleted the feature/si-2643-add-source-filter-and-to-telemetry-api branch July 11, 2024 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants