Skip to content

Commit 7d63bf6

Browse files
author
Maksym Mykhailenko
committed
Merge branch 'develop' into feature/bulk-milestone-updates
# Conflicts: # src/routes/milestones/create.js # src/routes/milestones/delete.js # src/routes/milestones/update.js
2 parents 04c61a2 + 4867b75 commit 7d63bf6

File tree

249 files changed

+9407
-8560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+9407
-8560
lines changed

.eslintrc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@
1010
"rules": {
1111
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.test.js", "**/*.spec.js", "src/tests/*.js"]}],
1212
"max-len": ["error", { "ignoreComments": true, "code": 120 }],
13+
"valid-jsdoc": ["error", {
14+
"requireReturn": true,
15+
"requireReturnType": true,
16+
"requireParamDescription": true,
17+
"requireReturnDescription": true
18+
}],
1319
"require-jsdoc": ["error", {
1420
"require": {
1521
"FunctionDeclaration": true,
1622
"MethodDefinition": true,
1723
"ClassDeclaration": true
1824
}
19-
}],
20-
"indent": 0,
21-
"no-multi-spaces": 0,
22-
"valid-jsdoc": 0
25+
}]
2326
}
2427
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ npm run data:import -- --file path/to-file.json
244244

245245
- As this commands calls topcoder services to get data like members details, so you have to provide environment variables `AUTH0_CLIENT_ID`, `AUTH0_CLIENT_SECRET`, `AUTH0_URL`, `AUTH0_AUDIENCE`, `AUTH0_PROXY_SERVER_URL`, they would automatically picked up from the `.env` file if provided.
246246

247-
- If you encounter conflicts errors during import, you may need to recreated database tables and Elasticssearch indexes by `npm run sync:all`.
247+
- If you encounter conflicts errors during import, you may need to recreated database tables and Elasticssearch indexes by `npm run local:reset`.
248248

249249
- List of models that will be imported are defined in `scripts/data/dataModels.js`. You can add new models to this list, but make sure that new models are added to list such that each model comes after its dependencies.
250250

@@ -289,7 +289,6 @@ This command for importing data uses API to create demo data. Which has a few pe
289289
| `npm run startKafkaConsumers:dev` | Start Kafka consumer app in the development mode using `nodemon`. |
290290
| `npm run test` | Run tests. |
291291
| `npm run test:watch` | Run tests and re-run them on changes (not useful now as it re-runs all the test). |
292-
| `npm run reset:all` | Recreate Database and Elasticsearch indexes (removes any existent data). |
293292
| `npm run reset:db` | Recreate Database schemas (removes any existent data). |
294293
| `npm run reset:es` | Recreate Elasticsearch indexes (removes any existent data). |
295294
| `npm run import-from-api` | Import Metadata from DEV environment, see [docs](#import-metadata-from-apitopcoder-devcom-deprecated). |
@@ -300,6 +299,7 @@ This command for importing data uses API to create demo data. Which has a few pe
300299
| `npm run services:down` | Stop services via docker-compose for local development. |
301300
| `npm run services:logs -- -f <service_name>` | View logs of some service inside docker-compose. |
302301
| `npm run local:init` | Recreate Database and Elasticsearch indexes and populate demo data for local development (removes any existent data). |
302+
| `npm run local:reset` | Recreate Database and Elasticsearch indexes (removes any existent data). |
303303
| `npm run babel-node-script -- <path/to/script>` | Helper command which is used by other commands to run node scripts using `babel-node` and `dotenv` so variables from `.env` file are automatically applied. |
304304
| `npm run generate:doc:permissions` | Generate [permissions.html](docs/permissions.html) which later can be viewed by [link](https://htmlpreview.github.io/?https://github.com/topcoder-platform/tc-project-service/blob/develop/docs/permissions.html). |
305305
| `npm run generate:doc:permissions:dev` | Generate [permissions.html](docs/permissions.html) on any changes (useful during development). |

docs/guides/permissions-guide/permissions-guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ Let's say you would like to add a new place in code where you want to check user
3636

3737
- Follow the guides on how to add a new permission in the header of this file.
3838

39-
3. After you add a new permission, regenerate [permissions list](https://htmlpreview.github.io/?https://github.com/topcoder-platform/tc-project-service/blob/develop/docs/permissions.html) by running `npm run generate:doc:permissions`.
40-
41-
4. There are 2 places where you would usually check permissions:
39+
3. There are 2 places where you would usually check permissions:
4240
1. Check if user can call some endpoint (https://github.com/topcoder-platform/tc-project-service/blob/develop/src/permissions/index.js):
4341

4442
```js
@@ -69,6 +67,8 @@ Let's say you would like to add a new place in code where you want to check user
6967
}
7068
```
7169

70+
4. After you've added all the new permissions you wanted, regenerate [permissions list](https://htmlpreview.github.io/?https://github.com/topcoder-platform/tc-project-service/blob/develop/docs/permissions.html) by running `npm run generate:doc:permissions`. Or run `npm run generate:doc:permissions:dev` which would automatically regenerate HTML file on every change - very useful during development.
71+
7272
## References
7373
7474
- [Permissions list](https://htmlpreview.github.io/?https://github.com/topcoder-platform/tc-project-service/blob/develop/docs/permissions.html)

0 commit comments

Comments
 (0)