Skip to content

Syncing master with v5 changes #431

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

Merged
merged 108 commits into from
Dec 19, 2019
Merged

Syncing master with v5 changes #431

merged 108 commits into from
Dec 19, 2019

Conversation

vikasrohit
Copy link

This would trigger the production build.

sharathkumaranbu and others added 30 commits June 5, 2019 23:59
- added missing CRUD endpoints for attachments and project members
- removed usage of direct API in favour of a separate "legacy-project-processor"
- removed DB endpoints for projects, phases and phaseProducts

Excluded files:
- package.json (changed repo)
- .circleci/config.yml (build specific in another repo)
Merge changes from 'dev' branch
…acters

Some query params may have special characters thus got encoded client-side.
So I'm reverting code which uses "decodeURIComponent" to decode such query params.

TODO: we might replace custom logic for decoding **some** query params with an automatic mechanism to decode **all** query params.
- filter orgConfigs data from ES
- add unit tests for the changes
- removed legacy DB endpoints
- removed degenerated cases for checking body without "param"
- added request to get a timeline by id from DB
- bring back firing Kafka events for Notification Service
- bring back unit tests for these events
- added some new unit tests for events
- fixed and improved some unit tests for events in "v5-upgrade" and "dev"
ElasticSearch by default refreshes indexes at a interval of 1 second.
There are chances that some newly added or updated documents
are not available during test and some deleted documents still exist for
a while, which results in random test failures.

The solution contains two parts:
1. refresh the indices before making get/search requests to ES server
to make sure that all ES data are visible.
2. Before some of the test cases, clear all ES data created by the previous test cases.
fix: fix unit tests so they don’t fail randomly.
- fixed response format and removed "ResponseMetadata" definition
- send "original" in PROJECT_UPDATED event as it's required for generating BUS API events
- as now all the data is stored in ES, to keep this test work we have to clean ES, so the data is retrieved from DB as unit test only prepare data in DB for testing
Vikas Agarwal and others added 29 commits November 21, 2019 11:18
Easy Local Setup of Project Service with Connect App using docker-compose.
# Conflicts:
#	package.json
#	src/models/project.js
#	src/permissions/index.js
#	src/routes/index.js
#	src/routes/projectMemberInvites/create.js
#	src/routes/projectMemberInvites/get.js
#	src/routes/projectMemberInvites/update.js
#	src/routes/projectMembers/get.js
#	src/routes/projectMembers/list.js
#	src/routes/projects/get.js
#	src/routes/projects/list-db.js
#	src/routes/projects/list.js
#	src/util.js
# Conflicts:
#	src/routes/projectMemberInvites/create.js
fix project data in DB for ES
# Conflicts:
#	src/routes/projectMembers/update.js
This issues happened during merging dev into v5
- it should return all the projects, not only the one with invites
- invites should be returned not only "pending", but also "requested"
Without this fix, endpoints for getting a list of members and invites, return only 3 records.
use correct Kafka event names
Updated circleci config to deploy to new v5 cluster from now on from tc-project-service instead of projects-api. We want to keep the tc-project-service as main repo for future work because we don't want to loose the history of the api. We would deprecate the projects-api repo very soon.
Syncing V5 changes into new develop branch
@vikasrohit vikasrohit merged commit 4b1bf7c into master Dec 19, 2019
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.

10 participants