Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
74db1a0
Set up CI with Azure Pipelines
afesyun Sep 23, 2020
1b7571d
Rename app to app for Azure deployment automation
afesyun Sep 23, 2020
d9f8206
Add target dif to gitignore
afesyun Sep 23, 2020
0d4f977
Update CORS settigs for consistensy with other services
afesyun Sep 23, 2020
b31c376
commit prior pulling
Sep 29, 2020
86fa0d9
commit prior pulling from master
Sep 29, 2020
59e51ff
startup for research portal
Sep 30, 2020
74e0300
created service, controller, class, repository, jsonpaylod, seed data…
Oct 1, 2020
17481e9
commit prior pulling
Oct 1, 2020
51e8899
[BF-F2020-23] Passwords hashing with bcrypt implementation
afesyun Oct 4, 2020
28c7aa7
Update gitignore
afesyun Oct 4, 2020
4708daf
Merge pull request #2 from babyfeed/feature/BF-F20200-23-password-has…
mauro125 Oct 5, 2020
d51094e
Merge branch 'master' of https://github.com/babyfeed/ffq-user-service…
Oct 9, 2020
fc2963a
from research to researcher collectioin
Oct 9, 2020
57b49ef
seeding db with new researchers collection
Oct 9, 2020
b7b0a0c
Merge pull request #1 from babyfeed/research-portal
dawsonaraujo13 Oct 12, 2020
93226d0
<BF-F2020-26> Allow setting up a users limit for a clinic
afesyun Oct 16, 2020
b352e62
adding new set up for researcher parent
Oct 16, 2020
f82d895
Merge branch 'master' of https://github.com/babyfeed/ffq-user-service…
Oct 16, 2020
d6db28a
created new researcher parent class, controler, repository, service a…
Oct 16, 2020
365ec39
Merge pull request #3 from babyfeed/feature/bf-f2020-26-users-limit
mauro125 Oct 17, 2020
6d0b280
research parent
gcasa032 Oct 17, 2020
64c279f
Commit after merge
rllob003 Oct 17, 2020
d61c141
Merge remote-tracking branch 'upstream/master' into research-portal
rllob003 Oct 17, 2020
91d3332
Merge remote-tracking branch 'origin/master' into research-portal
rllob003 Oct 17, 2020
d4f623f
Merge branch 'master' of https://github.com/babyfeed/ffq-user-service…
Oct 18, 2020
79e8027
fixing conflicts
Oct 18, 2020
2f1919d
Merge pull request #5 from babyfeed/research-parent-new
Oct 18, 2020
82736fa
user implementation for research parent portal
Oct 18, 2020
951c573
Merge branch 'research-feature' of https://github.com/babyfeed/ffq-us…
Oct 18, 2020
243594d
Merge pull request #6 from babyfeed/research-parent-new
Oct 18, 2020
08e3dda
Add formatting and load research data
rllob003 Oct 18, 2020
27ae8aa
Merge branch 'research-feature' of https://github.com/babyfeed/ffq-us…
rllob003 Oct 18, 2020
348021d
fixed parent to participants, researcher to have assigned intitution,…
Oct 23, 2020
4f8ee60
Merge pull request #7 from babyfeed/research-parent-new
Oct 23, 2020
f04b8da
modifying parents to have an array of assignd researchers, and resear…
Oct 23, 2020
b49b1ac
Merge pull request #8 from babyfeed/research-parent-new
Oct 23, 2020
c2a109d
Adding users on clinician portal
afesyun Oct 26, 2020
269115d
Merge pull request #9 from babyfeed/feature/bf-f2020-26-users-limit
afesyun Oct 26, 2020
93773dd
updating
dawsonaraujo13 Oct 27, 2020
f4111bd
merge
dawsonaraujo13 Oct 27, 2020
ff73a9f
Splitting limits for clinicians and parents
afesyun Oct 29, 2020
da9b499
Merge pull request #10 from babyfeed/feature/BF-F2020-43-split-limits
mauro125 Oct 29, 2020
75b54a2
Merge branch 'research-feature' of https://github.com/babyfeed/ffq-us…
rllob003 Oct 29, 2020
29abd20
fixing controller for creation date
Oct 31, 2020
972ea03
Merge pull request #11 from babyfeed/research-parent-new
Oct 31, 2020
9f7588f
Allow clinic limits updates
afesyun Nov 1, 2020
afffb72
Merge pull request #12 from babyfeed/feature/update-limits
mauro125 Nov 1, 2020
8d802f6
Add backend to fetch participants from db
rllob003 Nov 2, 2020
dbd7599
Merge branch 'research-feature' of https://github.com/babyfeed/ffq-us…
rllob003 Nov 2, 2020
c5d314a
<BF-F2020-51> Allow to reset user's password
afesyun Nov 6, 2020
9d42db1
Merge pull request #13 from babyfeed/feature/BF-F2020-51-reset-password
mauro125 Nov 6, 2020
578a69d
clinician now has limit on how many parents it can create
mauro125 Nov 7, 2020
e725ed5
Merge pull request #14 from mauro125/master
afesyun Nov 9, 2020
abc96f5
Checking if password is set for an updated user
afesyun Nov 9, 2020
5496bf6
Merge pull request #15 from babyfeed/feature/BF-F2020-51-reset-password
mauro125 Nov 9, 2020
15b3c7f
fixed participants repository
gcasa032 Nov 9, 2020
655b6d4
missing call to track parentlimit
mauro125 Nov 9, 2020
0cf0cd2
Add backend for creating new participants in bulk and fix controllers…
rllob003 Nov 9, 2020
a33081f
Merge branch 'research-feature' of https://github.com/babyfeed/ffq-us…
rllob003 Nov 9, 2020
11f081d
Merge pull request #16 from mauro125/master
afesyun Nov 9, 2020
719e512
Added prefix to clinician
mauro125 Nov 10, 2020
4990bc9
Merge pull request #17 from mauro125/master
afesyun Nov 11, 2020
fc22d4e
new adming researcher user and institution
Nov 14, 2020
b9a93a1
Merge pull request #19 from babyfeed/adminresearchuser
Nov 15, 2020
e1e6ead
fixed conflicts
Nov 15, 2020
a0faa7d
Merge pull request #20 from babyfeed/after-merged-user-issues
rllob003 Nov 15, 2020
d9d80c5
Revert "After merged user issues: added functionality for researcher …
Nov 15, 2020
ad8293e
Merge pull request #21 from babyfeed/revert-20-after-merged-user-issues
rllob003 Nov 15, 2020
2503703
Fix participants model
afesyun Nov 15, 2020
cbebd57
before pulling
Nov 15, 2020
4ff916a
fixed conflicts
Nov 15, 2020
a362d97
fixing conflicts
Nov 15, 2020
c37c507
fixed conflicts
Nov 15, 2020
562ad92
Merge branch 'research-feature' of https://github.com/babyfeed/ffq-us…
Nov 15, 2020
3fbb239
fixed error
Nov 15, 2020
bc2c6cb
fixed error
Nov 15, 2020
0b4b2e8
Merge pull request #24 from babyfeed/after-merged-user-issues
rllob003 Nov 15, 2020
d5db383
Merge pull request #25 from babyfeed/after-merged-user-issues
Nov 15, 2020
f0e3640
Revert "After merged user issues"
Nov 15, 2020
cb79ed1
Merge pull request #26 from babyfeed/revert-25-after-merged-user-issues
Nov 15, 2020
8a7ee8a
before commit
Nov 15, 2020
c812196
committing prior pulling
Nov 15, 2020
f85f47d
Revert "Revert "After merged user issues""
Nov 15, 2020
9c32e4a
Merge pull request #28 from babyfeed/revert-26-revert-25-after-merged…
Nov 15, 2020
0141b65
fixing
Nov 15, 2020
74ebc04
before pulling
Nov 15, 2020
4647ab2
Merge branch 'master' of https://github.com/babyfeed/ffq-user-service…
Nov 15, 2020
6845e13
prior pulling
Nov 15, 2020
0bf4cd8
Reset to working version
rllob003 Nov 15, 2020
afda99c
fixed conflicts
Nov 15, 2020
2072d65
Merge pull request #29 from rllob003/research-master
Nov 15, 2020
e4a683d
fixing gitignore
Nov 15, 2020
2c0d887
Merge branch 'master' of https://github.com/babyfeed/ffq-user-service…
Nov 16, 2020
3d4fd44
Merge pull request #30 from babyfeed/final-research-user-andres
rllob003 Nov 16, 2020
d9a9d3e
Revert "Merge pull request #30 from babyfeed/final-research-user-andres"
afesyun Nov 16, 2020
c5452fb
Research portal
afesyun Nov 16, 2020
9f89bd4
Merge pull request #31 from babyfeed/research-master-copy
rllob003 Nov 16, 2020
1222870
Added fronted and backed for bulk creating of participnats. Cleanup u…
rllob003 Nov 17, 2020
09c2b79
do not load users evry time
afesyun Nov 21, 2020
32ab5b3
Fix issue with binary file user-service
rllob003 Nov 22, 2020
a71281f
Merge branch 'master' of https://github.com/babyfeed/ffq-user-service
rllob003 Nov 22, 2020
89b7ae0
Fix bulk participants breaking in bulk creation
rllob003 Nov 22, 2020
0b99282
Merge pull request #33 from rllob003/master
rllob003 Nov 23, 2020
b806126
adding back end user functionality for admin to manage researchers an…
Nov 24, 2020
2a423b0
Merge branch 'master' of https://github.com/babyfeed/ffq-user-service…
Nov 24, 2020
57aad4d
Merge pull request #34 from babyfeed/research-master-copy
gcasa032 Nov 24, 2020
a1fcc31
fixing issue with spring framework packages
Dec 3, 2020
fe74bc0
Merge pull request #35 from babyfeed/research-master-copy
gcasa032 Dec 3, 2020
4fc71a0
Upgrade jdk version for Azure
afesyun Dec 3, 2020
24ada5e
added prefix for researcher, fixed bugs when initial seeding of db wa…
mauro125 Jan 25, 2021
4b9a243
added missing prefix to clinician payload
mauro125 Jan 25, 2021
c130164
typo
mauro125 Jan 25, 2021
4a6d1fc
Merge pull request #36 from mauro125/master
afesyun Jan 26, 2021
3fc2675
added test data in payloads
mauro125 Jan 26, 2021
8816d23
fixed some issues with payloads
mauro125 Jan 29, 2021
a5f1e64
Merge pull request #37 from mauro125/master
afesyun Jan 30, 2021
562c4ba
<BF-F2021-13> add prefix field to parent
mauro125 Feb 3, 2021
d3c1304
Merge pull request #38 from mauro125/master
christianvalencia7 Feb 4, 2021
d681555
updated payloads to new features
mauro125 Feb 5, 2021
4bcb354
Merge pull request #39 from mauro125/master
afesyun Feb 5, 2021
942c187
setting seeding back to false
mauro125 Feb 5, 2021
d16abe1
Merge pull request #40 from mauro125/master
afesyun Feb 5, 2021
32785f1
<BF-S2021-21> when admin deletes clinic, delete all clinicians->paren…
afesyun Feb 21, 2021
f133ec6
Merge pull request #41 from babyfeed/feature/bf-s2021-21-delete-paren…
mauro125 Feb 21, 2021
ab7332c
Update Participant.java
cdau001 Feb 23, 2021
9a9a08c
Update ParticipantsController.java
cdau001 Feb 23, 2021
16a5276
Update Participant.java
cdau001 Feb 23, 2021
640a3ae
Update ResearcherParticipantPayload.json
cdau001 Feb 23, 2021
c05789c
Merge pull request #42 from cdau001/master
mauro125 Feb 23, 2021
2436031
Fix deleting clinicains
afesyun Feb 24, 2021
2d4a497
Merge pull request #43 from babyfeed/feature/bf-s2021-21-delete-paren…
christianvalencia7 Feb 24, 2021
3882586
Added implementation so that when a clinician is deleated, the parent…
Feb 24, 2021
d81ede5
Merge pull request #44 from babyfeed/fixedDeleteClincians
mauro125 Feb 24, 2021
a5740c6
<BF-S2021-42> allow admin to update parent limit for Clinic
mauro125 Mar 3, 2021
a73bb3f
Merge pull request #45 from mauro125/master
cdau001 Mar 4, 2021
ce45962
<BF-S2021-29> when admin deletes research site, delete all reserchers…
afesyun Mar 5, 2021
5aaba07
Merge pull request #46 from babyfeed/feature/bf-2021-29-delete-resear…
mauro125 Mar 6, 2021
515dee8
<BF-S2021-37> create participantsLimit for research institution
mauro125 Mar 8, 2021
dc661c3
updating clinic payload
mauro125 Mar 9, 2021
093865a
Merge pull request #47 from mauro125/master
christianvalencia7 Mar 9, 2021
3cf8842
Added functionality to delete results when participants are deleted
Mar 20, 2021
2237ce5
Merge pull request #48 from babyfeed/delete-participants-results
afesyun Mar 20, 2021
85c6959
Updated README to use the correct load mvn command
May 19, 2021
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
49 changes: 0 additions & 49 deletions .classpath

This file was deleted.

14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,16 @@ typings
.node_repl_history

#Ignore .class files
*.class
*.class
/target/
/.idea/
/.settings/
ffq-user-service.iml
/bin/
/vpproject/
*.iml
.classpath
.project
/.vs/ffq-user-service/v16/.suo
/.vs/ProjectSettings.json
/.vs/slnx.sqlite
23 changes: 0 additions & 23 deletions .project

This file was deleted.

5 changes: 0 additions & 5 deletions .settings/org.eclipse.core.resources.prefs

This file was deleted.

2 changes: 0 additions & 2 deletions .settings/org.eclipse.jdt.apt.core.prefs

This file was deleted.

10 changes: 0 additions & 10 deletions .settings/org.eclipse.jdt.core.prefs

This file was deleted.

4 changes: 0 additions & 4 deletions .settings/org.eclipse.m2e.core.prefs

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This service will serve as a backing store for the users and clinics that will b
>Load database on startup
- Start the application with the following args:
- -Dmongo.users.load="true"
- ie) ``mvn spring-boot:run -Dmongo.users.load="true"``
- ie) ``mvn spring-boot:run -Dspring.boot.run.arguments="--mongo.users.load=true"``

>Database Information
- Database name: **ffq_database**
Expand Down
33 changes: 33 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java

trigger:
- master

pool:
vmImage: 'ubuntu-latest'

steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
options: '-Pprod'
goals: 'package'

- task: CopyFiles@2
inputs:
SourceFolder: 'target'
Contents: '*.jar'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: ffq-fooduserservice
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 7 additions & 26 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- <parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.0.BUILD-SNAPSHOT</version>
<relativePath/>
</parent> -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
Expand All @@ -20,14 +14,6 @@
<name>FFQ User Service</name>
<description>Service for handling users and security.</description>

<!--
<groupId>com.example</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>demo</name>
<description>Demo project for Spring Boot</description>
-->

<properties>
<java.version>1.8</java.version>
<jackson.databind.version>2.9.10.4</jackson.databind.version>
Expand All @@ -45,13 +31,6 @@
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<!---->
<!--
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
-->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand All @@ -78,11 +57,6 @@
<artifactId>json-simple</artifactId>
<version>1.1</version>
</dependency>




<!---->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
Expand All @@ -100,9 +74,16 @@
</exclusion>
</exclusions>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.security/spring-security-crypto -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-crypto</artifactId>
<version>5.4.0</version>
</dependency>
</dependencies>

<build>
<finalName>app</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
Expand Down
38 changes: 23 additions & 15 deletions src/main/java/edu/fiu/ffqr/FFQUserApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,42 @@ public class FFQUserApplication {

public static void main(String[] args) throws JsonMappingException, IOException, InterruptedException {
ApplicationContext ctx = SpringApplication.run(FFQUserApplication.class, args);

//******************************WARNING***********************//
// This should never be run on production/staging environment or all data will be lost
//=======================================================================================
// Only uncomment this below if you want to test locally using the predefined users below.

// ******************************WARNING***********************//
// This should never be run on production/staging environment or all data will
// be lost
// =======================================================================================
// Only uncomment this below if you want to test locally using the predefined
// users below.
// This will remove ALL User Data.

String loadDataArg = (String) ctx.getBean("loadUsersEnvVar");
if (loadDataArg.equalsIgnoreCase("true")) {
DataLoader loader = (DataLoader)ctx.getBean(DataLoader.class);
DataLoader loader = (DataLoader) ctx.getBean(DataLoader.class);
/*
* Uncomment methods below if you need to seedthe database. Imporant: uncomment
* only what's needed
*
*
*
*/
loader.loadAdmin();
loader.loadClinicians();
loader.loadParents();
loader.loadClinics();
loader.loadResearcherParticipants();
loader.loadResearch();
loader.loadResearchInstitution();

}
//======================================================================================

// ======================================================================================

// DataLoader loader = (DataLoader)ctx.getBean(DataLoader.class);
// loader.loadAdmin();
// loader.loadClinicians();
// loader.loadParents();
// loader.loadClinics();


}

@Bean
public String loadUsersEnvVar(@Value("${mongo.users.load}")String value) {
public String loadUsersEnvVar(@Value("${mongo.users.load}") String value) {
return value;
}
}
2 changes: 1 addition & 1 deletion src/main/java/edu/fiu/ffqr/controller/AdminController.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


@RestController
@CrossOrigin(origins = "http://localhost:4200")
@CrossOrigin(origins = "*")
@RequestMapping("/admins")
public class AdminController {

Expand Down
Loading