Skip to content
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

Release 5.11.0 #965

Merged
merged 156 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
11fdb96
Merge pull request #792 from reportportal/master
pbortnik Nov 12, 2021
0f8a489
EPMRPP-48316 || Ignore analyzer condition added (#793)
Yumfriez Nov 15, 2021
01a6a48
EPMRPP-68775 || Unique error analyzer attributes (#794)
Yumfriez Nov 18, 2021
ec3d010
EPMRPP-68819 || New cluster removing methods added (#795)
Yumfriez Nov 24, 2021
1022a72
EPMRPP-68619 || indexing performance fix (#796)
Yumfriez Nov 29, 2021
a18901d
EPMRPP-57211 || TestItem baseline query impl
Dec 20, 2021
941fd84
EPMRPP-57211 || Statistics baseline query impl
Dec 21, 2021
3e41513
EPMRPP-63122 || Widget options select added
Dec 22, 2021
02382fd
Merge pull request #797 from reportportal/EPMRPP-57211-item-baseline-…
pbortnik Dec 22, 2021
b36020b
Merge pull request #798 from reportportal/EPMRPP-63122-dashboard-widg…
pbortnik Dec 22, 2021
5daabad
EPMRPP-68947 || Information about Jira Cloud issue (#800)
pbortnik Dec 24, 2021
8937db5
EPMRPP-68897 || Widget on Dashboards count query (#799)
Yumfriez Dec 24, 2021
70ac4ee
EPMRPP-68649 || Saving log message to elastic (#801)
miracle8484 Dec 27, 2021
18bd318
EPMRPP-56432 || Top criteria max start time fix
Dec 28, 2021
331f4f4
Merge pull request #802 from reportportal/EPMRPP-56432-most-failed-st…
Yumfriez Dec 28, 2021
72a1042
EPMRPP-72339 || AA enalbed by default
Dec 30, 2021
5fce36e
Merge pull request #803 from reportportal/EPMRPP-72339-AA-enabled-by-…
Yumfriez Dec 30, 2021
7ebb32d
ElasticSearch config refactoring
Yumfriez Dec 30, 2021
e14ffac
ES repositories condition fix
Dec 30, 2021
a1be2d9
Merge pull request #805 from reportportal/develop-deploy
miracle8484 Jan 10, 2022
b27955c
EPMRPP-73287 || Last switch date ordering fix (#806)
Yumfriez Jan 19, 2022
d6aa280
EPMRPP-73239 || Stale materialized view repository impl (#807)
Yumfriez Jan 20, 2022
1a7e803
EPMRPP-73238 || ANY condition for Composite Attribute fix (#808)
Yumfriez Jan 24, 2022
d90b681
EPMRPP-74016 || Add custom repository for saving messagelog in elasti…
miracle8484 Feb 4, 2022
2c8ec03
EPMRPP-74115 || Add missed fields for indexing (#810)
pbortnik Feb 7, 2022
51b5687
EPMRPP-67609 || Add integration sorting by desc creation date (#811)
pbortnik Feb 15, 2022
03619ad
EPMRPP-67609 || Project integration sort added (#812)
pbortnik Feb 17, 2022
32ad9c0
EPMRPP-67609 || Add integration sort annotation (#813)
pbortnik Feb 17, 2022
d5bb71a
EPMRPP-75477 || Provide project storage count queries for calculation
pbortnik Mar 15, 2022
eb173ab
EPMRPP-75477 || Fix count query
pbortnik Mar 16, 2022
a732e4b
EPMRPP-75477 || Add modifying annotation for update query
pbortnik Mar 16, 2022
318b5fb
EPMRPP-75477 || Add query for retrieving item and retry ids for concr…
pbortnik Mar 17, 2022
1926b42
EPMRPP-76240 || Add method which returns integrationTypes by accessTy…
chingiskhan-epam Apr 5, 2022
6b1e654
EPMRPP-75872 || UserCreationBid entity fields update (#815)
Yumfriez Apr 7, 2022
c88ac0c
Merge branch 'master' of https://github.com/reportportal/commons-dao …
pbortnik Apr 12, 2022
cfb38a4
Merge branch 'develop' of https://github.com/reportportal/commons-dao…
pbortnik Apr 27, 2022
59bed64
EPMRPP-75477 || Remove unused queries
pbortnik Apr 27, 2022
a271b94
Merge pull request #819 from reportportal/EPMRPP-75477-5.8_launch_cal…
miracle8484 Apr 28, 2022
b7c47b2
EPMRPP-76888 || Add 30s validation for registration link resend
chingiskhan-epam May 5, 2022
525797e
Merge pull request #820 from reportportal/EPMRPP-76888_Add_30s_valida…
miracle8484 May 6, 2022
c18577b
EPMRPP-77071 || ANY condition for string array criteria fix
May 10, 2022
e1598e7
Merge pull request #821 from reportportal/EPMRPP-77071-any-condition-fix
miracle8484 May 10, 2022
0fe7517
EPMRPP-45842 || Exclude issue types condition added
May 13, 2022
520a70e
Merge pull request #822 from reportportal/EPMRPP-45842-items-by-issue…
miracle8484 May 13, 2022
fdd34de
EPMRPP-77646 || Update domain entity Hibernate mapping (sender case)
chingiskhan-epam Jun 2, 2022
fa23866
EPMRPP-77646 || updated migrationsUrl
chingiskhan-epam Jun 2, 2022
9a41821
EPMRPP-77646 || updated the length of rule_name field
chingiskhan-epam Jun 3, 2022
a617914
EPMRPP-77648 || getByProjectIdAndRuleNameIgnoreCase
chingiskhan-epam Jun 5, 2022
36eae7a
EPMRPP-77646 || switched to develop
chingiskhan-epam Jun 6, 2022
b7dd3e8
EPMRPP-77648 || switched to develop
chingiskhan-epam Jun 6, 2022
3a7bf4a
Merge pull request #826 from reportportal/feature/EPMRPP-77646_Update…
miracle8484 Jun 6, 2022
0bdc93c
Merge branch 'develop' into feature/EPMRPP-77648_implement_post_endpoint
chingiskhan-epam Jun 6, 2022
89bf181
Merge pull request #827 from reportportal/feature/EPMRPP-77648_implem…
miracle8484 Jun 6, 2022
c1e2ef0
EPMRPP-77623 || Attribute removing method added
Jun 16, 2022
b45911d
EPMRPP-77623 || Delete all fix
Jun 16, 2022
6827e9f
Merge pull request #828 from reportportal/EPMRPP-77623-last-run-attri…
miracle8484 Jun 17, 2022
c693ba7
EPMRPP-77778 || Implement DELETE endpoint (remove nested entities fro…
chingiskhan-epam Jun 17, 2022
3e99d63
Merge pull request #829 from reportportal/feature/EPMRPP-77778_implem…
miracle8484 Jun 22, 2022
b5d619e
EPMRPP-77972 || Additional methods for retrieving nested steps and re…
pbortnik Jun 23, 2022
9e2cf9d
EPMRPP-77972 || Update retries query
pbortnik Jun 23, 2022
c11c6c5
EPMRPP-77972 || Change retrun type
pbortnik Jun 23, 2022
2fb1fb6
EPMRPP-77972 || Return query
pbortnik Jun 23, 2022
6750b3f
EPMRPP-77972 || Add path query
pbortnik Jun 23, 2022
0c21fcb
EPMRPP-77972 || Add path cast
pbortnik Jun 23, 2022
0fff857
EPMRPP-77972 || Add path cast
pbortnik Jun 23, 2022
8821477
Merge pull request #830 from reportportal/EPMRPP-77972-missed_nested_…
miracle8484 Jun 24, 2022
ee07e36
EPMRPP-78107 || Attribute rule cascade merge
Jun 28, 2022
22cc438
Merge pull request #832 from reportportal/EPMRPP-78107-launch-attribu…
miracle8484 Jun 28, 2022
2dbd0e5
EPMRPP-78071 || Sender case order by id added
miracle8484 Jul 11, 2022
aa43be0
Merge pull request #833 from reportportal/EPMRPP-78071-sender-case-or…
miracle8484 Jul 11, 2022
5b2f667
EPMRPP-77922 || Performance fix and cleaning code
miracle8484 Jul 14, 2022
d9f05d4
EPMRPP-78587 || Fix attribute grouping
miracle8484 Jul 29, 2022
ca0ecf4
Merge pull request #835 from reportportal/EPMRPP-78587-fix-attribute-…
miracle8484 Jul 29, 2022
d0baab6
Update promote.yml
HardNorth Aug 25, 2022
dfbf851
EPMRPP-75612 || Add ElasticSearch client
miracle8484 Sep 6, 2022
c402208
Merge pull request #843 from reportportal/EPMRPP-75612-deletion-from-es
miracle8484 Sep 6, 2022
805914f
EPMRPP-79167 || Add check for possible 't' and 'f' values for system …
IvanKustau Sep 19, 2022
2516a40
Merge pull request #848 from reportportal/EPMRPP-79167-make-last-run-…
miracle8484 Sep 19, 2022
e3d92ce
EPMRPP-78998 || Flaky test cases widget. Increase the amount of items…
APiankouski Oct 5, 2022
d8849c8
EPMRPP-79630 || Update Passing rate per Launch widget
APiankouski Oct 20, 2022
93ba188
EPMRPP-79630 || Update Passing rate per Launch widget
APiankouski Oct 20, 2022
ea33045
EPMRPP-80176 || Update Passing rate summary widget
APiankouski Nov 2, 2022
3e8176a
Merge branch 'master' into develop
miracle8484 Dec 21, 2022
3d3f6c4
Merge branch 'master' into 5.8
miracle8484 Dec 21, 2022
aaa5be8
Merge pull request #867 from reportportal/5.8 into develop
miracle8484 Feb 15, 2023
36da847
Merge branch 'master' into develop
miracle8484 Feb 16, 2023
d9db19c
Merge master into develop (#869)
IvanKustau Feb 23, 2023
67dd3e1
EPMRPP-73535 || Updated ES client
miracle8484 Mar 1, 2023
eb97747
EPMRPP-76400 || Pattern analyze working with ES
miracle8484 Mar 15, 2023
31d88fc
Merge pull request #875 from reportportal/EPMRPP-76400-pattern-analyze
miracle8484 Mar 15, 2023
8aa9eef
EPMRPP-82327 || Formatting code according to code style (#873)
rkukharenka Mar 16, 2023
6c2067f
Epmrpp 84251 || merge to develop (#889)
APiankouski Jun 6, 2023
38cc5c7
EPMRPP-84251 || Fix SenderCase
APiankouski Jun 6, 2023
513abc7
EPMRPP-84251 || Fix SenderCase
APiankouski Jun 6, 2023
7befa65
EPRMPP-84114 || Api key last used at (#890)
IvanKustau Jun 16, 2023
0d5d936
EPMRPP-84794 || Add event object type
APiankouski Sep 8, 2023
171035c
EPMRPP-84794 || Add event object type
APiankouski Sep 8, 2023
08e2ee4
EPMRPP-80519 || Add methods for removing buckets and files
IvanKustau Sep 11, 2023
c418e87
EPMRPP-84794 || Change Object Name
APiankouski Sep 12, 2023
a65d0b9
EPMRPP-80519 || Remove attachments by project id
IvanKustau Sep 12, 2023
eda6a1b
Merge pull request #931 from reportportal/EPMRPP-80519-project-bucket…
IvanKustau Sep 13, 2023
5ac542b
Merge branch 'develop' into feature/settings
APiankouski Sep 14, 2023
f746541
EPMRPP-86221 || Generate jooq schema
APiankouski Sep 18, 2023
cc041fe
EPMRPP-86221 || Resolve conflicts
IvanKustau Sep 11, 2023
b509331
EPMRPP-86221 || Resolve conflicts
APiankouski Sep 18, 2023
2a352a8
EPMRPP-86221 || Fix test
APiankouski Sep 18, 2023
567e79c
EPMRPP-86221 || Fix test
APiankouski Sep 18, 2023
98aa9f1
EPMRPP-86221 || Delete duplicate script
APiankouski Sep 19, 2023
8e4b91c
EPMRPP-86363 exclude system attributes in launches table widget (#932)
grabsefx Sep 22, 2023
236cb31
Fix test
APiankouski Sep 25, 2023
c5ce219
EPMRPP-86363 exclude system attributes in launches table widget
grabsefx Sep 22, 2023
dc4130d
EPMRPP-86348 || Add new query for check already matched items (#933)
pbortnik Sep 27, 2023
25b2880
EPMRPP-84226 || Remove access token logic from the code (#934)
APiankouski Sep 28, 2023
3a33882
EPMRPP-86250 || Update Analyzer settings. Provide the base for analy…
APiankouski Sep 29, 2023
5ca97ad
EPMRPP-86361 || Add possibility to filter items by composite system a…
pbortnik Sep 29, 2023
7a14043
EPMRPP-86208 || Update api key cache resolver
IvanKustau Sep 4, 2023
b25bce7
EPMRPP-86250 || Update Analyzer settings. Provide the base for analy…
APiankouski Oct 3, 2023
638ca15
EPMRPP-86775 || Add possibility to have no auth in ES
IvanKustau Oct 9, 2023
6d24f71
Merge pull request #937 from reportportal/EPMRPP-86775-no-auth-in-ela…
IvanKustau Oct 9, 2023
9227d5f
Merge branch 'develop' of https://github.com/reportportal/commons-dao…
pbortnik Oct 12, 2023
8501b4a
EPMRPP-80574 (#939)
pbortnik Oct 16, 2023
1c69b40
Merge branch 'develop' of https://github.com/reportportal/commons-dao…
pbortnik Oct 20, 2023
f267140
EPMRPP-80574 || Fix early stream closing (#940)
pbortnik Oct 20, 2023
c02ebd5
Epmrpp 86248 || Auto-Analysis should skip already analyzed items on l…
APiankouski Oct 24, 2023
f042158
EPMRPP-79482 || JCloud filesystem (#942)
IvanKustau Oct 30, 2023
1476614
EPMRPP-87044 exclude empty statistics records from processing (#943)
grabsefx Oct 31, 2023
ac5a747
EPMRPP-79482 || Refactor JCloud filesystem implementation
IvanKustau Nov 8, 2023
c378850
EPMRPP-82591 || Add check for null file path
IvanKustau Nov 8, 2023
fb01d82
Merge remote-tracking branch 'origin/EPMRPP-82591-logs-with-attachmen…
IvanKustau Nov 8, 2023
3be9b8a
EPMRPP-87173 exclude SKIPPED items from flaky tests widget (#944)
grabsefx Nov 9, 2023
86177cf
EPMRPP-87537 || Launch number not indexing (#945)
APiankouski Nov 9, 2023
897397e
EPMRPP-80574 || Update dependencies (#947)
pbortnik Nov 10, 2023
7990424
Update build.gradle (#948)
pbortnik Nov 10, 2023
bd1cabc
Merge branch 'develop' into EPMRPP-82591-logs-with-attachments-null-p…
IvanKustau Nov 11, 2023
bbd1137
EPMRPP-82591 || Refactor according to checkstyle
IvanKustau Nov 11, 2023
d8b020f
Merge pull request #949 from reportportal/EPMRPP-82591-logs-with-atta…
IvanKustau Nov 11, 2023
6627cb0
EPMRPP-87271 fixed datetime parser (#950)
grabsefx Nov 13, 2023
0b42e65
Merge branch 'develop' of https://github.com/reportportal/commons-dao…
Nov 16, 2023
6f11ff3
EPMRPP-87613 || Add back compatibility with older plugins
pbortnik Nov 16, 2023
cdf3901
EPMRPP-87591 || Page crashes when logging into RP
APiankouski Nov 17, 2023
5aa51a5
EPMRPP-86835 || Update releaseMode to use Maven instead of Github
IvanKustau Nov 20, 2023
e61a436
EPMRPP-86835 || Update libs version
IvanKustau Nov 20, 2023
dafe9b4
Merge pull request #953 from reportportal/EPMRPP-86835-maven-release
IvanKustau Nov 20, 2023
d1433bd
Merge pull request #952 from reportportal/EPMRPP-87591
APiankouski Nov 21, 2023
a24202c
EPMRPP-87692 set auto analyzer mode "All launches with the same name"…
grabsefx Nov 22, 2023
9f76a58
EPMRPP-87813 || Send to the analyzer the id of previous launch
APiankouski Nov 22, 2023
0adf10f
EPMRPP-87813 || Send to the analyzer the id of previous launch
APiankouski Nov 22, 2023
ae1098e
EPMRPP-87813 || Remove space
APiankouski Nov 22, 2023
8eebe6f
Merge pull request #955 from reportportal/EPMRPP-87813
APiankouski Nov 23, 2023
a29704f
Merge branch 'develop' of https://github.com/reportportal/commons-dao…
Nov 27, 2023
2df0dba
EPMRPP-87433 || Add missed filename for attachment record mapper (#956)
pbortnik Nov 27, 2023
126ee2e
EPMRPP-87433 || Add missed attachment file name fetch (#957)
pbortnik Nov 27, 2023
516ace3
EPMRPP-88755 || Add prefix and postfix for filesystem (#963)
IvanKustau Dec 14, 2023
1da74f0
Merge branch 'develop' of https://github.com/reportportal/commons-dao…
Dec 15, 2023
eafb46f
rc/5.11.0 || Update versions
Dec 15, 2023
592dfc8
Merge branch 'master' of https://github.com/reportportal/commons-dao …
Dec 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 2 additions & 9 deletions .github/workflows/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ jobs:
runs-on: ubuntu-latest

steps:

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'

- name: Get variables
run: |
echo "ARTIFACT=`echo ${{ github.repository }} | cut -d/ -f2- | awk '{print tolower($0)}'`" >> $GITHUB_ENV
Expand All @@ -58,7 +51,7 @@ jobs:
export BUNDLE_FILE="bundle.jar"
jar -cvf ${BUNDLE_FILE} "${files[@]}"
echo 'Bundle upload'
curl -u ${{ secrets.SONATYPE_USER }}:${{ secrets.SONATYPE_PASSWORD }} -L \
curl -f -u ${{ secrets.SONATYPE_USER }}:${{ secrets.SONATYPE_PASSWORD }} -L \
--request POST '${{ env.UPSTREAM_REPOSITORY_URL }}/service/local/staging/bundle_upload' \
--form "file=@${BUNDLE_FILE}" >response.json
response_type=`jq type response.json || echo ''`
Expand Down Expand Up @@ -105,4 +98,4 @@ jobs:
else
echo 'Verification failed, please check the bundle' 1>&2
exit 1
fi
fi
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ on:
env:
GH_USER_NAME: github.actor
SCRIPTS_VERSION: 5.10.0
BOM_VERSION: 5.10.0
MIGRATIONS_VERSION: 5.10.0
RELEASE_VERSION: 5.10.0
BOM_VERSION: 5.11.0
MIGRATIONS_VERSION: 5.11.0
RELEASE_VERSION: 5.11.0

jobs:
release:
Expand Down
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

27 changes: 21 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,71 @@
# Unreleased

### New Features
* Added `datastore.minio.bucketPrefix` and `datastore.minio.defaultBucketName` configuration properties

* Added `datastore.minio.bucketPrefix` and `datastore.minio.defaultBucketName` configuration
properties

## 3.2.1

##### Released: XXX 2017

### Bugfixes
* reportportal/reportportal#170 - Test run breaks with unclassified error (jbehave) #170

* reportportal/reportportal#170 - Test run breaks with unclassified error (jbehave) #170

## 3.2

##### Released: XXX 2017

### New Features

* EPMRPP-26429/EPMRPP-26263 - Added possibility to get all latest launches
* EPMRPP-26416 - Add possibility to use a 'dot' symbol in login of user

### Bug Fixes

* EPMRPP-29167 - Statistics for deleted elements with custom defect types are still present
* EPMRPP-29337 - Widgets with Latest Launches ON include statistics for launches with In Progress status
* EPMRPP-29337 - Widgets with Latest Launches ON include statistics for launches with In Progress
status
* EPMRPP-29320 - Unclassified error for Latest Launches view selected in case no results

## 3.0

##### Released: XXX 2017

### BugFixes

* EPMRPP-23564 - GET shared dashboard request does not contain 'description' parameter
* EPMRPP-24914 - Item with investigated defect type only is not included in scope of analysis
* EPMRPP-24539 - Do not take into account items with No Defect type in analysis of following launches
* EPMRPP-24539 - Do not take into account items with No Defect type in analysis of following
launches
* EPMRPP-25408 - No Defect items are included in scope of analysis in case item has ticket


## 2.7.0

##### Released: 28 November 2016

### BugFixes
* EPMRPP-21206 - Update personal project defaults

* EPMRPP-21206 - Update personal project defaults

## 2.6.1

##### Released: 30 September 2016

### New Features

* Added GitHub auth support
* Added Personal Spaces support

### BugFixes

* Fixed issue with Launches cascade delete

## 2.6.0

##### Released: 16 September 2016

### New Features

* Initial release to Public Maven Repositories
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# commons-dao

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![stackoverflow](https://img.shields.io/badge/reportportal-stackoverflow-orange.svg?style=flat)](http://stackoverflow.com/questions/tagged/reportportal)

Expand Down
29 changes: 14 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,8 @@ apply from: 'jooq.gradle'

repositories {
mavenCentral { url "https://repo1.maven.org/maven2" }
if (releaseMode) {
dependencyRepos.forEach { path ->
maven {
setUrl("https://maven.pkg.github.com/reportportal/${path}")
credentials {
username = findProperty("githubUserName")
password = findProperty("githubToken")
}
}
}
} else {

if (!releaseMode) {
maven { url 'https://jitpack.io' }
}
}
Expand All @@ -61,9 +52,9 @@ dependencies {
compile 'com.epam.reportportal:commons-rules'
compile 'com.epam.reportportal:commons-model'
} else {
compile 'com.github.reportportal:commons:ce2166b5'
compile 'com.github.reportportal:commons-rules:5.10.0'
compile 'com.github.reportportal:commons-model:232e69a5'
compile 'com.github.reportportal:commons:07566b8e'
compile 'com.github.reportportal:commons-rules:01ec4d17'
compile 'com.github.reportportal:commons-model:83f012f'
}

//https://nvd.nist.gov/vuln/detail/CVE-2020-10683 (dom4j 2.1.3 version dependency) AND https://nvd.nist.gov/vuln/detail/CVE-2019-14900
Expand All @@ -80,6 +71,7 @@ dependencies {

compile 'io.minio:minio:6.0.13'

implementation group: 'org.json', name: 'json', version: '20220320'
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
compile 'org.hibernate.validator:hibernate-validator'

Expand All @@ -96,13 +88,20 @@ dependencies {

compile 'org.apache.jclouds.api:s3:2.5.0'
compile 'org.apache.jclouds.provider:aws-s3:2.5.0'
implementation 'org.apache.jclouds.api:filesystem:2.5.0'

// add lombok support
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"

implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'com.github.ben-manes.caffeine:caffeine'

testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'org.flywaydb.flyway-test-extensions:flyway-spring-test:6.1.0'

}

dependencyCheck {
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
version=5.10.1
version=5.11.0
lombokVersion=1.18.30
8 changes: 6 additions & 2 deletions project-properties.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,16 @@ project.ext {
(migrationsUrl + '/migrations/60_sender_case_operator.up.sql') : 'V060__sender_case_operator.sql',
(migrationsUrl + '/migrations/61_remove_acl.up.sql') : 'V061__remove_acl.sql',
(migrationsUrl + '/migrations/62_remove_dashboard_cascade_drop.up.sql') : 'V062__remove_dashboard_cascade_drop.sql',
(migrationsUrl + '/migrations/65_launch_attribute_rules_length.up.sql') : 'V065__launch_attribute_rules_length.up.sql',
(migrationsUrl + '/migrations/65_launch_attribute_rules_length.up.sql') : 'V065__launch_attribute_rules_length.sql',
(migrationsUrl + '/migrations/67_api_keys.up.sql') : 'V067__api_keys.sql',
(migrationsUrl + '/migrations/68_api_key_last_used_at.up.sql') : 'V068__api_key_last_used_at.up.sql',
(migrationsUrl + '/migrations/68_api_key_last_used_at.up.sql') : 'V068__api_key_last_used_at.sql',
(migrationsUrl + '/migrations/69_replace_activity_table.up.sql') : 'V069__replace_activity_table.sql',
(migrationsUrl + '/migrations/71_user_bid_inviting_user_id.up.sql') : 'V071__user_bid_inviting_user_id.sql',
(migrationsUrl + '/migrations/72_add_attachment_name.up.sql') : 'V072__add_attachment_name.sql',
(migrationsUrl + '/migrations/73_sender_case_rule_name.up.sql') : 'V073__sender_case_rule_name.sql',
(migrationsUrl + '/migrations/76_user_bid_extension.up.sql') : 'V076__user_bid_extension.sql',
(migrationsUrl + '/migrations/77_email_server_documentation_link.up.sql') : 'V077__email_server_documentation_link.sql',
(migrationsUrl + '/migrations/78_drop_redundant_index.up.sql') : 'V078__drop_redundant_index.sql',

]
excludeTests = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,89 +25,88 @@
import org.springframework.context.ApplicationContextAware;

/**
* {@link FactoryBean} with access to {@link ApplicationContext} with lazy
* initialization
* {@link FactoryBean} with access to {@link ApplicationContext} with lazy initialization
*
* @param <T> - type of bean
* @author Andrei Varabyeu
*/
public abstract class ApplicationContextAwareFactoryBean<T> implements FactoryBean<T>, ApplicationContextAware, InitializingBean {
public abstract class ApplicationContextAwareFactoryBean<T> implements FactoryBean<T>,
ApplicationContextAware, InitializingBean {

/**
* Application context holder
*/
private ApplicationContext applicationContext;
/**
* Application context holder
*/
private ApplicationContext applicationContext;

/**
* Supplier of bean to be created
*/
private Supplier<T> beanSupplier;
/**
* Supplier of bean to be created
*/
private Supplier<T> beanSupplier;

/**
* Whether is bean to be creates going to be singleton
*/
private boolean singleton = true;
/**
* Whether is bean to be creates going to be singleton
*/
private boolean singleton = true;

/*
* (non-Javadoc)
*
* @see
* org.springframework.context.ApplicationContextAware#setApplicationContext
* (org.springframework.context.ApplicationContext)
*/
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
this.applicationContext = applicationContext;
}
/*
* (non-Javadoc)
*
* @see org.springframework.beans.factory.FactoryBean#getObject()
*/
@Override
public T getObject() throws Exception {
return beanSupplier.get();
}

/*
* (non-Javadoc)
*
* @see org.springframework.beans.factory.FactoryBean#getObject()
*/
@Override
public T getObject() throws Exception {
return beanSupplier.get();
}
/*
* (non-Javadoc)
*
* @see org.springframework.beans.factory.FactoryBean#isSingleton()
*/
@Override
public boolean isSingleton() {
return this.singleton;
}

/*
* (non-Javadoc)
*
* @see org.springframework.beans.factory.FactoryBean#isSingleton()
*/
@Override
public boolean isSingleton() {
return this.singleton;
}
public void setSingleton(boolean singleton) {
this.singleton = singleton;
}

public void setSingleton(boolean singleton) {
this.singleton = singleton;
}
/**
* Instantiates supplier for bean to be created. This mades possible lazy-initialization
*/
@Override
public void afterPropertiesSet() throws Exception {
Supplier<T> supplier = this::createInstance;

/**
* Instantiates supplier for bean to be created. This mades possible
* lazy-initialization
*/
@Override
public void afterPropertiesSet() throws Exception {
Supplier<T> supplier = this::createInstance;
this.beanSupplier = isSingleton() ? Suppliers.memoize(supplier) : supplier;
}

this.beanSupplier = isSingleton() ? Suppliers.memoize(supplier) : supplier;
}
protected ApplicationContext getApplicationContext() {
return applicationContext;
}

protected ApplicationContext getApplicationContext() {
return applicationContext;
}
/*
* (non-Javadoc)
*
* @see
* org.springframework.context.ApplicationContextAware#setApplicationContext
* (org.springframework.context.ApplicationContext)
*/
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
this.applicationContext = applicationContext;
}

/**
* Template method that subclasses must override to construct the object
* returned by this factory.
* <p>
* Invoked on initialization of this FactoryBean in case of a singleton;
* else, on each {@link #getObject()} call.
*
* @return the object returned by this factory
* @see #getObject()
*/
protected abstract T createInstance();
/**
* Template method that subclasses must override to construct the object returned by this
* factory.
* <p>
* Invoked on initialization of this FactoryBean in case of a singleton; else, on each
* {@link #getObject()} call.
*
* @return the object returned by this factory
* @see #getObject()
*/
protected abstract T createInstance();
}
Loading
Loading