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

ESLint warnings when generating a new reactive Gateway with OAuth #11816

Closed
mraible opened this issue May 19, 2020 · 0 comments · Fixed by #11820
Closed

ESLint warnings when generating a new reactive Gateway with OAuth #11816

mraible opened this issue May 19, 2020 · 0 comments · Fixed by #11820

Comments

@mraible
Copy link
Contributor

mraible commented May 19, 2020

Overview of the issue

Normally, I wouldn't care, but there's a desktop notification that pops up during the build.

[INFO] /Users/mraible/apps/gateway/src/main/webapp/app/core/user/user.service.ts
[INFO]   3:22  warning  'of' is defined but never used         @typescript-eslint/no-unused-vars
[INFO]   8:10  warning  'Authority' is defined but never used  @typescript-eslint/no-unused-vars
Motivation for or Use Case

A brand new app should not have warnings out-of-the-box.

Reproduce the error

Create a Microservice App with the following JDL and compile the TS in the gateway app.

JHipster Version(s)
[email protected] /Users/mraible/apps/gateway
└── [email protected]

JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "generator-jhipster": {
    "authenticationType": "oauth2",
    "cacheProvider": "no",
    "clientFramework": "angularX",
    "serverPort": "8080",
    "serviceDiscoveryType": "eureka",
    "skipUserManagement": true,
    "baseName": "gateway",
    "buildTool": "maven",
    "databaseType": "neo4j",
    "devDatabaseType": "neo4j",
    "enableHibernateCache": false,
    "enableSwaggerCodegen": false,
    "enableTranslation": true,
    "jhiPrefix": "jhi",
    "languages": ["en", "fr"],
    "messageBroker": false,
    "nativeLanguage": "en",
    "prodDatabaseType": "neo4j",
    "searchEngine": false,
    "skipClient": false,
    "testFrameworks": ["protractor"],
    "websocket": false,
    "reactive": true,
    "packageName": "com.okta.developer.gateway",
    "packageFolder": "com/okta/developer/gateway",
    "applicationType": "gateway",
    "jhipsterVersion": "6.9.0",
    "creationTimestamp": 1589844000553,
    "skipServer": false,
    "clientPackageManager": "npm",
    "clientTheme": "none",
    "clientThemeVariant": "",
    "useSass": true,
    "embeddableLaunchScript": false,
    "entitySuffix": "",
    "dtoSuffix": "DTO",
    "otherModules": [],
    "blueprints": []
  },
  "entities": ["Blog", "Post", "Tag", "Product"]
}
JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions
entity Blog {
  name String required minlength(3),
  handle String required minlength(2)
}
entity Post {
  title String required,
  content TextBlob required,
  date Instant required
}
entity Tag {
  name String required minlength(2)
}
entity Product {
  title String required,
  price BigDecimal required min(0),
  image ImageBlob
}
relationship ManyToOne {
  Blog{user(login)} to User,
  Post{blog(name)} to Blog
}
relationship ManyToMany {
  Post{tag(name)} to Tag{post}
}

microservice Blog, Post, Tag with blog
microservice Product with store
paginate Post, Tag with infinite-scroll
paginate Product with pagination

Environment and Tools

openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.5+10, mixed mode)

git version 2.24.2 (Apple Git-127)

node: v12.16.3

npm: 6.14.4

yeoman: 3.1.1

yarn: 1.22.4

Docker version 19.03.8, build afacb8b

docker-compose version 1.25.5, build 8a1c60f6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants