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

Expose Store and ObjectRepository #2529

Merged
merged 9 commits into from
May 7, 2024
Prev Previous commit
Next Next commit
chore(eslint): merge both configs in one
fmauNeko committed May 6, 2024

Verified

This commit was signed with the committer’s verified signature. The key has been revoked.
fmauNeko Florian Maunier
commit 3129fde6f3a2075c81024a89391787b07de8156a
8 changes: 0 additions & 8 deletions .eslintc-ts.json

This file was deleted.

19 changes: 10 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"plugins": [
"kuzzle"
],
"extends": [
"plugin:kuzzle/default",
"plugin:kuzzle/node"
],
"plugins": ["kuzzle"],
"extends": ["plugin:kuzzle/default", "plugin:kuzzle/node"],
"rules": {
"sort-keys": "warn",
"kuzzle/array-foreach": "warn"
}
}
},
"overrides": [
{
"files": ["*.ts"],
"extends": ["plugin:kuzzle/typescript"]
}
]
}
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -21,9 +21,7 @@
"test:functional:legacy": "npm run test:functional:legacy:http && npm run test:functional:legacy:websocket && npm run test:functional:legacy:mqtt",
"test:functional:websocket": "KUZZLE_PROTOCOL=websocket cucumber-js --profile websocket",
"test:functional": "npm run test:functional:http && npm run test:functional:websocket && npm run test:functional:jest",
"test:lint:js": "eslint ./lib ./test ./bin ./features ./plugins/available/functional-test-plugin",
"test:lint:ts": "eslint ./lib --ext .ts --config .eslintc-ts.json",
"test:lint": "npm run test:lint:js && npm run test:lint:ts",
"test:lint": "eslint ./lib ./test ./bin ./features ./plugins/available/functional-test-plugin",
"test:unit": "DEBUG= npx --node-arg=--trace-warnings mocha --exit",
"test": "npm run clean && npm run --silent test:lint && npm run build && npm run test:unit:coverage && npm run test:functional"
},

Unchanged files with check annotations Beta

if (this.config.configs) {
this.log.ok("Configuration files loaded:");
this.config.configs.forEach((f) => this.log.print(`\t- ${f}`));

Check warning on line 65 in bin/.upgrades/lib/context.js

GitHub Actions / Lint - Node.js LTS 16

Prefer for...of instead of Array.forEach

Check warning on line 65 in bin/.upgrades/lib/context.js

GitHub Actions / Lint - Node.js LTS 20

Prefer for...of instead of Array.forEach

Check warning on line 65 in bin/.upgrades/lib/context.js

GitHub Actions / Lint - Node.js LTS 18

Prefer for...of instead of Array.forEach
}
this.version = await this.getVersions();
properties: {
job: { type: "keyword" },
name: { type: "keyword" },
age: { type: "integer" },

Check warning on line 10 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js LTS 16

Expected object keys to be in ascending order. 'age' should be before 'name'

Check warning on line 10 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js LTS 20

Expected object keys to be in ascending order. 'age' should be before 'name'

Check warning on line 10 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js LTS 18

Expected object keys to be in ascending order. 'age' should be before 'name'
city: { type: "keyword" },
},
},
},
"mtp-open-data": {

Check warning on line 15 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js LTS 16

Expected object keys to be in ascending order. 'mtp-open-data' should be before 'nyc-open-data'

Check warning on line 15 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js LTS 20

Expected object keys to be in ascending order. 'mtp-open-data' should be before 'nyc-open-data'

Check warning on line 15 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js LTS 18

Expected object keys to be in ascending order. 'mtp-open-data' should be before 'nyc-open-data'
"green-taxi": {
properties: {
job: { type: "keyword" },
name: { type: "keyword" },
age: { type: "integer" },

Check warning on line 20 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js LTS 16

Expected object keys to be in ascending order. 'age' should be before 'name'

Check warning on line 20 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js LTS 20

Expected object keys to be in ascending order. 'age' should be before 'name'

Check warning on line 20 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js LTS 18

Expected object keys to be in ascending order. 'age' should be before 'name'
city: { type: "keyword" },
},
},
credentials: {
local: {
username: "test-admin",
password: "password",

Check warning on line 14 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js LTS 16

Expected object keys to be in ascending order. 'password' should be before 'username'

Check warning on line 14 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js LTS 20

Expected object keys to be in ascending order. 'password' should be before 'username'

Check warning on line 14 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js LTS 18

Expected object keys to be in ascending order. 'password' should be before 'username'
},
},
},
"default-user": {

Check warning on line 18 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js LTS 16

Expected object keys to be in ascending order. 'default-user' should be before 'test-admin'

Check warning on line 18 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js LTS 20

Expected object keys to be in ascending order. 'default-user' should be before 'test-admin'

Check warning on line 18 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js LTS 18

Expected object keys to be in ascending order. 'default-user' should be before 'test-admin'
content: {
profileIds: ["default"],
},
credentials: {
local: {
username: "default-user",
password: "password",

Check warning on line 25 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js LTS 16

Expected object keys to be in ascending order. 'password' should be before 'username'

Check warning on line 25 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js LTS 20

Expected object keys to be in ascending order. 'password' should be before 'username'

Check warning on line 25 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js LTS 18

Expected object keys to be in ascending order. 'password' should be before 'username'
},
},
},
async function (username, password) {
this.props.result = await this.sdk.auth.login("local", {
username,
password,

Check warning on line 12 in features/step_definitions/auth-steps.js

GitHub Actions / Lint - Node.js LTS 16

Expected object keys to be in ascending order. 'password' should be before 'username'

Check warning on line 12 in features/step_definitions/auth-steps.js

GitHub Actions / Lint - Node.js LTS 20

Expected object keys to be in ascending order. 'password' should be before 'username'

Check warning on line 12 in features/step_definitions/auth-steps.js

GitHub Actions / Lint - Node.js LTS 18

Expected object keys to be in ascending order. 'password' should be before 'username'
});
},
);
const request = {
controller: "bulk",
action: "deleteByQuery",

Check warning on line 48 in features/step_definitions/bulk-steps.js

GitHub Actions / Lint - Node.js LTS 16

Expected object keys to be in ascending order. 'action' should be before 'controller'

Check warning on line 48 in features/step_definitions/bulk-steps.js

GitHub Actions / Lint - Node.js LTS 20

Expected object keys to be in ascending order. 'action' should be before 'controller'

Check warning on line 48 in features/step_definitions/bulk-steps.js

GitHub Actions / Lint - Node.js LTS 18

Expected object keys to be in ascending order. 'action' should be before 'controller'
index: this.props.index,
collection: this.props.collection,

Check warning on line 50 in features/step_definitions/bulk-steps.js

GitHub Actions / Lint - Node.js LTS 16

Expected object keys to be in ascending order. 'collection' should be before 'index'

Check warning on line 50 in features/step_definitions/bulk-steps.js

GitHub Actions / Lint - Node.js LTS 20

Expected object keys to be in ascending order. 'collection' should be before 'index'

Check warning on line 50 in features/step_definitions/bulk-steps.js

GitHub Actions / Lint - Node.js LTS 18

Expected object keys to be in ascending order. 'collection' should be before 'index'
refresh: "wait_for",
body: { query },
};