Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement the metadata query #682

Merged
merged 11 commits into from
Dec 23, 2024
Merged

Conversation

polebug
Copy link
Contributor

@polebug polebug commented Dec 18, 2024

Summary

Checklist

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

The index of the historical database needs to be established in advance:

CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_arbitrum_2024_q3_id_platform_index ON public.activities_arbitrum_2024_q3 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_crossbell_2024_q3_id_platform_index ON public.activities_crossbell_2024_q3 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_gnosis_2024_q3_id_platform_index ON public.activities_gnosis_2024_q3 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_linea_2024_q4_id_platform_index ON public.activities_linea_2024_q4 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_avax_2024_q3_id_platform_index ON public.activities_avax_2024_q3 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_base_2024_q3_id_platform_index ON public.activities_base_2024_q3 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS "activities_binance-smart-chain_2024_q3_platform_index" ON public."activities_binance-smart-chain_2024_q3" (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_gnosis_2024_q4_id_platform_index ON public.activities_gnosis_2024_q4 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS "activities_binance-smart-chain_2024_q4_platform_index" ON public."activities_binance-smart-chain_2024_q4" (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_ethereum_2024_q3_id_platform_index ON public.activities_ethereum_2024_q3 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_vsl_2024_q3_id_platform_index ON public.activities_vsl_2024_q3 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS "activities_x-layer_2024_q3_platform_index" ON public."activities_x-layer_2024_q3" (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_arbitrum_2024_q4_id_platform_index ON public.activities_arbitrum_2024_q4 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_avax_2024_q4_id_platform_index ON public.activities_avax_2024_q4 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_farcaster_2024_q3_id_platform_index ON public.activities_farcaster_2024_q3 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_polygon_2024_q4_id_platform_index ON public.activities_polygon_2024_q4 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_linea_2024_q3_id_platform_index ON public.activities_linea_2024_q3 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS "activities_x-layer_2024_q4_platform_index" ON public."activities_x-layer_2024_q4" (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_optimism_2024_q3_id_platform_index ON public.activities_optimism_2024_q3 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_ethereum_2024_q4_id_platform_index ON public.activities_ethereum_2024_q4 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_near_2024_q4_id_platform_index ON public.activities_near_2024_q4 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_polygon_2024_q3_id_platform_index ON public.activities_polygon_2024_q3 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_optimism_2024_q4_id_platform_index ON public.activities_optimism_2024_q4 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_arweave_2024_q1_id_platform_index ON public.activities_arweave_2024_q1 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_arweave_2024_q2_id_platform_index ON public.activities_arweave_2024_q2 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_base_2024_q4_id_platform_index ON public.activities_base_2024_q4 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_vsl_2024_q4_id_platform_index ON public.activities_vsl_2024_q4 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_arweave_2024_q4_id_platform_index ON public.activities_arweave_2024_q4 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_crossbell_2024_q4_id_platform_index ON public.activities_crossbell_2024_q4 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_farcaster_2024_q4_id_platform_index ON public.activities_farcaster_2024_q4 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_farcaster_2024_q2_id_platform_index ON public.activities_farcaster_2024_q2 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_farcaster_2024_q1_id_platform_index ON public.activities_farcaster_2024_q1 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_mastodon_2024_q4_id_platform_index ON public.activities_mastodon_2024_q4 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_mastodon_2024_q3_id_platform_index ON public.activities_mastodon_2024_q3 (platform);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_arweave_2024_q3_id_platform_index ON public.activities_arweave_2024_q3 (platform);

CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_arbitrum_2024_q3_id_tag_type_index ON public.activities_arbitrum_2024_q3 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_crossbell_2024_q3_id_tag_type_index ON public.activities_crossbell_2024_q3 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_gnosis_2024_q3_id_tag_type_index ON public.activities_gnosis_2024_q3 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_linea_2024_q4_id_tag_type_index ON public.activities_linea_2024_q4 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_avax_2024_q3_id_tag_type_index ON public.activities_avax_2024_q3 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_base_2024_q3_id_tag_type_index ON public.activities_base_2024_q3 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS "activities_binance-smart-chain_2024_q3_platform_index" ON public."activities_binance-smart-chain_2024_q3" (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_gnosis_2024_q4_id_tag_type_index ON public.activities_gnosis_2024_q4 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS "activities_binance-smart-chain_2024_q4_platform_index" ON public."activities_binance-smart-chain_2024_q4" (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_ethereum_2024_q3_id_tag_type_index ON public.activities_ethereum_2024_q3 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_vsl_2024_q3_id_tag_type_index ON public.activities_vsl_2024_q3 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS "activities_x-layer_2024_q3_platform_index" ON public."activities_x-layer_2024_q3" (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_arbitrum_2024_q4_id_tag_type_index ON public.activities_arbitrum_2024_q4 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_avax_2024_q4_id_tag_type_index ON public.activities_avax_2024_q4 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_farcaster_2024_q3_id_tag_type_index ON public.activities_farcaster_2024_q3 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_polygon_2024_q4_id_tag_type_index ON public.activities_polygon_2024_q4 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_linea_2024_q3_id_tag_type_index ON public.activities_linea_2024_q3 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS "activities_x-layer_2024_q4_platform_index" ON public."activities_x-layer_2024_q4" (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_optimism_2024_q3_id_tag_type_index ON public.activities_optimism_2024_q3 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_ethereum_2024_q4_id_tag_type_index ON public.activities_ethereum_2024_q4 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_near_2024_q4_id_tag_type_index ON public.activities_near_2024_q4 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_polygon_2024_q3_id_tag_type_index ON public.activities_polygon_2024_q3 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_optimism_2024_q4_id_tag_type_index ON public.activities_optimism_2024_q4 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_arweave_2024_q1_id_tag_type_index ON public.activities_arweave_2024_q1 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_arweave_2024_q2_id_tag_type_index ON public.activities_arweave_2024_q2 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_base_2024_q4_id_tag_type_index ON public.activities_base_2024_q4 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_vsl_2024_q4_id_tag_type_index ON public.activities_vsl_2024_q4 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_arweave_2024_q4_id_tag_type_index ON public.activities_arweave_2024_q4 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_crossbell_2024_q4_id_tag_type_index ON public.activities_crossbell_2024_q4 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_farcaster_2024_q4_id_tag_type_index ON public.activities_farcaster_2024_q4 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_farcaster_2024_q2_id_tag_type_index ON public.activities_farcaster_2024_q2 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_farcaster_2024_q1_id_tag_type_index ON public.activities_farcaster_2024_q1 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_mastodon_2024_q4_id_tag_type_index ON public.activities_mastodon_2024_q4 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_mastodon_2024_q3_id_tag_type_index ON public.activities_mastodon_2024_q3 (tag, type);
CREATE INDEX CONCURRENTLY IF NOT EXISTS activities_arweave_2024_q3_id_tag_type_index ON public.activities_arweave_2024_q3 (tag, type);

@polebug polebug marked this pull request as ready for review December 18, 2024 13:18
@polebug polebug requested a review from pseudoyu as a code owner December 18, 2024 13:18
@polebug polebug marked this pull request as draft December 18, 2024 13:18
@polebug polebug changed the title Feat/support for querying metadata feat: implement the metadata query Dec 18, 2024
Copy link

commit hash: c874fd1
openapi.yaml

Lint Result

Lint: docs/api.yaml

Severity Location Problem Message
warning line 10:10 no-server-example.com Server url should not point to example.com or localhost.

Validation successful
Warnings: 1

Copy link

commit hash: abdbe95
openapi.yaml

Lint Result

Lint: docs/api.yaml

Severity Location Problem Message
warning line 10:10 no-server-example.com Server url should not point to example.com or localhost.

Validation successful
Warnings: 1

@polebug polebug marked this pull request as ready for review December 19, 2024 12:39
@polebug polebug requested review from HenryQW and brucexc December 19, 2024 12:41
@polebug polebug requested a review from brucexc December 20, 2024 04:10
Copy link

commit hash: 4883af4
openapi.yaml

Lint Result

Lint: docs/api.yaml

Severity Location Problem Message
warning line 10:10 no-server-example.com Server url should not point to example.com or localhost.

Validation successful
Warnings: 1

Copy link

commit hash: b3028f5
openapi.yaml

Lint Result

Lint: docs/api.yaml

Severity Location Problem Message
warning line 10:10 no-server-example.com Server url should not point to example.com or localhost.

Validation successful
Warnings: 1

Copy link

commit hash: 3e35453
openapi.yaml

Lint Result

Lint: docs/api.yaml

Severity Location Problem Message
warning line 10:10 no-server-example.com Server url should not point to example.com or localhost.

Validation successful
Warnings: 1

Copy link

commit hash: 5f724db
openapi.yaml

Lint Result

Lint: docs/api.yaml

Severity Location Problem Message
warning line 10:10 no-server-example.com Server url should not point to example.com or localhost.

Validation successful
Warnings: 1

Copy link

commit hash: d13bddc
openapi.yaml

Lint Result

Lint: docs/api.yaml

Severity Location Problem Message
warning line 10:10 no-server-example.com Server url should not point to example.com or localhost.

Validation successful
Warnings: 1

Copy link

commit hash: 1a9ae4c
openapi.yaml

Lint Result

Lint: docs/api.yaml

Severity Location Problem Message
warning line 10:10 no-server-example.com Server url should not point to example.com or localhost.

Validation successful
Warnings: 1

@polebug polebug merged commit 4204580 into main Dec 23, 2024
7 checks passed
@polebug polebug deleted the feat/support-for-querying-metadata branch December 23, 2024 08:48
Copy link

commit hash: 4204580
openapi.yaml

Lint Result

Lint: docs/api.yaml

Severity Location Problem Message
warning line 10:10 no-server-example.com Server url should not point to example.com or localhost.

Validation successful
Warnings: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants