Commit Graph

21 Commits

Author SHA1 Message Date
Valery Bugakov
79917a7e98
web: drop legacy GraphQL schema generator (#45945) 2022-12-25 18:10:20 -08:00
Vova Kulikov
e9c6dc68eb
Site admin: Remove legacy overview admin UI pages (#45499)
* Remove legacy overview admin UI pages

* Remove legacy API handlers

* Remove legacy dependencies

* fix build and lint problems

* Simplify analytics routing

* Remove user-management-disabled feature flag

* Fix generated types and styles imports
2022-12-22 16:15:46 -03:00
Jason Bedard
4d5a664c2b
bazel: generate graphql operation interfaces, css module typings (#45756) 2022-12-20 19:11:09 -08:00
Valery Bugakov
e53a0e14a1
web: upgrade graphql-codegen (#45648) 2022-12-14 04:09:06 -08:00
GitStart-SourceGraph
80f5d3ec60
[SG-41363] Migration from shema.ts type usage to graphql-operations - client/vscode, client/web (#42407)
migrate some GQL types usages to graphql-operations generated type
2022-10-04 09:41:48 +01:00
Justin Boyson
0addd5beab
Add feature flag to disable proactive aggregation insights (#40772)
* Add memoization level for the search aggregation fetch hook

* Fix search aggregation integration tests

* Reset data in case of error (fix mode availability for case when if aggregation gets an error)

* Make aggregation API fields required

* Refactor error UI state for aggregation components

* Fix styles for error message and error alert UI

* add feature flag

* pass feature flag through props

* disable aggregation if flag is set

* simplify aggregation mode check

* Remove disabled text

* updates from PR review

* hide expand button

* remove querystring param

* refactor to use new available layout

* undo changes to generateGraphQlOperations

* Polish aggregation UI and remove legacy proactive checks

* Remove gql generated types from search-ui

* Fix search-aggregation.test.ts

* Move aggregation chart to a separate chunk

* Fix problem with wrong rect background in bar chart

Co-authored-by: vovakulikov <vovakulikov@icloud.com>
2022-09-01 14:54:10 +03:00
Vova Kulikov
a31f320f6b
Aggregation: Integrate aggregation UI and GQL API (#40803)
* Fix styles for active bar segment for wildcard bar chart

* Support gql types generation for search-ui package

* Add aggregation data hook

* Connect GQL API to search aggregation UI

* Support new datum click api for the bar chart

* Connect aggregation chart with submit search logic

* Support missing groups count label

* Add BE calculated aggregation type support

* Add aggregation chart card UI

* Fix Pie chart prop interfaces

* Make limit required prop for aggregation hook

* Fix aggregation hook based on PR comments (adopt union type for result interface, simplify parse logic, update comments)

* Fix SearchAggregationResult.story.tsx (add query mocks)

* Fix search aggregation tests (add mocks)

* Fix bad storybook import

* Add integration test for aggregation drill down logic

* Fix search aggregation integration test (bar links transitions)
2022-08-25 09:03:47 -05:00
Philipp Spiess
9bb6c5c7fc
JetBrains: Add telemetry to the TypeScript side (#37498)
* JetBrains: Add GraphQL operation extraction for JetBrains

* JetBrains: Expose a way to query accessToken and endpointURL

* Implement telemetry endpoint and event batching

* JetBrains: Add a generic way to make GraphQL requests

* JetBrains: Log IDESearchSubmitted event and use the new telemetry interface

* JetBrains: Refactor blob fetching to use the proper GraphQL APIs

* Fix review input

* JetBrains: Simplify EventLogger

* Fix typos

* Remove FromJetBrains Suffix

* Format
2022-06-22 16:37:16 +02:00
TJ Kandala
17918fd041
vsce: implement search UI (#30084)
Co-authored-by: Beatrix <68532117+abeatrix@users.noreply.github.com>
Co-authored-by: Alex Isken <alex.isken@sourcegraph.com>
Co-authored-by: Sara Lee <87138876+jjinnii@users.noreply.github.com>
Co-authored-by: Philipp Spiess <hello@philippspiess.com>
Co-authored-by: Giselle Northy <northyg@oregonstate.edu>
Co-authored-by: Beatrix <beatrix@sourcegraph.com>
2022-04-13 12:41:07 -04:00
TJ Kandala
29ef1da2a9
Create search and search-ui packages (#29773)
Co-authored-by: Juliana Peña <juliana@sourcegraph.com>
2022-01-20 12:56:23 -05:00
GitStart-SourceGraph
e7e705c808
[SG-28893] refactor: extract graphql folder into a new http-client package. (#29346)
Co-authored-by: gitstart-sourcegraph <gitstart@users.noreply.github.com>
2022-01-13 18:40:35 +01:00
GitStart-SourceGraph
a739933573
fix: Do not skip __typename generation graphql-codegen (#25087)
Co-authored-by: gitstart-sourcegraph <gitstart-sourcegraph@users.noreply.github.com>
2021-09-29 17:18:37 +07:00
Tom Ross
a692cbd201
GraphQL Client: Generate types for Apollo typePolicies (#22509) 2021-07-21 09:38:24 +01:00
Erik Seliger
53f5a502c6
Refactor authz resolver to new pattern (#20240)
* Refactor authz resolver to new pattern

* Prevent race when both graphql generators create files simultaneously

I don’t know why it never happened before, maybe with the multiple files the other generator got a little slower but essentially:
We have two type generators, and the one was in the process of writing it’s file when the other was picking up the file for checking it for graphql tags (for which it needs to parse the TS into an AST), and that could be an invalid file while it's still being written…
2021-04-23 16:19:57 +02:00
Erik Seliger
e844de6150
Improve generated graphql types (#20223)
- Make BigInt not be any
- Use the correct import paths for stuff from shared
2021-04-20 22:38:39 +02:00
Erik Seliger
c03cc7bd1e
Support multiple GraphQL schema files (#20077)
This PR adjusts all configs/generators/linters that we use to support multiple `.graphql` files to be stitched together for the final schema.
This should help a bit with the MASSIVE `schema.graphql` file that has grown to around 10k loc by now, by encapsulating different fields of concern into separate files. Using the `extend` keyword, there is nothing that cannot be expressed with separate files that could have been with a single file, so there are no drawbacks to this method, that I'm aware of.

In a follow-up PR, I will restructure the backend code for this a bit and make it so the enterprise schema is not used in OSS (which gives better introspection, because there is less noise from fields that aren't accessible because OSS) and doesn't require us to implement a `defaultXXResolver`.
2021-04-19 14:35:49 +02:00
Valery Bugakov
d3af5d54db
web: enable import/order ESLint rule (#19806)
* web: enabled import/order ESLint rule

* web: auto fix import/order ESLint rule

* web: revert tsconfig.json change

* web: auto fix import/order rule

* web: auto fix import/order rule

* web: auto fix import/order rule
2021-04-10 14:58:33 +08:00
Adam Harvey
bebeec87ec
gulp: disable graphql-codegen's watch feature (#16411)
* gulp: disable graphql-codegen's watch feature

Due to https://github.com/dotansimha/graphql-code-generator/issues/1796,
gulp is currently consuming a non-trivial amount of a CPU core watching
for updates that regenerate the GraphQL operations files. Let's use
Chokidar directly (via Gulp) and then we can be smarter about when we
actually trigger the several second generation process.

* Hush eslint.

* Simplify logic and ensure graphql types are generated before first run of webpack

Co-authored-by: Erik Seliger <erikseliger@me.com>
2020-12-07 10:22:35 +01:00
Erik Seliger
4b6dfb4f70
Reduce logspam by graphql generator (#16419) 2020-12-04 01:33:03 +01:00
Erik Seliger
63821d4758
Draft mode syntax support (#14699)
Works on the first milestone of #7998, getting syntax support done.

This currently has no effect, rather than passing validation for changeset specs and campaign specs sent from src-cli that use the new draft flag.
2020-10-16 01:08:58 +02:00
Felix Becker
45f9839011
Move all client code into client/ folder (#14480) 2020-10-07 22:23:53 +02:00