Skip to content

Commit a6f8607

Browse files
Codegen bugfixes (#605)
1 parent 105089c commit a6f8607

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+481
-373
lines changed

.github/workflows/installer.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ jobs:
5050
- name: make install
5151
run: cd dipdup-indexer; make install
5252

53-
- name: make lint
54-
run: cd dipdup-indexer; make lint
53+
# TODO: Reenable after pydantic is bumped
54+
# - name: make lint
55+
# run: cd dipdup-indexer; make lint
5556

5657
- name: Deploy scripts to GH Pages
5758
if: contains(github.ref, 'master')

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
1111
- index: New index kind `operation_unfiltered`.
1212
-->
1313

14+
## [Unreleased]
15+
16+
### Fixed
17+
18+
- codegen: Fixed bug leading to incorrect imports in generated callbacks in some cases.
19+
- codegen: Fixed validation of created package after `dipdup init`.
20+
- config: Allow using empty string as default env (`{DEFAULT_EMPTY:-}`).
21+
22+
### Other
23+
24+
- deps: Updated pydantic to 1.10.4
25+
- deps: Updated datamodel-code-generator to 0.17.1
26+
- deps: Updated tortoise-orm to 0.19.3
27+
1428
## [6.5.0] - 2023-01-28
1529

1630
### Added

demos/demo-auction/docker-compose.swarm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ services:
5353
logging: *logging
5454

5555
hasura:
56-
image: hasura/graphql-engine:v2.17.0
56+
image: hasura/graphql-engine:v2.17.1
5757
depends_on:
5858
- db
5959
environment:

demos/demo-auction/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ services:
3131
retries: 5
3232

3333
hasura:
34-
image: hasura/graphql-engine:v2.17.0
34+
image: hasura/graphql-engine:v2.17.1
3535
ports:
3636
- 127.0.0.1:8080:8080
3737
depends_on:

demos/demo-auction/replay.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"crash_reporting": false,
77
"description": "My shiny new indexer based on DipDup",
88
"dipdup_version": "6",
9-
"hasura_image": "hasura/graphql-engine:v2.17.0",
9+
"hasura_image": "hasura/graphql-engine:v2.17.1",
1010
"license": "MIT",
1111
"line_length": "120",
1212
"linters": "default",

demos/demo-auction/src/demo_auction/types/tzcolors_auction/storage.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,25 @@
33

44
from __future__ import annotations
55

6+
from typing import Dict
7+
from typing import Optional
8+
69
from pydantic import BaseModel
710
from pydantic import Extra
811

912

10-
class TzcolorsAuctionStorage(BaseModel):
11-
pass
12-
13+
class TzcolorsAuctionStorage1(BaseModel):
1314
class Config:
14-
extra = Extra.allow
15+
extra = Extra.forbid
16+
17+
token_address: str
18+
token_id: str
19+
token_amount: str
20+
end_timestamp: str
21+
seller: str
22+
bid_amount: str
23+
bidder: str
24+
25+
26+
class TzcolorsAuctionStorage(BaseModel):
27+
__root__: Optional[Dict[str, TzcolorsAuctionStorage1]] = None

demos/demo-big-maps/docker-compose.swarm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ services:
5353
logging: *logging
5454

5555
hasura:
56-
image: hasura/graphql-engine:v2.17.0
56+
image: hasura/graphql-engine:v2.17.1
5757
depends_on:
5858
- db
5959
environment:

demos/demo-big-maps/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ services:
3131
retries: 5
3232

3333
hasura:
34-
image: hasura/graphql-engine:v2.17.0
34+
image: hasura/graphql-engine:v2.17.1
3535
ports:
3636
- 127.0.0.1:8080:8080
3737
depends_on:

demos/demo-big-maps/replay.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"crash_reporting": false,
77
"description": "My shiny new indexer based on DipDup",
88
"dipdup_version": "6",
9-
"hasura_image": "hasura/graphql-engine:v2.17.0",
9+
"hasura_image": "hasura/graphql-engine:v2.17.1",
1010
"license": "MIT",
1111
"line_length": "120",
1212
"linters": "default",

demos/demo-dao/docker-compose.swarm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ services:
5353
logging: *logging
5454

5555
hasura:
56-
image: hasura/graphql-engine:v2.17.0
56+
image: hasura/graphql-engine:v2.17.1
5757
depends_on:
5858
- db
5959
environment:

0 commit comments

Comments
 (0)