-
Notifications
You must be signed in to change notification settings - Fork 9
Observability frontend update #318
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4cac9c5
fix(api): Use correct `IJoinDriftResponseArgs` instead of `IJoinDrift…
techniq d52e72d
Replace `data.joinTimeseries` with new `data.joinDraft` and update Fe…
techniq 913e0f7
fix(FeatureLineChart): Handle numeric columns (use `percentileDriftSe…
techniq f058c63
Restore dialog drilldown (with current/old APIs)
techniq f84da9e
Fetch from new `getColumnDrift` / `getColumnSummary` endpoints. Upda…
techniq f90b439
Fetch baseline column summary and use to data distribution BarChart a…
techniq 593491d
Remove TimeSeriesHandler API (handled by new DriftHandler)
techniq 2e0ae07
Update distributions page to new `getColumnSummary`
techniq a2d9063
Remove no longer needed `sortDrift` and `sortDistributions`
techniq 7e6d796
fix: Drift metric default not being set properly after refactor due t…
techniq 9a9c667
Map null data when loading data distributions
techniq 7e80245
Handle column summary errors gracefully in distributions page
techniq a5acdae
make `npm run check` and `npm run lint` happy
techniq 0d5c661
Remove `Model.js` and old sample data
techniq 1927b04
Cleanup $inspect
techniq 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| <script lang="ts"> | ||
| import { queryParameters } from 'sveltekit-search-params'; | ||
|
|
||
| import { Button } from '$lib/components/ui/button'; | ||
| import { DRIFT_METRIC_LABELS, getDriftMetricParamsConfig } from '$lib/util/drift-metric'; | ||
| import { enumValues } from '@layerstack/utils'; | ||
| import { DriftMetric } from '$lib/types/codegen'; | ||
|
|
||
| const params = queryParameters(getDriftMetricParamsConfig(), { | ||
| pushHistory: false, | ||
| showDefaults: false | ||
| }); | ||
| </script> | ||
|
|
||
| <div class="flex space-x-[1px]"> | ||
| {#each enumValues(DriftMetric) as value} | ||
| <Button | ||
| variant={params.metric === value ? 'default' : 'secondary'} | ||
| size="sm" | ||
| on:click={() => (params.metric = value)} | ||
| class="first:rounded-r-none last:rounded-l-none [&:not(:first-child):not(:last-child)]:rounded-none" | ||
| > | ||
| {DRIFT_METRIC_LABELS[value as DriftMetric]} | ||
| </Button> | ||
| {/each} | ||
| </div> |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
@ken-zlai once we return a limited number of percentiles, this should be the only place we need to update
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.
Great! That PR is here, waiting for approval rn #346