Skip to content

Commit

Permalink
Merge branch 'main' into query-bar-bug-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
monicawoj committed Dec 8, 2022
2 parents d37138f + 3a25a9f commit a26be9e
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 25 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ require (
go.opentelemetry.io/otel/trace v1.11.1
golang.org/x/exp v0.0.0-20221204150635-6dcec336b2bb
golang.org/x/net v0.2.0
golang.org/x/sync v0.1.0
google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd
google.golang.org/grpc v1.51.0
google.golang.org/protobuf v1.28.1
Expand Down Expand Up @@ -226,7 +227,6 @@ require (
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/mod v0.6.0 // indirect
golang.org/x/oauth2 v0.2.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.2.0 // indirect
golang.org/x/term v0.2.0 // indirect
golang.org/x/text v0.4.0 // indirect
Expand Down
30 changes: 23 additions & 7 deletions pkg/query/columnquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/go-kit/log"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"
"golang.org/x/sync/errgroup"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

Expand Down Expand Up @@ -274,14 +275,29 @@ func (q *ColumnQueryAPI) selectDiff(ctx context.Context, d *pb.DiffProfile) (*pr
return nil, status.Error(codes.InvalidArgument, "requested diff mode, but did not provide parameters for diff")
}

base, err := q.selectProfileForDiff(ctx, d.A)
if err != nil {
return nil, fmt.Errorf("reading base profile: %w", err)
}
g, ctx := errgroup.WithContext(ctx)
var base *profile.Profile
g.Go(func() error {
var err error
base, err = q.selectProfileForDiff(ctx, d.A)
if err != nil {
return fmt.Errorf("reading base profile: %w", err)
}
return nil
})

compare, err := q.selectProfileForDiff(ctx, d.B)
if err != nil {
return nil, fmt.Errorf("reading compared profile: %w", err)
var compare *profile.Profile
g.Go(func() error {
var err error
compare, err = q.selectProfileForDiff(ctx, d.B)
if err != nil {
return fmt.Errorf("reading compared profile: %w", err)
}
return nil
})

if err := g.Wait(); err != nil {
return nil, err
}

// TODO: This is cheating a bit. This should be done with a sub-query in the columnstore.
Expand Down
4 changes: 4 additions & 0 deletions ui/packages/app/web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.16.112](https://github.com/parca-dev/parca/compare/@parca/web@0.16.111...@parca/web@0.16.112) (2022-12-07)

**Note:** Version bump only for package @parca/web

## [0.16.111](https://github.com/parca-dev/parca/compare/@parca/web@0.16.110...@parca/web@0.16.111) (2022-12-07)

**Note:** Version bump only for package @parca/web
Expand Down
4 changes: 2 additions & 2 deletions ui/packages/app/web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@parca/web",
"private": true,
"version": "0.16.111",
"version": "0.16.112",
"description": "Parca Web Interface",
"scripts": {
"lint": "eslint --no-error-on-unmatched-pattern --ext .ts,.tsx,.js src/*",
Expand Down Expand Up @@ -45,7 +45,7 @@
"postcss": "8.4.19",
"react-datepicker": "4.8.0",
"react-dom": "18.2.0",
"react-router-dom": "6.4.3",
"react-router-dom": "6.4.4",
"react-use": "17.4.0",
"tailwindcss": "3.2.4",
"web-vitals": "2.1.4"
Expand Down
30 changes: 15 additions & 15 deletions ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4329,10 +4329,10 @@
resolved "https://registry.yarnpkg.com/@rehooks/local-storage/-/local-storage-2.4.4.tgz#ccf40f60c2dcbab86dc88f9e3ea898d1fb8bea2d"
integrity sha512-zE+kfOkG59n/1UTxdmbwktIosclr67Nlbf2MzUJ9mNtCSypVscNHeD1qT6JCSo5Pjj8DO893IKWNLJqKKzDL/Q==

"@remix-run/router@1.0.3":
version "1.0.3"
resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.0.3.tgz#953b88c20ea00d0eddaffdc1b115c08474aa295d"
integrity sha512-ceuyTSs7PZ/tQqi19YZNBc5X7kj1f8p+4DIyrcIYFY9h+hd1OKm4RqtiWldR9eGEvIiJfsqwM4BsuCtRIuEw6Q==
"@remix-run/router@1.0.4":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.0.4.tgz#cbfbec6735711e7c2fc93b9b40adf70ef5a39990"
integrity sha512-gTL8H5USTAKOyVA4xczzDJnC3HMssdFa3tRlwBicXynx9XfiXwneHnYQogwSKpdCkjXISrEKSTtX62rLpNEVQg==

"@rollup/plugin-babel@^5.2.0":
version "5.3.1"
Expand Down Expand Up @@ -21844,13 +21844,13 @@ react-refresh@^0.11.0:
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.11.0.tgz#77198b944733f0f1f1a90e791de4541f9f074046"
integrity sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A==

react-router-dom@6.4.3:
version "6.4.3"
resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.4.3.tgz#70093b5f65f85f1df9e5d4182eb7ff3a08299275"
integrity sha512-MiaYQU8CwVCaOfJdYvt84KQNjT78VF0TJrA17SIQgNHRvLnXDJO6qsFqq8F/zzB1BWZjCFIrQpu4QxcshitziQ==
react-router-dom@6.4.4:
version "6.4.4"
resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.4.4.tgz#4271ec66333c440d1754477e4e6a3a5acb5487f8"
integrity sha512-0Axverhw5d+4SBhLqLpzPhNkmv7gahUwlUVIOrRLGJ4/uwt30JVajVJXqv2Qr/LCwyvHhQc7YyK1Do8a9Jj7qA==
dependencies:
"@remix-run/router" "1.0.3"
react-router "6.4.3"
"@remix-run/router" "1.0.4"
react-router "6.4.4"

react-router-dom@^5.2.0:
version "5.3.4"
Expand Down Expand Up @@ -21880,12 +21880,12 @@ react-router@5.3.4:
tiny-invariant "^1.0.2"
tiny-warning "^1.0.0"

react-router@6.4.3:
version "6.4.3"
resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.4.3.tgz#9ed3ee4d6e95889e9b075a5d63e29acc7def0d49"
integrity sha512-BT6DoGn6aV1FVP5yfODMOiieakp3z46P1Fk0RNzJMACzE7C339sFuHebfvWtnB4pzBvXXkHP2vscJzWRuUjTtA==
react-router@6.4.4:
version "6.4.4"
resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.4.4.tgz#8e7794f55ccc7050cb03937c87ff3720ce9f8b60"
integrity sha512-SA6tSrUCRfuLWeYsTJDuriRqfFIsrSvuH7SqAJHegx9ZgxadE119rU8oOX/rG5FYEthpdEaEljdjDlnBxvfr+Q==
dependencies:
"@remix-run/router" "1.0.3"
"@remix-run/router" "1.0.4"

react-scripts@5.0.1, react-scripts@^5.0.1:
version "5.0.1"
Expand Down

0 comments on commit a26be9e

Please sign in to comment.