Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
163df8c
Readme file added (#1)
mahimaeg Jun 5, 2023
d5ca79d
Removed unnecessary dependencies from pom.xml (#2)
swetatech24 Jun 7, 2023
03bf370
updated code-of-conduct, copying, contributing, readme (#3)
swetatech24 Jun 8, 2023
eccad20
modified .gitignore file (#4)
Vidyaaa24 Jun 9, 2023
814fa93
code smell fixes (#6)
swetatech24 Jun 14, 2023
d7828f6
Added copyright text (#7)
Anjana2310 Jun 15, 2023
dd0ec15
code smell fix (#8)
swetatech24 Jun 15, 2023
c9c75f4
Swagger changes (#9)
Anjana2310 Jun 15, 2023
4e28fe2
Code smell fix (#10)
swetatech24 Jun 16, 2023
4a81aed
code smell fixes (#11)
swetatech24 Jun 20, 2023
bba7258
Create sast-and-package-prod.yml (#12)
Vidyaaa24 Jun 21, 2023
29d3a17
Code smell changes (#13)
swetatech24 Jun 21, 2023
53a5cd3
Update README.md
harimohanr Jun 21, 2023
15b5356
code smell fixes
swetatech24 Jun 22, 2023
8a0c9d5
Merge pull request #14 from swetatech24/codesmells
Vidyaaa24 Jun 22, 2023
8a24b2f
Added environment variable
Anjana2310 Jun 23, 2023
fd58711
Merge pull request #15 from PSMRI/flow
ravishanigarapu Jun 23, 2023
d58d096
Added password changes & edit environment variable (#16)
Anjana2310 Jun 26, 2023
97d4b37
Passing environment variable
Anjana2310 Jun 27, 2023
dc537c8
Passing environment variable (#17)
Anjana2310 Jun 27, 2023
4c515e5
Passing environment variable
Anjana2310 Jun 27, 2023
431db69
Merge pull request #18 from Anjana2310/develop
Vidyaaa24 Jun 27, 2023
f0851e1
Passing environment variable (#19)
Anjana2310 Jun 27, 2023
8e70c6e
Passing environment variable (#20)
Anjana2310 Jun 28, 2023
4762e25
Workflow change (#21)
Vidyaaa24 Jun 30, 2023
1fdeb90
CreatedDate filed for Identity (#22)
mukul5947 Jun 30, 2023
957e8eb
Send SMS null Id issue (#23)
mukul5947 Jul 10, 2023
ff279d4
mmu cr changes
Jul 11, 2023
8e2bb8a
update changes
ravishanigarapu Jul 12, 2023
69dcafc
Merge pull request #24 from ravishanigarapu/develop
devikasuresh20 Jul 12, 2023
8f703c9
Merge branch 'PSMRI:develop' into develop
indraniBan Jul 13, 2023
55922d5
changes mmu cr
Jul 17, 2023
b155b95
Merge pull request #25 from indraniBan/develop
devikasuresh20 Jul 27, 2023
6bc0ead
Update sast-and-package-prod.yml (#26)
Vidyaaa24 Aug 1, 2023
78290a0
edit api changes
Aug 3, 2023
5b754e8
Identity API cleanup and password masking
Anjana2310 Aug 4, 2023
e0148c5
Merge pull request #28 from Anjana2310/develop
Vidyaaa24 Aug 7, 2023
8b4e2fd
Updated the language option for codeql and added maven test
sunil-beehyv Aug 8, 2023
cf0d92e
Added CodeQl tool to do static code analysis on pull request
sunil-beehyv Aug 8, 2023
26f807b
Merge pull request #1 from beehyv/pipeline
roopesh-beehyv Aug 8, 2023
e61c872
Merge pull request #27 from indraniBan/develop
helenKaryamsetty Aug 10, 2023
67fc78b
Implementing Basic reverse sync operation
babs93 Aug 11, 2023
c3611d9
Fix issue on controller
babs93 Aug 16, 2023
1cd247c
Merge pull request #2 from beehyv/develop_babs
roopesh-beehyv Aug 17, 2023
8d6a700
Updated the language option for codeql and added maven test
sunil-beehyv Aug 8, 2023
6a9f5d8
Added CodeQl tool to do static code analysis on pull request
sunil-beehyv Aug 8, 2023
65a25fb
Implementing Basic reverse sync operation
babs93 Aug 11, 2023
b32ed99
Fix issue on controller
babs93 Aug 16, 2023
21b700f
Identity API cleanup and password masking
Anjana2310 Aug 4, 2023
c482471
edit api changes
Aug 3, 2023
765d02c
Merge pull request #3 from beehyv/confiltResole
roopesh-beehyv Aug 22, 2023
4bd5c8c
Merge pull request #29 from beehyv/develop
devikasuresh20 Aug 25, 2023
1d442c3
change made in description of identity controller (#30)
Vidyaaa24 Sep 4, 2023
c371f5f
Multiple beneficiaries sync issue changes for FLW (#31)
devikasuresh20 Sep 12, 2023
841b5c4
Delete .github/workflows/sast-and-package-prod.yml
Vidyaaa24 Sep 15, 2023
6f7f089
Delete .github/workflows/sast-and-package.yml
Vidyaaa24 Sep 15, 2023
f1973f3
Create package-prod.yml
Vidyaaa24 Sep 15, 2023
d5a3d40
Create package.yml
Vidyaaa24 Sep 15, 2023
05eaa5f
Create sast.yml
Vidyaaa24 Sep 15, 2023
c808596
Use a logger to log this exception (#32)
swetatech24 Oct 5, 2023
7f09523
Added Pull Request template, added placeholders in properties file, a…
swetatech24 Oct 6, 2023
212697b
Merge branch 'develop' of https://github.com/PSMRI/Identity-API into
ravishanigarapu Oct 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

# Type of change

- [ ] Bug fix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Documentation
- [ ] Other ( please specify )

# How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

- [ ] Test A
- [ ] Test B

# Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] Any dependent changes have been merged and published in downstream modules


43 changes: 27 additions & 16 deletions .github/workflows/build-on-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
name: Build On Pull Request
name: Build and Static Code Analysis On Pull Request
on:
pull_request:
branches: [ "master","develop" ]

branches: [ "develop" ]
jobs:
Build:
Build_and_analyse:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Setup JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'
- name: Build with Maven
run: mvn clean install
- name: Setup JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'

- name: Test with Maven
run: mvn test

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: Java

- name: Build with Maven
run: mvn clean install

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
41 changes: 41 additions & 0 deletions .github/workflows/package-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Package-prod

on:
push:
branches: [ "master"]
paths-ignore:
- target/**

pull_request:
branches: [ "master" ]
paths-ignore:
- target/**

env:
ENV_VAR: prod

jobs:
Package-prod:
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v3

- name: Setup JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'

- name: Build with Maven
run: mvn clean install -DENV_VAR=${{ env.ENV_VAR }}

- name: Create WAR file
run: mvn -B package --file pom.xml

- name: Upload WAR file as artifact
uses: actions/upload-artifact@v2
with:
name: Identity-API
path: target/identity-0.0.1.war
50 changes: 50 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

name: Package

on:
push:
branches: [ "develop"]
paths-ignore:
- target/**

pull_request:
branches: [ "develop" ]
paths-ignore:
- target/**

env:
ENV_VAR: test

jobs:
Package-test:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
steps:

- name: Checkout code
uses: actions/checkout@v2

- name: Setup JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'


- name: Build with Maven
run: mvn clean install -DENV_VAR=${{ env.ENV_VAR }}

- name: Build WAR file
run: mvn -B package --file pom.xml

- name: Upload WAR file as artifact
uses: actions/upload-artifact@v2
with:
name: Identity-API
path: target/identity-0.0.1.war
49 changes: 23 additions & 26 deletions .github/workflows/sast-and-package.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
name: Static Code Analysis and Packaging
name: Package

on:
push:
branches: [ "master","develop" ]

branches: [ "develop"]
paths-ignore:
- target/**

pull_request:
branches: [ "develop" ]
paths-ignore:
- target/**

env:
ENV_VAR: test

jobs:
CodeQL:
Package-test:
runs-on: ubuntu-latest
permissions:
actions: read
Expand All @@ -14,37 +25,23 @@ jobs:
strategy:
fail-fast: false
steps:

- name: Checkout code
uses: actions/checkout@v2

- name: Setup JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: Java


- name: Build with Maven
run: mvn clean install
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
languages: Java

Packaging:
needs: codeql
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'
- name: Create WAR file
run: mvn clean install -DENV_VAR=${{ env.ENV_VAR }}

- name: Build WAR file
run: mvn -B package --file pom.xml

- name: Upload WAR file as artifact
uses: actions/upload-artifact@v2
with:
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/sast.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CodeQL

on:
push:
branches: [ "develop" ]
paths-ignore:
- target/**

pull_request:
branches: [ "develop" ]
paths-ignore:
- target/**

jobs:
analyze:
name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'java' ]

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2

- name: Setup JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'

- name: Build with Maven
run: mvn clean install

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ nbdist/
mvnw
mvnw.cmd
.mvn

# Properties
src/main/environment/1097_local.properties
src/main/environment/common_local.properties
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# AMRIT - Identity Service
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) ![branch parameter](https://github.com/PSMRI/Identity-API/actions/workflows/sast-and-package.yml/badge.svg)

Identity API is a microservice which is used for the creation and management of beneficaries.

Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
<m2e.apt.activation>jdt_apt</m2e.apt.activation>
<org.mapstruct.version>1.2.0.Final</org.mapstruct.version>
<org.projectlombok.version>1.16.18</org.projectlombok.version>
<environment>dev</environment>
<environment>${ENV_VAR}</environment>
<target-properties>target/classes/application.properties</target-properties>
<source-properties>src/main/environment/common_${environment}.properties</source-properties>
<maven.test.skip>true</maven.test.skip>
<sonar.java.binaries>target</sonar.java.binaries>
</properties>
<dependencies>
<dependency>
Expand Down
6 changes: 3 additions & 3 deletions src/main/environment/1097_dev.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# DataSource settings: set here your own configurations for the database

spring.datasource.url=jdbc:mysql://10.208.122.32:3306/db_1097_identity?autoReconnect=true&useSSL=false
encDbUserName=0YaEPoKpzM3TrEAHTLYQaf+DfR4mdaeP
encDbPass=V+g/nL6/+ely0bgD7Du0yX83xNRl1H9Y
spring.datasource.url=<Enter AMRIT DB_1097_IDENTITY URL here>
spring.datasource.username=<Enter your AMRIT DB_1097_IDENTITY username>
spring.datasource.password=<Enter your AMRIT DB_1097_IDENTITY password>
spring.datasource.driver-class-name=com.mysql.jdbc.Driver


6 changes: 3 additions & 3 deletions src/main/environment/1097_local.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# DataSource settings: set here your own configurations for the database

spring.datasource.url=jdbc:mysql://localhost:3306/db_1097_identity?autoReconnect=true&useSSL=false
encDbUserName=DSekNOtG9a+qythoUDNKuw==
encDbPass=DSekNOtG9a+qythoUDNKuw==
spring.datasource.url=<Enter AMRIT DB_1097_IDENTITY URL here>
spring.datasource.username=<Enter your AMRIT DB_1097_IDENTITY username>
spring.datasource.password=<Enter your AMRIT DB_1097_IDENTITY password>
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
6 changes: 3 additions & 3 deletions src/main/environment/1097_test.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# DataSource settings: set here your own configurations for the database

spring.datasource.url=jdbc:mysql://10.208.122.38:3306/db_1097_identity?autoReconnect=true&useSSL=false
encDbUserName=0YaEPoKpzM3TrEAHTLYQaf+DfR4mdaeP
encDbPass=V+g/nL6/+ely0bgD7Du0yX83xNRl1H9Y
spring.datasource.url=<Enter AMRIT DB_1097_IDENTITY URL here>
spring.datasource.username=<Enter your AMRIT DB_1097_IDENTITY username>
spring.datasource.password=<Enter your AMRIT DB_1097_IDENTITY password>
spring.datasource.driver-class-name=com.mysql.jdbc.Driver


6 changes: 3 additions & 3 deletions src/main/environment/1097_uat.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# DataSource settings: set here your own configurations for the database

spring.datasource.url=jdbc:mysql://172.16.19.43:3306/db_1097_identity?autoReconnect=true&useSSL=false
encDbUserName=0YaEPoKpzM3TrEAHTLYQaf+DfR4mdaeP
encDbPass=V+g/nL6/+ely0bgD7Du0yX83xNRl1H9Y
spring.datasource.url=<Enter AMRIT DB_1097_IDENTITY URL here>
spring.datasource.username=<Enter your AMRIT DB_1097_IDENTITY username>
spring.datasource.password=<Enter your AMRIT DB_1097_IDENTITY password>
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
6 changes: 3 additions & 3 deletions src/main/environment/common_dev.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# DataSource settings: set here your own configurations for the database
spring.datasource.url=jdbc:mysql://10.208.122.32:3306/db_identity?autoReconnect=true&useSSL=false
encDbUserName=0YaEPoKpzM3TrEAHTLYQaf+DfR4mdaeP
encDbPass=V+g/nL6/+ely0bgD7Du0yX83xNRl1H9Y
spring.datasource.url=<Enter AMRIT DB_IDENTITY URL here>
spring.datasource.username=<Enter your AMRIT DB_IDENTITY username>
spring.datasource.password=<Enter your AMRIT DB_IDENTITY password>
spring.datasource.driver-class-name=com.mysql.jdbc.Driver


6 changes: 3 additions & 3 deletions src/main/environment/common_local.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# DataSource settings: set here your own configurations for the database
spring.datasource.url=jdbc:mysql://localhost:3306/db_identity?autoReconnect=true&useSSL=false
encDbUserName=DSekNOtG9a+qythoUDNKuw==
encDbPass=DSekNOtG9a+qythoUDNKuw==
spring.datasource.url=<Enter AMRIT DB_IDENTITY URL here>
spring.datasource.username=<Enter your AMRIT DB_IDENTITY username>
spring.datasource.password=<Enter your AMRIT DB_IDENTITY password>
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
Loading