-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attach signer information to tx(s) endpoints (#152)
This PR adds the `_txDetail_signers :: [Signer]` field to the `TxDetail` served by the `GET /txs/tx` and `GET /txs/txs` endpoints. Additionally: * It implements the necessary `ToSchema` types for the OAS3 spec. * Adds a schema migration that swaps the order of the primary key columns of the `signers` table so that the primary key index supports efficient signer lookups. * Swap the signers_pkey column order This will allow us to join from transactions to their signers * Add ToSchema Signer and SigCapability * Point chainweb-api dependency to branch * Attach signer information to TxDetail responses * Specify explicit order for signers
- Loading branch information
Showing
4 changed files
with
62 additions
and
5 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
2 changes: 2 additions & 0 deletions
2
haskell-src/db-schema/migrations/2.2.0.1_swap_signers_pkey.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE signers DROP CONSTRAINT signers_pkey; | ||
ALTER TABLE cwd.signers ADD CONSTRAINT signers_pkey PRIMARY KEY (requestkey, idx); |
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