Skip to content

Commit

Permalink
Merge pull request #355 from Joystream/hydra-v3
Browse files Browse the repository at this point in the history
Merge hydra-v3 into master
  • Loading branch information
dzhelezov authored May 7, 2021
2 parents bf67446 + 311a9cd commit fc04505
Show file tree
Hide file tree
Showing 202 changed files with 12,335 additions and 3,423 deletions.
1 change: 1 addition & 0 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- ci-test
- ci-lerna
- ci-lerna-test
- hydra-v3

env:
CI: true
Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,31 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [3.0.0-beta.1](/~https://github.com/dzhelezov/hydra/compare/v2.1.0-beta.8...v3.0.0-beta.1) (2021-05-07)


### Features

* **hydra-cli:** support cross filters for entity relationship ([#381](/~https://github.com/dzhelezov/hydra/issues/381)) ([04f2dca](/~https://github.com/dzhelezov/hydra/commit/04f2dca8fdec18d2351f6740de693fc5d45845f5))
* **hydra-cli:** support multiple orderBy clauses ([#378](/~https://github.com/dzhelezov/hydra/issues/378)) ([7348f03](/~https://github.com/dzhelezov/hydra/commit/7348f03eca746e9c897b68df80b02b7da0976b29))
* **hydra-cli:** support variant relations v3 ([#380](/~https://github.com/dzhelezov/hydra/issues/380)) ([8ab5222](/~https://github.com/dzhelezov/hydra/commit/8ab5222337557c51849b5b43fe512f84bcda868c)), closes [#357](/~https://github.com/dzhelezov/hydra/issues/357)
* **hydra-indexer:** add bundle and spec types support for hydra indexer ([#353](/~https://github.com/dzhelezov/hydra/issues/353)) ([78617e4](/~https://github.com/dzhelezov/hydra/commit/78617e4efd7ee171d7d986b13ab38cbaf1e30b4f))
* **hydra-indexer:** persist block data ([#366](/~https://github.com/dzhelezov/hydra/issues/366)) ([b11a7b2](/~https://github.com/dzhelezov/hydra/commit/b11a7b22a9cbbb0f99f2f9e5a4c733796d6d0c86))
* **hydra-indexer-gateway:** add block queries ([#367](/~https://github.com/dzhelezov/hydra/issues/367)) ([fcb6a5b](/~https://github.com/dzhelezov/hydra/commit/fcb6a5b1805a5c43327a0ce6763eb58873d674b7))
* **hydra-processor:** add hydra indexer check + hydra-processor performance fix ([#385](/~https://github.com/dzhelezov/hydra/issues/385)) ([dd77e3f](/~https://github.com/dzhelezov/hydra/commit/dd77e3fc861cd6f914a961788de0eef8ecf16e82))
* **hydra-processor:** Hooks without events ([#386](/~https://github.com/dzhelezov/hydra/issues/386)) ([d3ff8e6](/~https://github.com/dzhelezov/hydra/commit/d3ff8e6afd6ff8486cb3610c27fcdf5a163f8f73))
* **hydra-processor:** string-based ranges in manifest ([#347](/~https://github.com/dzhelezov/hydra/issues/347)) ([d343da1](/~https://github.com/dzhelezov/hydra/commit/d343da15b6b90e71bf69e85f93d5fe7fc1bf3e4e))
* **hydra-processor:** use mappings contexts and support specVersion filters ([#375](/~https://github.com/dzhelezov/hydra/issues/375)) ([6a95a99](/~https://github.com/dzhelezov/hydra/commit/6a95a99b5d212de50ae83c3b8ec6cb42a66204af))
* **typegen:** tuple return type for event.params ([#358](/~https://github.com/dzhelezov/hydra/issues/358)) ([bf16156](/~https://github.com/dzhelezov/hydra/commit/bf16156c63893ba5a4c6906341319a27a05b788d))


### Bug Fixes

* **hydra-cli:** update scaffold templates ([#383](/~https://github.com/dzhelezov/hydra/issues/383)) ([427625a](/~https://github.com/dzhelezov/hydra/commit/427625a589923929d2e955691fd52575b84dea76))
* **hydra-processor:** fix missing dependency in hydra-procesor ([#387](/~https://github.com/dzhelezov/hydra/issues/387)) ([21bb96e](/~https://github.com/dzhelezov/hydra/commit/21bb96e977cb5bc07fc446b8d77577cd9c63f9db))



## 2.1.0-beta.8 (2021-04-29)


Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ and answer the prompts. It will generate a sample project and README with setup

The monorepo contains the following sub-packages:

* [Hydra CLI](packages/hydra-cli/README.md): Codegen tools to set up and run a Hydra pipeline
* [Hydra Indexer](packages/hydra-indexer/README.md): Hydra indexer for ingesting raw events and extrinsics
* [Hydra Indexer Gateway](packages/hydra-indexer-gateway/README.md): GraphQL interface for the Indexer
* [Hydra Processor](packages/hydra-processor/README.md): Processing part of the pipeline for transforming events into rich business-level objects
* [Hydra Typegen](packages/hydra-typegen/README.md): A tool for generating typesafe typescript classes for events and extrinsics from the runtime metadata. No more manual deserialization of the event data.
* [Sample Project](packages/sample/README.md): A quickstart Hydra project set up against a publicly available Kusama indexer. Good starting point.
* [Docs](https://app.gitbook.com/@dzhelezov/s/hydra/): In-depth documentation covering the Hydra pipeline and API features, such as full-text search, pagination, extensive filtering and a rich GraphQL dialect defining your schema!
* [Hydra CLI](./packages/hydra-cli/README.md): Codegen tools to set up and run a Hydra pipeline
* [Hydra Indexer](./packages/hydra-indexer/README.md): Hydra indexer for ingesting raw events and extrinsics
* [Hydra Indexer Gateway](./packages/hydra-indexer-gateway/README.md): GraphQL interface for the Indexer
* [Hydra Processor](./packages/hydra-processor/README.md): Processing part of the pipeline for transforming events into rich business-level objects
* [Hydra Typegen](./packages/hydra-typegen/README.md): A tool for generating typesafe typescript classes for events and extrinsics from the runtime metadata. No more manual deserialization of the event data.
* [Sample Project](./packages/sample/README.md): A quickstart Hydra project set up against a publicly available Kusama indexer. Good starting point.
* [Docs](./docs/README.md): In-depth documentation covering the Hydra pipeline and API features, such as full-text search, pagination, extensive filtering and a rich GraphQL dialect defining your schema!

52 changes: 30 additions & 22 deletions SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
# Table of contents

* [Hydra](README.md)
* [Overview](docs/README.md)
* [Query Node Manifest](docs/manifest-spec.md)
* [Mappings](docs/mappings/README.md)
* [DatabaseManager](docs/mappings/databasemanager.md)
* [SubstrateEvent](docs/mappings/substrateevent.md)
* [Schema](docs/schema-spec/README.md)
* [The Goodies](docs/schema-spec/the-query-goodies.md)
* [Entities](docs/schema-spec/entities.md)
* [Enums](docs/schema-spec/enums.md)
* [Interfaces](docs/schema-spec/interfaces.md)
* [Algebraic types](docs/schema-spec/variant-types.md)
* [Full-text queries](docs/schema-spec/full-text-queries.md)
* [Entity Relationships](docs/schema-spec/entity-relationship.md)
* [Install Hydra](docs/install-hydra.md)
* [Query Node schema](docs/query-node-schema.md)
* [Tutorial](docs/quick-start.md)
* [GraphQL Entity Relationships](docs/entity-relationship.md)
* [Architecture](docs/architecture.md)
* [Migration to Hydra v2](migration-to-hydra-v2.md)
* [Announcing Hydra v3](announcing-hydra-v3.md)

- [Hydra](README.md)
- [Hydra CLI](packages/hydra-cli/README.md)
- [Hydra Indexer](packages/hydra-indexer/README.md)
- [Hydra Indexer Gateway](packages/hydra-indexer-gateway/README.md)
- [Hydra Processor](packages/hydra-processor/README.md)
- [Hydra Typegen](packages/hydra-typegen/README.md)
- [Overview](docs/README.md)
- [Query Node Manifest](docs/manifest-spec.md)
- [Graphql Queries](docs/queries.md)
- [Pagination](docs/paginate-query-results.md)
- [Sorting](docs/sort-query-results.md)
- [Mappings](docs/mappings/README.md)
- [DatabaseManager](docs/mappings/databasemanager.md)
- [SubstrateEvent](docs/mappings/substrateevent.md)
- [Schema](docs/schema-spec/README.md)
- [The Goodies](docs/schema-spec/the-query-goodies.md)
- [Entities](docs/schema-spec/entities.md)
- [Enums](docs/schema-spec/enums.md)
- [Interfaces](docs/schema-spec/interfaces.md)
- [Algebraic types](docs/schema-spec/variant-types.md)
- [Full-text queries](docs/schema-spec/full-text-queries.md)
- [Entity Relationships](docs/schema-spec/entity-relationship.md)
- [Cross filtering](docs/schema-spec/cross-filters.md)
- [Variant relations](docs/schema-spec/variant-relations.md)
- [Install Hydra](docs/install-hydra.md)
- [Tutorial](docs/quick-start.md)
- [GraphQL Entity Relationships](docs/graphql-entity-relationships.md)
- [Architecture](docs/architecture.md)
- [Migration to Hydra v2](migration-to-hydra-v2.md)
- [What's new in Hydra v3](announcing-hydra-v3.md)
19 changes: 9 additions & 10 deletions announcing-hydra-v3.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
# Announcing Hydra v3
# What's new in Hydra v3

Hydra v3 is already in the works. Here are the main features planned:

* Support for filtering by relations
* Define block ranges for any mapping, i.e. specify that your mapping X should be run only from block 5 to block 7
* Import all model files from a single library. Instead of the cumbersome
- Support for filtering by relations
- Support for adding relations to variant types
- Ordering by multiple fields
- Multiple filters in the same query \(`AND` and `OR`\)
- Filters for mapping handlers: specify heights and runtime spec version range
- Import all model files from a single library. Instead of the cumbersome

```typescript
import { MyEntity1 } from '../generated/graphql-server/my-entity2/my-entity2.model'
import { MyEntity2 } from '../generated/graphql-server/my-entity2/my-entity2.model'

import { MyEntity1 } from '../generated/graphql-server/my-entity2/my-entity2.model'
import { MyEntity2 } from '../generated/graphql-server/my-entity2/my-entity2.model'
```

write

```typescript
import { MyEntity1, MyEntity2 } from '../generated/graphql-server/model'
```



140 changes: 0 additions & 140 deletions docs/entity-relationship.md

This file was deleted.

2 changes: 2 additions & 0 deletions docs/graphql-entity-relationships.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# GraphQL Entity Relationships

Loading

0 comments on commit fc04505

Please sign in to comment.