-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the way the schema ID is supplied to a query
Summary: We had some legacy cruft here, and things were more confusing than necessary. The new story is: * The schema ID for a query is always specified by the `schema_id` field of `UserQuery` (or `UserQueryFacts`). The field is populated by the client. * In the local backend, `envSchemaId` stores the schema ID for the session, and this is attached to each query in `instance Backend Env`. (previously it was attached in `Glean.Query.Thrift`, which missed some queries, but it was also being picked up inside `userQuery` itself which was pretty confusing). * The `--schema-id` flag is now ignored. I don't think there's a good use for this, we should always be passing the schema ID with the query. * We now log a warning if the user-supplied schema ID is unknown. This might help debug some issues like D62471296 Reviewed By: josefs Differential Revision: D62737521 fbshipit-source-id: e7bddaf3c5e9b11dd9aa8d617cb0827e74e002da
- Loading branch information
1 parent
a951be0
commit 96d30aa
Showing
7 changed files
with
58 additions
and
62 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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