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

Sync with main SDK for project upgrades feature #60

Merged
merged 13 commits into from
Oct 4, 2023
Merged

Conversation

stwiname
Copy link
Contributor

@stwiname stwiname commented Sep 3, 2023

Description

Sync with main SDK to get new project upgrades feature and POI rework

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I have tested locally
  • I have performed a self review of my changes
  • Updated any relevant documentation
  • Linked to any relevant issues
  • I have added tests relevant to my changes
  • Any dependent changes have been merged and published in downstream modules
  • My code is up to date with the base branch
  • I have updated relevant changelogs. We suggest using chan

@github-actions
Copy link

github-actions bot commented Sep 3, 2023

Coverage report

❌ An unexpected error occurred. For more details, check console

Error: The process '/usr/local/bin/yarn' failed with exit code 1
St.
Category Percentage Covered / Total
🔴 Statements 31.23% 1277/4089
🔴 Branches 55.36% 62/112
🔴 Functions 12.4% 16/129
🔴 Lines 31.23% 1277/4089

Test suite run failed

Failed tests: 1/11. Failed suites: 1/3.
  ● ProjectService › can get a block timestamps

    TypeError: Cannot read properties of null (reading 'unsafe')

      44 |     unfinalizedBlockService: UnfinalizedBlocksService,
      45 |   ) {
    > 46 |     super(
         |     ^
      47 |       dsProcessorService,
      48 |       apiService,
      49 |       poiService,

      at new BaseProjectService (node_modules/@subql/node-core/src/indexer/project.service.ts:52:25)
      at new ProjectService (packages/node/src/indexer/project.service.ts:46:5)
      at Object.<anonymous> (packages/node/src/indexer/project.service.spec.ts:26:22)

Report generated by 🧪jest coverage report action from 2f250bd

@ValidateNested()
@Type(() => FileType)
@IsOptional()
chaintypes?: FileType;
@IsOptional()
@IsArray()
bypassBlocks?: (number | string)[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bypassBlocks?: (number | ${number}-${number})[];

argv._[0] === 'force-clean'
)
) {
// Check for no subcommand
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this too

(BigInt.prototype as any).toJSON = function () {
  return this.toString();
};

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. Near doesn't seem to use much BigInt

extends CoreDictionaryService
implements OnApplicationShutdown
{
export class DictionaryService extends CoreDictionaryService {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose line 13-19, specVersions is not used in Near?

dataSources: SubqlProjectDs[],
getVM: (d: SubqlProjectDs) => Promise<IndexerSandbox>,
dataSources: NearProjectDs[],
getVM: (d: NearProjectDs) => Promise<IndexerSandbox>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 184 baseCustomHandlerFilter not used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its used by BaseIndexerManager

@@ -16,6 +16,7 @@
"/dist"
],
"dependencies": {
"@subql/types-core": "^0.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is 0.1.1 now

@jiqiang90 jiqiang90 merged commit bee76db into main Oct 4, 2023
2 of 3 checks passed
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.

3 participants