profile
viewpoint

faireprogram/CS562 1

FinalProject - resolve SQL syntax into relation expression, then implement it with java

wy193777/azure-cli-docker 0

Azure CLI with docker utilities including docker, k8s, docker-compose

wy193777/azure-sdk-for-ruby 0

Ruby SDK for Azure Resource Manager: build and manage your Azure cloud infrastructure (Compute, Virtual Networks, Storage, etc...) using Ruby.

wy193777/bell 0

Third-party login plugin for hapi

wy193777/black-screen 0

A terminal emulator for the 21st century.

delete branch wy193777/ts-pegjs

delete branch : patch-1

delete time in 6 days

PullRequestReviewEvent

pull request commentjohnbrett/hapi-auth-bearer-token

Resolve issue #209, doesn't work with new "joi" package.

Thanks for your immediate response!

eric-swann-q2

comment created time in 25 days

pull request commentjohnbrett/hapi-auth-bearer-token

Resolve issue #209, doesn't work with new "joi" package.

This one is the only dependency currently prevent me update to joi.

eric-swann-q2

comment created time in 25 days

issue commenttypeorm/typeorm

Got "Index contains column that is missing in the entity" Error even the column is there.

Not sure why I cannot properly format the code on this issue, but I successfully reproduced the issue on testing environment.

wy193777

comment created time in a month

push eventwy193777/typeorm

Shenghan Gao

commit sha efc270ad1add9d176b59273933177dc636bcd582

change test description

view details

push time in a month

PR opened typeorm/typeorm

Issue 6752

#6752

+112 -0

0 comment

3 changed files

pr created time in a month

push eventwy193777/typeorm

Shenghan Gao

commit sha ef7221a8a32272ab3a91b581b7231505c3bf6baf

remove unnecessary files

view details

push time in a month

push eventwy193777/typeorm

Shenghan Gao

commit sha 879e96e6e0c3abae13c7b8f501059496035d7382

add tests related to my issue

view details

push time in a month

issue openedtypeorm/typeorm

Got "Index contains column that is missing in the entity" Error even the column is there.

Issue type:

<!-- Have a question? Check the "Support" Documentation on the best places to ask questions! --- https://github.com/typeorm/typeorm/blob/master/docs/support.md -->

[x] bug report [ ] feature request [ ] documentation issue

Database system/driver:

[ ] cordova [ ] mongodb [x] mssql [ ] mysql / mariadb [ ] oracle [ ] postgres [ ] cockroachdb [ ] sqlite [ ] sqljs [ ] react-native [ ] expo

TypeORM version:

[x] latest [ ] @next [ ] 0.x.x (or put your version here)

Steps to reproduce or a small repository showing the problem:

<!-- To answer those questions you need to put "x" inside the square brackets, for example: [x] mssql [ ] postgres

Also, please format your code properly (by taking code blocks into ```ts .... ```)

--!>

import {
    Column, Entity, Index, OneToMany, PrimaryGeneratedColumn,
} from "typeorm";
import { PlanOfRecord } from "./PlanOfRecord";

// @Entity({ synchronize: false })
@Entity({ synchronize: true })
@Index(["chip_name", "manual", "frequency", "mode"], { unique: true })
export class Block {
    @PrimaryGeneratedColumn()
    public id?: number;

    @Column()
    @Index()
    public chip_name: string;

    @Column()
    @Index()
    public manual: string;

    @Column()
    @Index()
    public block: string;

    @Column()
    @Index()
    public frequency: string;

    @Column()
    @Index()
    public mode: string;

    @OneToMany((type) => PlanOfRecord, (por) => por.block)
    public plan_of_records: PlanOfRecord[];
}

import {
    Check, Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn,
} from "typeorm";
import { Block } from "./Block";

// @Entity({ synchronize: false })
@Entity({ synchronize: true })
@Index(["block", "softwareComponent", "module", "module_sku ", "isSafety"], { unique: true })
// Enable sync will sometimes cause planOfRecord column become null
@Check(`"planOfRecord" IN ('NOT_POR', 'POR_BUT_PROD_VAL', 'POR_BUT_RESET_VAL')`)
export class PlanOfRecord {
    @PrimaryGeneratedColumn()
    public id?: number;

    @Column()
    @Index()
    public module: string;

    @Column({type: "int"})
    @Index()
    public module_sku: number;

    @Column()
    @Index()
    public softwareComponent: string;

    @Column()
    @Index()
    public isSafety: boolean;

    @Column({nullable: true})
    @Index()
    public planOfRecord: string;

    @Column({nullable: true})
    @Index()
    public owner: string;

    @Column({nullable: true})
    public comment: string;

    @ManyToOne((type) => Block, (block) => block.plan_of_records)
    public block: Block;
}

Got error UnhandledPromiseRejectionWarning: Error: Index contains column that is missing in the entity (PlanOfRecord): module_sku.

created time in a month

fork wy193777/typeorm

ORM for TypeScript and JavaScript (ES7, ES6, ES5). Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.

http://typeorm.io

fork in a month

push eventwy193777/azure-cli-docker

Shenghan Gao

commit sha a73a39a18512ac4eedb067a8f6a13b5f1d4edb74

Fix pip install issue Fix pip install issue

view details

push time in a month

startedlabuladong/fucking-algorithm

started time in 2 months

issue commentsideway/joi

Got type error after upgrade from @hapi/joi 17.1 to joi 17.2

The problem is on my code. But it's a little bit hard with this kind of error stack trace.

wy193777

comment created time in 2 months

issue commentsideway/joi

Got type error after upgrade from @hapi/joi 17.1 to joi 17.2

After change @type/hapi__hapi's type file, I got the following error, do you have any idea on how to debug it? I don't know if this a problem on my code or on hapi itself.

.\Backend\node_modules\@hapi\hoek\lib\error.js:23
            Error.captureStackTrace(this, exports.assert);
                  ^
Error: Schema can only contain plain objects
    at new module.exports (.\Backend\node_modules\@hapi\hoek\lib\error.js:23:19)
    at module.exports (.\Backend\node_modules\@hapi\hoek\lib\assert.js:20:11)
    at Object.internals.schema (.\Backend\node_modules\joi\lib\compile.js:87:5)
    at Object.exports.schema (.\Backend\node_modules\joi\lib\compile.js:16:26)
    at internals.Base.$_compile (.\Backend\node_modules\joi\lib\base.js:645:24)
    at .\Backend\node_modules\joi\lib\types\keys.js:256:92
    at Object.exports.tryWithPath (.\Backend\node_modules\joi\lib\common.js:176:16)
    at internals.Base.method [as keys] (.\Backend\node_modules\joi\lib\types\keys.js:256:32)
    at Object.internals.schema (.\Backend\node_modules\joi\lib\compile.js:89:25)
    at Object.exports.schema (.\Backend\node_modules\joi\lib\compile.js:16:26)
wy193777

comment created time in 2 months

fork wy193777/hoek

Node utilities shared among the extended hapi universe

fork in 2 months

push eventwy193777/DefinitelyTyped

Shenghan Gao

commit sha 796a7104eae31b6c96e93809be30fd8e5f4c6ef7

remove package.json change

view details

push time in 2 months

PR opened DefinitelyTyped/DefinitelyTyped

use joi instead of hapi/joi as dependency

Please fill in this template.

  • [x] Use a meaningful title for the pull request. Include the name of the package modified.
  • [x] Test the change in your own code. (Compile and run.)
  • [x] Add or edit tests to reflect the change. (Run with npm test.)
  • [x] Follow the advice from the readme.
  • [x] Avoid common mistakes.
  • [x] Run npm run lint package-name (or tsc if no tslint.json is present).

Select one of these and delete the others:

If adding a new definition:

  • [ ] The package does not already provide its own types, or cannot have its .d.ts files generated via --declaration
  • [ ] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.
  • [ ] Create it with dts-gen --dt, not by basing it on an existing project.
  • [ ] Represents shape of module/library correctly
  • [ ] tslint.json should be present and it shouldn't have any additional or disabling of rules. Just content as { "extends": "dtslint/dt.json" }. If for reason the some rule need to be disabled, disable it for that line using // tslint:disable-next-line [ruleName] and not for whole package so that the need for disabling can be reviewed.
  • [ ] tsconfig.json should have noImplicitAny, noImplicitThis, strictNullChecks, and strictFunctionTypes set to true.

If changing an existing definition:

  • [x] Provide a URL to documentation or source code which provides context for the suggested changes: <https://github.com/sideway/joi/issues/2411>
  • [x] If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the header.
  • [x] Include tests for your changes
  • [ ] If you are making substantial changes, consider adding a tslint.json containing { "extends": "dtslint/dt.json" }. If for reason the any rule need to be disabled, disable it for that line using // tslint:disable-next-line [ruleName] and not for whole package so that the need for disabling can be reviewed.

If removing a declaration:

  • [ ] If a package was never on Definitely Typed, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.)
  • [ ] Delete the package's directory.
  • [ ] Add it to notNeededPackages.json.
+5 -4

0 comment

3 changed files

pr created time in 2 months

push eventwy193777/DefinitelyTyped

Shenghan Gao

commit sha 652c2f86e0957de2529677c4e435f140c79e8761

fix tests

view details

push time in 2 months

create barnchwy193777/DefinitelyTyped

branch : hapi-20-migration

created branch time in 2 months

push eventwy193777/DefinitelyTyped

Joachim Van Herwegen

commit sha 3f4cdc5fb7b8291e3dab98884bf12a8f8cfc467a

Add arrayify-stream typings (#45445)

view details

Martin Seidel

commit sha 7f7d42fd343029731afa6de5dad892a0826fbf81

Updated GraphQL dependency to v15 (#45442)

view details

Jasper

commit sha f3227e802f6bf0bafdaf31a8474fa4b750bd45e6

Use correct data structures for Config and Options in IPAM definition (#45441) Co-authored-by: Jasper Jansen <jansen@voltolabs.com>

view details

Maxim Mazurok

commit sha 091e5c7fa23d60d829bf06d2389fb9ea96dde793

automatic gapi.client.classroom update @ Fri, 12 Jun 2020 03:14:51 GMT (#45165)

view details

Piotr Błażejewicz (Peter Blazejewicz)

commit sha f630fa696e0479cbf1a8f2760cdfe90b8b1256eb

feat(webpack-livereload-plugin) new type definition (#45319) - definitiion file - tests https://www.npmjs.com/package/webpack-livereload-plugin https://www.npmjs.com/package/webpack-livereload-plugin#options Thanks!

view details

Thorsten Hoeger

commit sha 3eff5b53d4aaffff945399c14f5ff2bd80f29266

Allow more types for JWT claims in API Gateway request (#45320)

view details

Junxiao Shi

commit sha dcd7613ded6d5d879b7cecab88a026cb9fee548b

@root/asn1: initial definition (#45321)

view details

Tejesh Mehta

commit sha dd707289fcc45fb02c0d56425a603d2520ee504d

[rethinkdb] Add missing promise types for cursor.next() (#45204)

view details

Christian

commit sha 07d88fbb9ebc574ef4a609cdabc86bf9bad41667

Recoil utility types (#45206)

view details

Alexey Babich

commit sha 866aa4eaf3aff5d8b72a52345c0948fb6b5a8fc6

[clean-css] move semicolonAfterLastProperty to FormatOptions (#45111) * [clean-css] move semicolonAfterLastProperty to FormatOptions * Add declare keyword to all interfaces * Format test * Revert "Format test" This reverts commit 70cd4b6cd15ec59703d2bcb9f909a9d86b658080. * remove declare

view details

schl3ck

commit sha aeb9e5ab33609161c8e3dad287980040b51c850c

[scriptable-ios] Updated typings for iOS app version 1.4.11 (#45216)

view details

AlCalzone

commit sha d3ce8bd4d0f081d86ae821d151e228ea39f8de39

[iobroker] add defAck flag to StateCommon (#45213)

view details

Siarhei Pakhuta

commit sha a292e6b8445cfc36b16f7f4eb05760442ea483d9

update (redux-saga-tester): minor change (#45325) Add return type for "sagaTester.waitFor" method https://github.com/wix/redux-saga-tester/pull/49/commits/13c0f044012189ef78cda88883d63332f73df34e#diff-04c6e90faac2675aa89e2176d2eec7d8R163

view details

Piotr Błażejewicz (Peter Blazejewicz)

commit sha 738491c9cbc45b98c1590684564670eceadbeed9

feat(wepback-stats-plugin): new definition (#45328) - definition file - tests https://github.com/FormidableLabs/webpack-stats-plugin#webpack-stats-plugin https://github.com/FormidableLabs/webpack-stats-plugin#basic https://github.com/FormidableLabs/webpack-stats-plugin#custom-stats-configuration https://github.com/FormidableLabs/webpack-stats-plugin#custom-transform-function Thanks!

view details

Leo Toneff

commit sha a586263e8914d6460e5bb9c7047ee3ab82c33fb7

Add @styled-system/core typings (#45332) * Added @styled-system/core typings * fixed path in tsconfig * added csstype to package.json * changed project url

view details

Rishi Kodali

commit sha a9afdd9eb6fadb87c7f7ff681627fe2da0616abe

Add types for passport-spotify (#45335)

view details

Jakub Wieczorek

commit sha b9418476d9966d7c59e1bff3e50799d1885efb13

🤖 Merge PR #45029 [@types/backbone] [backbone-1.4] Add iterator methods to `Backbone.Collection` by @jakubadamw

view details

nguyenhoamy1602

commit sha c43606f3b6da40b4c6fdbdf292c534616dc8da63

Add chrome.input.ime.AssistiveWindow* types (#45227)

view details

Soc Sieng

commit sha 5ac9741a69c407f5917ab8c8b11fef88bdbe11f8

[googlepay] Make direct tokenization specification parameters explicit (#45250)

view details

Andy Katz

commit sha e3313c33a10b59c1515074d045d31fd463e79098

🤖 Merge PR #45217 [draft-js] Use index signature for raw block data object by @katz12

view details

push time in 2 months

issue commentsideway/joi

Got type error after upgrade from @hapi/joi 17.1 to joi 17.2

Other @hapi/xxx projects also use @hapi/hapi__joi as a dependency, I guess everyone of them need to be fixed?

wy193777

comment created time in 2 months

issue commentsideway/joi

Got type error after upgrade from @hapi/joi 17.1 to joi 17.2

I already uninstalled @type/hapi__joi. But seems query -> RouteOptionsResponseSchema -> Schema still comes from @type/hapi__joi.

wy193777

comment created time in 2 months

issue openedsideway/joi

Got type error after upgrade from @hapi/joi 17.1 to joi 17.2

<!-- ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ You must complete this entire issue template to receive support. You MUST NOT remove, change, or replace the template with your own format. A missing or incomplete report will cause your issue to be closed without comment. Please respect the time and experience that went into this template. It is here for a reason. Thank you! ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ -->

Support plan

<!-- We are here to help!

Community based support is, by its nature, limited to available community members able to help. Most community support issues are resolved within 2 weeks. Before submitting an issue, please review the various support options available at https://hapi.dev/support/. That page includes useful information about different ways to ask questions. -->

  • is this issue currently blocking your project? (yes/no): No.
  • is this issue affecting a production system? (yes/no): No.

Context

  • node version: 14.2.0
  • module version: 17.2.0
  • environment (e.g. node, browser, native): node
  • used with (e.g. hapi application, another framework, standalone, ...): hapi 20
  • any other relevant information:

How can we help?

Got type error on route.options.validate.query when using Joi.object() <!-- Describe your question in detail, including what you have already tried, or any configuration, schemas, code samples, or inputs needed. Make sure to wrap all code examples in backticks so that they display correctly. Before submitting an issue, make sure to click on the Preview tab above to verify everything is formatted correctly. -->

const getChipsRoute: Hapi.ServerRoute = {
  method: "GET",
  path: "/chips",
  options: {
    handler: ChipInfoController.getChips,
    tags: ["api", "chip"],
    auth: AuthStrategies.ReadStrategies,
    description: "Returns the Chip Information by registerfield id.",
    validate: {
      headers: AuthHeaderValidator,
      query: Joi.object({  // got type error here
        page_number: Joi.number().default(1),
        size: Joi.number().default(100),
        sort_by: Joi.string().default("chip_name desc"),
      }),
      failAction: FailAction,
    },
    plugins: {
      "hapi-swagger": {
        responses: {
          200: {
            description: "Record Found!!",
          },
          404: {
            description: "No Record Found!!",
          },
        },
      },
    },
  },
};

Error

Type 'ObjectSchema<{ [x: string]: ...; }>' is not assignable to type 'RouteOptionsResponseSchema'.
  Type 'ObjectSchema<{ [x: string]: ...; }>' is not assignable to type 'SchemaMap<any>'.
    Index signature is missing in type 'ObjectSchema<{ [x: string]: ...; }>'.ts(2322)
index.d.ts(1709, 5): The expected type comes from property 'query' which is declared here on type 'RouteOptionsValidate'

created time in 2 months

more