aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2022-01-13Upgrade timescaledbBruno Sakoto1-1/+1
Timescaledb is upgraded to 2.5.1-pg14 to have postgres 14.1 Issue-ID: CPS-842 Change-Id: I65f2f090c0ff7346c28bf89f6bac3d5697ec1768 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
2022-01-12Support operation field for CPS Temporal Query Output APIputhuparambil.aditya2-2/+9
- Update in openapi.yaml to support operation field - Repository test updated to test the operation field - Rest api test updated - Updates in documentation to include the operation field Issue-ID: CPS-844 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: If424c273b84b1f415ba706d0956f0841ce9c4196
2022-01-05Add NotNull DB Constraint to operation fieldRenu Kumari1-0/+4
Issue-ID: CPS-826 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I55d8d4fb9000ecf7a84b1b4aa7ec41e95420543c
2021-12-15Add support for delete operationRenu Kumari14-141/+315
- Added new column operation in DB - Updated existing rows to have 'UPDATE' value for operation field - Added ability to process both V1 and V2 event schema - Changed code and testcase to support operation field Issue-ID: CPS-790 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: Ife24daa4b442e1499094b162727cc8704c25011e
2021-08-25Prepare for next event schema versionBruno Sakoto5-11/+25
Issue-ID: CPS-584, CPS-459 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I02ce027a4222fe3178d854628a52626c8184d987
2021-08-20Add basic security to query interfaceRenu Kumari9-185/+363
- Added WebSecurity configuration and corresponding test case - Updated existing test cases to handle spring security - Moved QueryResponseFactory to QueryController to avoid cyclic dependency Issue-ID: CPS-530 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I7e03ed9ccf983090ce514873b86fc9b2f851ed4f
2021-08-19Validate controller input and provide expected responseRenu Kumari17-54/+987
- validate endpoint input - set default values if it is missing in the optional fields - used hateoas for previous and next record link generation - use service layer in controller layer Issue-ID: CPS-449 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I7936cd9e8e7dead3b5650b421bb12f10d14ffa9b
2021-08-05Merge "Fetch data filtered by Search criteria"Toine Siebelink11-15/+720
2021-08-04Fetch data filtered by Search criteriaRenu Kumari11-15/+720
Implemented Service and repository layer Issue-ID: CPS-375 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: Iedac0e48b2391a60f3eb9ab710ccdff0c9185407
2021-08-03Add Spring Boot Actuatorputhuparambil.aditya1-0/+16
Issue-ID: CPS-522 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I6bdb29dec63c409d18e84bebc51eeef5c34e1412
2021-07-28Merge "Kafka Configuration is not loaded when testing DB integration"Bruno Sakoto3-3/+10
2021-07-26Merge "generating swagger-ui and controller interface using openapi.yml"aditya puthuparambil6-72/+150
2021-07-26Kafka Configuration is not loaded when testing DB integrationRenu Kumari3-3/+10
Issue-ID: CPS-518 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I673e8b0d4fb70dcdd2024c15e04940996023b4f8
2021-07-23generating swagger-ui and controller interface using openapi.ymlRenu Kumari6-72/+150
Issue-ID: CPS-387 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I3e9742407148efcb16d8d79411e4de6738796f86
2021-07-21Review maven configuration for testcontainersBruno Sakoto2-9/+5
Maven build was not failing when test containers are not able to run because of following maven surefire plugin bug: * https://github.com/junit-team/junit5/issues/2178 * https://issues.apache.org/jira/browse/SUREFIRE-1688 This bug is fixed in surefire 3.0.0-M5. Then, 3.0.0-M4 version coming from oparent is now overridden in pom plugin management. This commit also improves spock testcontainers integration by using the appropriate spock dependency. Issue-ID: CPS-515 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I3ad902e598ece31601115d6484e520b6321ce8dd
2021-07-20Add failing event to invalid event exceptionBruno Sakoto3-9/+18
Also avoid unecessary null checks when validating the event Issue-ID: CPS-494 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I199fcf42928253bb4f44b204f72a4f46c1cc1eef
2021-07-05Add kafka listener for data updated eventsBruno Sakoto22-37/+1005
See "Running via Docker Compose" section from README.md file to have an example of event processing Issue-ID: CPS-371 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: Id3abfa32fb04e07102a5f28e6e43a9b533391188
2021-05-26Update db schema to keep field name consistent with domain propertyputhuparambil.aditya3-3/+41
Rollback need not be specified for renameColumn as per documentation: https://docs.liquibase.com/workflows/liquibase-community/using-rollback.html Issue-ID: CPS-425 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Ida1cf80e7cd180c7b713bc595105fa83f4f6b278
2021-05-17Add automatic architecture verificationBruno Sakoto2-0/+115
Introduce verification for dependencies and layers. Issue-ID: CPS-381 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I948439ee5bcba2d41ccba3028d62a728babc83da
2021-05-13Implement service and repository layers for storing temporal dataputhuparambil.aditya11-20/+336
1. Basic structure created 2. Basic tests added 3. lombok.config included for coverage Issue-ID: CPS-194 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: Icf23c2e647106f7985dff14d9901806f7c4aa55a
2021-05-06Provide docker compose for temporal serviceRishi.Chail1-1/+2
Added docker image (200Mb) Added docker compose to start with timescale db Issue-ID: CPS-359 Signed-off-by: Rishi.Chail <rishi.chail@est.tech> Change-Id: I47120edcea78730405086eca393fbc08a41e0745
2021-04-22Implement db schema with liquibaseBruno Sakoto8-1/+830
Issue-ID: CPS-193 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: Ieabee4b86bbe7a42c05bb225499487cfcc9deb1d
2021-02-25Fix sonar issuesBruno Sakoto3-3/+45
* Set minimum code coverage to 80% * Remove unsafe http method vulnerability Issue-ID: CPS-213 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I917899a093fccc4317b0fa063137ec0276311f72
2021-02-23Create application skeletonBruno Sakoto3-0/+101
This skeleton is used to start validating cps temporal jenkins jobs. Issue-ID: CPS-190 Change-Id: Iccbd4f58eaf2bd3ffaf668f4471b94581425c484 Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>