-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QueryAPI Logging Features + UI/UX changes (#388)
This PR addresses a few painpoints of logging and QueryAPI Indexer development. 1. Logs can now be seen through the QueryAPI editor window via a `Show Logs` button. - No need to switch between `Indexer Status` & `Editor` window anymore saving time and frustration with the editor taking a few seconds to load. - Enables more powerful integrations with the editor for future PRs (e.g: adding blocks to debug directly from the indexer Logs table) 2. Logs are easier to digest now and search now. - Logs are grouped by `block_height` so now the user sees all the messages belonging to a block's execution together. - Additionally the user can use the `search` functionality to search for any block_height where the function was executed to view its log in entirety. - Logs have relative dates now e.g (4 mins ago...) - BlockHeights can be clicked on to take you to the explorer link 3. Simplifying QueryAPI links. - There is no need for `&view=status/editor-window` to be passed in anymore. - As long as `selectedIndexerPath` is defined, the user is sent to the editor window. If `&view=status` is passed the user is redirected to the indexer logs page within the editor window. - Note: I have a PR on `queryapi/docs` to reflect these changes: near/docs#1584 Notes: Instead of using GraphQL to fetch logs, we are using a feature of Hasura which `restifies` your graphql queries. You can find details here: https://near-queryapi.api.pagoda.co/console/api/rest/list - The Old Indexer Status Widget should still be avalaible if needed via the following link: https://near.org/dataplatform.near/widget/QueryApi.IndexerStatus?accountId=dataplatform.near&indexer_name=social_feed Other small updates - If a invalid indexer path is chosen, the editor will show an error - QueryAPI is avalaible for users in read only mode even if they are not logged in on near.org ### This PR does not add WS support. This will be done in a future PR. ![image](https://github.com/near/queryapi/assets/25015977/0e94ede2-6cca-41ae-9dd4-827ff388ba48) ![image](https://github.com/near/queryapi/assets/25015977/01e655cb-786d-4913-9b09-e00014037863) ![queryapi logs testing](https://github.com/near/queryapi/assets/25015977/c66d980c-0988-492e-b225-46371ff7572e)
- Loading branch information
Showing
15 changed files
with
646 additions
and
114 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
Oops, something went wrong.