Skip to content

Commit

Permalink
[release] 20241021 (#2574)
Browse files Browse the repository at this point in the history
* [release] 20241021

* Fix TZ missing from test dockerfile

* Revert change requiring lastProcessedHeight on store cache
  • Loading branch information
stwiname authored Oct 21, 2024
1 parent 9deb139 commit 7e3f97a
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 19 deletions.
4 changes: 4 additions & 0 deletions .yarn/versions/d2b1da3c.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
undecided:
- "@subql/cli"
- "@subql/node"
- "@subql/node-core"
5 changes: 4 additions & 1 deletion packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [5.3.0] - 2024-10-21
### Changed
- Improve codegen error messages (#2567)
- Update codegen to match changes to store interface making options.limit required on getByField(s) methods (#2567)
Expand Down Expand Up @@ -685,7 +687,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- support subcommand codegen
- support subcommand init

[Unreleased]: https://github.com/subquery/subql/compare/cli/5.2.8...HEAD
[Unreleased]: https://github.com/subquery/subql/compare/cli/5.3.0...HEAD
[5.3.0]: https://github.com/subquery/subql/compare/cli/5.2.8...cli/5.3.0
[5.2.8]: https://github.com/subquery/subql/compare/cli/5.2.7...cli/5.2.8
[5.2.7]: https://github.com/subquery/subql/compare/cli/5.2.6...cli/5.2.7
[5.2.6]: https://github.com/subquery/subql/compare/cli/5.2.4...cli/5.2.6
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@subql/cli",
"description": "cli for subquery",
"version": "5.2.9-0",
"version": "5.3.0",
"author": "Ian He",
"bin": {
"subql": "./bin/run"
Expand Down Expand Up @@ -88,6 +88,5 @@
"types": "lib/index.d.ts",
"resolutions": {
"node-fetch": "2.6.7"
},
"stableVersion": "5.2.8"
}
}
5 changes: 4 additions & 1 deletion packages/node-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [14.1.6] - 2024-10-21
### Fixed
- Issues with setting a large block range for bypass blocks (#2566)
- Test runner not setting lastProcessedHeight leading to data not being flushed (#2569)
Expand Down Expand Up @@ -834,7 +836,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Move blockchain agnostic code from `node` to `node-core` package. (#1222)

[Unreleased]: https://github.com/subquery/subql/compare/node-core/14.1.5...HEAD
[Unreleased]: https://github.com/subquery/subql/compare/node-core/14.1.6...HEAD
[14.1.6]: https://github.com/subquery/subql/compare/node-core/14.1.5...node-core/14.1.6
[14.1.5]: https://github.com/subquery/subql/compare/node-core/14.1.4...node-core/14.1.5
[14.1.4]: https://github.com/subquery/subql/compare/node-core/14.1.3...node-core/14.1.4
[14.1.3]: https://github.com/subquery/subql/compare/node-core/14.1.2...node-core/14.1.3
Expand Down
5 changes: 2 additions & 3 deletions packages/node-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/node-core",
"version": "14.1.6-4",
"version": "14.1.6",
"description": "Common node features that are agnostic to blockchains",
"homepage": "https://github.com/subquery/subql",
"repository": "github:subquery/subql",
Expand Down Expand Up @@ -47,6 +47,5 @@
},
"devDependencies": {
"@types/yargs": "^16.0.9"
},
"stableVersion": "14.1.6-3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ export class SchemaMigrationService {
const sortedAddedModels = alignModelOrder<GraphQLModelsType[]>(sortedSchemaModels, addedModels);
const sortedModifiedModels = alignModelOrder<ModifiedModels>(sortedSchemaModels, modifiedModels);

// Flush any pending data before running the migration
await this.flushCache(true);

const migrationAction = await Migration.create(
this.sequelize,
this.storeService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ export class StoreCacheService extends BaseCacheService {
try {
// Get the block height of all data we want to flush up to
const blockHeight = await this.metadata.find('lastProcessedHeight');
assert(blockHeight !== undefined, 'Cannot flush cache without lastProcessedHeight');
// Get models that have data to flush
const updatableModels = Object.values(this.cachedModels).filter((m) => m.isFlushable);
if (this._useCockroachDb) {
Expand Down
2 changes: 1 addition & 1 deletion packages/node-core/src/indexer/storeCache/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface ICachedModelControl {
isFlushable: boolean;
hasAssociations?: boolean;
flushableRecordCounter: number;
flush(tx: Transaction, blockHeight: number): Promise<void>;
flush(tx: Transaction, blockHeight?: number): Promise<void>;
flushOperation?(i: number, tx: Transaction): Promise<void>;
/**
*
Expand Down
5 changes: 4 additions & 1 deletion packages/node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [5.2.7] - 2024-10-21
### Fixed
- Issues with setting a large block range for bypass blocks (#2566)

Expand Down Expand Up @@ -1313,7 +1315,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- bump @polkadot/api to 3.1.1

[Unreleased]: https://github.com/subquery/subql/compare/node/5.2.6...HEAD
[Unreleased]: https://github.com/subquery/subql/compare/node/5.2.7...HEAD
[5.2.7]: https://github.com/subquery/subql/compare/node/5.2.6...node/5.2.7
[5.2.6]: https://github.com/subquery/subql/compare/node/5.2.5...node/5.2.6
[5.2.5]: https://github.com/subquery/subql/compare/node/5.2.3...node/5.2.5
[5.2.3]: https://github.com/subquery/subql/compare/node/5.2.2...node/5.2.3
Expand Down
5 changes: 2 additions & 3 deletions packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/node",
"version": "5.2.7-0",
"version": "5.2.7",
"description": "",
"author": "Ian He",
"license": "GPL-3.0",
Expand Down Expand Up @@ -50,6 +50,5 @@
"files": [
"/dist",
"/bin"
],
"stableVersion": "5.2.6"
]
}
4 changes: 3 additions & 1 deletion packages/node/src/configure/SchemaMigration.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ describe('SchemaMigration integration tests', () => {
});

afterAll(async () => {
await rimraf(tempDir);
if (tempDir) {
await rimraf(tempDir);
}
await sequelize?.close();
});

Expand Down
5 changes: 4 additions & 1 deletion packages/types-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [2.0.0] - 2024-10-21
### Changed
- Update store interface making options.limit required on getByField(s) methods (#2567)

Expand Down Expand Up @@ -72,7 +74,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Initial release of new package containing types common to all chains

[Unreleased]: https://github.com/subquery/subql/compare/types-core/1.1.1...HEAD
[Unreleased]: https://github.com/subquery/subql/compare/types-core/2.0.0...HEAD
[2.0.0]: https://github.com/subquery/subql/compare/types-core/1.1.1...types-core/2.0.0
[1.1.1]: https://github.com/subquery/subql/compare/types-core/1.1.0...types-core/1.1.1
[1.1.0]: https://github.com/subquery/subql/compare/types-core/1.0.0...types-core/1.1.0
[1.0.0]: https://github.com/subquery/subql/compare/types-core/0.10.0...types-core/1.0.0
Expand Down
5 changes: 2 additions & 3 deletions packages/types-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/types-core",
"version": "1.1.2-0",
"version": "2.0.0",
"description": "",
"homepage": "https://github.com/subquery/subql",
"repository": "github:subquery/subql",
Expand All @@ -17,6 +17,5 @@
],
"devDependencies": {
"package-json-type": "^1.0.3"
},
"stableVersion": "1.1.1"
}
}
3 changes: 3 additions & 0 deletions test/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM node:lts-bullseye
WORKDIR /workdir

# Fix timezone to UTC
ENV TZ=utc

COPY . .
RUN yarn

0 comments on commit 7e3f97a

Please sign in to comment.