-
Notifications
You must be signed in to change notification settings - Fork 5
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.12.0 #142
Release 5.12.0 #142
Changes from all commits
e6db1fc
07a43d6
6b4a77c
721345d
0e5aa0e
d5a9193
345eaf6
0d169cb
e2cda26
0f75b62
838dce7
5ead2ef
e52b2fa
71fd27e
749c8f2
ca8085a
3b15164
e99ab6e
614f643
722be38
dbc7fe6
230167d
2ac782d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Add GitHub release version to Jira issues | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
call-jira-sync: | ||
name: Call Jira versions update | ||
uses: reportportal/.github/.github/workflows/update-jira-versions.yaml@main | ||
with: | ||
jira-server: ${{ vars.JIRA_SERVER }} | ||
secrets: inherit |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright 2024 EPAM Systems | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.epam.reportportal.config; | ||
|
||
import com.fasterxml.jackson.databind.DeserializationFeature; | ||
import com.fasterxml.jackson.databind.MapperFeature; | ||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
import com.fasterxml.jackson.databind.SerializationFeature; | ||
import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector; | ||
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* @author Siarhei Hrabko | ||
*/ | ||
@Configuration | ||
public class JacksonConfiguration { | ||
|
||
/** | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
* @return Configured object mapper | ||
*/ | ||
@Bean(name = "objectMapper") | ||
public ObjectMapper objectMapper() { | ||
ObjectMapper om = new ObjectMapper(); | ||
om.setAnnotationIntrospector(new JacksonAnnotationIntrospector()); | ||
om.configure(MapperFeature.DEFAULT_VIEW_INCLUSION, true); | ||
om.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); | ||
om.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); | ||
om.registerModule(new JavaTimeModule()); | ||
return om; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,23 +19,23 @@ | |
import org.springframework.web.client.RestTemplate; | ||
|
||
/** | ||
* Simple client to work with Elasticsearch. | ||
* Simple client to work with Search engine. | ||
* | ||
* @author <a href="mailto:maksim_antonov@epam.com">Maksim Antonov</a> | ||
*/ | ||
@Primary | ||
@Service | ||
@ConditionalOnProperty(prefix = "rp.elasticsearch", name = "host") | ||
public class SimpleElasticSearchClient implements ElasticSearchClient { | ||
@ConditionalOnProperty(prefix = "rp.searchengine", name = "host") | ||
public class SimpleSearchEngineClient implements SearchEngineClient { | ||
|
||
protected final Logger LOGGER = LoggerFactory.getLogger(SimpleElasticSearchClient.class); | ||
protected final Logger LOGGER = LoggerFactory.getLogger(SimpleSearchEngineClient.class); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
private final String host; | ||
private final RestTemplate restTemplate; | ||
|
||
public SimpleElasticSearchClient(@Value("${rp.elasticsearch.host}") String host, | ||
@Value("${rp.elasticsearch.username:}") String username, | ||
@Value("${rp.elasticsearch.password:}") String password) { | ||
public SimpleSearchEngineClient(@Value("${rp.searchengine.host}") String host, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
@Value("${rp.searchengine.username:}") String username, | ||
@Value("${rp.searchengine.password:}") String password) { | ||
restTemplate = new RestTemplate(); | ||
|
||
if (!username.isEmpty() && !password.isEmpty()) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary javadoc is missing.