Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Dec 22, 2024
1 parent 180d55c commit bb3e911
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 24 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ on:
- '.github/workflows/installer.yml'

env:
# FIXME: substrate preview
FRONTEND_BRANCH: feat/substrate
FRONTEND_BRANCH: ${{ github.ref == 'refs/heads/docs-next' && 'dev' || 'master' }}
GITHUB_TOKEN: ${{ secrets.DOCS_GITHUB_TOKEN }}

jobs:
Expand Down Expand Up @@ -66,8 +65,7 @@ jobs:

# NOTE: Installer is tested in `installer` workflow
- name: Commit and push frontend
# FIXME: substrate preview
# if: github.ref_type == 'tag'
if: github.ref_type == 'tag'
run: |
cp src/dipdup/install.py ../interface/public/install.py
cd ../interface
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic

Releases prior to 7.0 has been removed from this file to declutter search results; see the [archived copy](https://github.com/dipdup-io/dipdup/blob/8.0.0b5/CHANGELOG.md) for the full list.

## [8.1.3] - 2024-12-20
## [Unreleased]

### Added

Expand All @@ -15,7 +15,7 @@ Releases prior to 7.0 has been removed from this file to declutter search result
- substrate.subscan: Added `substrate.subscan` datasource to fetch ABIs from Subscan.
- substrate.subsquid: Added `substrate.subsquid` datasource to fetch historical data from Squid Network.

## [Unreleased]
## [8.1.3] - 2024-12-20

### Fixed

Expand Down
13 changes: 4 additions & 9 deletions docs/9.release-notes/_8.0_changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,42 +18,37 @@
- starknet.events: Added `starknet.events` index kind to process Starknet events.
- starknet.node: Added Starknet node datasource for last mile indexing.
- starknet.subsquid: Added `starknet.subsquid` datasource to fetch historical data from Subsquid Archives.
- substrate.events: Added `subtrate.events` index kind to process Substrate events.
- substrate.node: Added `subtrate.node` datasource to receive data from Substrate node.
- substrate.subscan: Added `substrate.subscan` datasource to fetch ABIs from Subscan.
- substrate.subsquid: Added `substrate.subsquid` datasource to fetch historical data from Squid Network.
- tezos.operations: Added `sr_cement` operation type to process Smart Rollup Cemented Commitments.

### Fixed

- cli: Don't save reports for successful test runs.
- cli: Don't update existing installation in `self install` command unless asked to.
- cli: Don't wrap exceptions with `CallbackError` to avoid shadowing the original exception.
- cli: Fixed `--pre` installer flag.
- cli: Fixed `--template` option being ignored when `--quiet` flag is set.
- cli: Fixed env files not being loaded in some commands.
- cli: Fixed errors raised when the project package is invalid.
- cli: Fixed progress estimation when there are indexes with `last_level` option set.
- cli: Import some dependencies on demand to reduce memory footprint.
- cli: Improved logging of indexer status.
- config: Allow `sentry.dsn` to be empty string.
- config: Fixed (de)serialization of hex strings in config.
- config: Fixed parsing config files after updating to pydantic 2.10.3.
- config: Fixed setting default loglevels when `logging` is a dict.
- config: Fixed setting logging levels according to the config.
- config: Fixed starknet index validation error.
- database: Fixed concurrency issue when using `get_or_create` method.
- evm.events: Fixed matching logs when filtering by topic0.
- evm.events: Improve fetching event batches from node.
- evm.subsquid: Fixed typo in `iter_events` method name.
- evm: Fixed crash when contract ABI contains overloaded methods.
- install: Fixed reinstalling package when `--force` flag is used.
- metrics: Fixed indexed objects counter.
- models: Fixed `CachedModel` preloading.
- models: Fixed setting default value for `Meta.maxsize`.
- package: Create package in-place if cwd equals package name.
- performance: Add index name to fetcher and realtime queues.
- performance: Fixed estimation indexing speed in levels per second.
- starknet.events: Fixed filtering events by key.
- starknet: Added support for struct and array types, as well as u256 and ByteArray handlers.
- starknet: Fixed event payload parsing (account for keys field).
- starknet: Fixed missing class property in node datasource.
- subsquid: Fixed missing entry in `dipdup_head` internal table.
- tezos.big_maps: Fixed logging status message in `skip_history` mode.
- tezos.big_maps: Respect order of handlers in `skip_history` mode.
Expand Down
13 changes: 9 additions & 4 deletions docs/9.release-notes/_8.1_changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@
- cli: Added interactive mode for `new` command.
- database: Support database migrations using [`aerich`](https://github.com/tortoise/aerich).
- hasura: Added `hide` and `hide_internal` config options to make specified tables/views private.
- substrate.events: Added `subtrate.events` index kind to process Substrate events.
- substrate.node: Added `subtrate.node` datasource to receive data from Substrate node.
- substrate.subscan: Added `substrate.subscan` datasource to fetch ABIs from Subscan.
- substrate.subsquid: Added `substrate.subsquid` datasource to fetch historical data from Squid Network.

### Fixed

- cli: Don't wrap exceptions with `CallbackError` to avoid shadowing the original exception.
- cli: Fixed `--template` option being ignored when `--quiet` flag is set.
- cli: Fixed progress estimation logging.
- cli: Reload constants in `dipdup.env` after applying env-files.
- config: Fixed parsing config files after updating to pydantic 2.10.3.
- config: Fixed setting default loglevels when `logging` is a dict.
- config: Fixed starknet index validation error.
- context: Allow to add Starknet contracts in runtime.
- database: Ignore non-existent immutable table on schema wipe.
- metrics: Fixed indexed objects counter.
- starknet.events: Fixed event ID calculation.
- starknet: Added support for struct and array types, as well as u256 and ByteArray handlers.
- starknet: Fixed event payload parsing (account for keys field).
- starknet: Fixed missing class property in node datasource.
4 changes: 0 additions & 4 deletions src/dipdup/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,6 @@ def _render_templates(
).with_suffix(path.suffix[:-3])
output_path = Path(Template(str(output_path)).render(project=answers))

# FIXME: A very dirty hack for demo_substrate_events project
if output_path.name == 'Dockerfile':
force = True

_render(answers, template_path, output_path, force)

# NOTE: If there are files without .j2 extension, just copy them
Expand Down
2 changes: 1 addition & 1 deletion src/dipdup/runtimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def get_spec_version(self, name: str) -> SubstrateSpecVersion:
except FileNotFoundError:
# FIXME: Using last known version to help with missing abis
last_known = sorted_glob(self.abi_path, 'v*.json')[-1].stem
_logger.info('using last known version `%s`', last_known)
_logger.debug('using last known version `%s`', last_known)
self._spec_versions[name] = self.get_spec_version(last_known[1:])

return self._spec_versions[name]
Expand Down

0 comments on commit bb3e911

Please sign in to comment.