-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2106 from reportportal/EPMRPP-96944
EPMRPP-96944 || Fix incorrect history field values
- Loading branch information
Showing
8 changed files
with
51 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,13 +26,14 @@ | |
import com.epam.ta.reportportal.entity.activity.EventObject; | ||
import com.epam.ta.reportportal.entity.activity.EventPriority; | ||
import com.epam.ta.reportportal.entity.activity.EventSubject; | ||
import com.epam.ta.reportportal.model.settings.ServerSettingsResource; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Pavel Bortnik</a> | ||
*/ | ||
public class SettingsUpdatedEvent extends AroundEvent<ServerSettings> implements ActivityEvent { | ||
public class SettingsUpdatedEvent extends AroundEvent<ServerSettingsResource> implements ActivityEvent { | ||
|
||
public SettingsUpdatedEvent(ServerSettings before, ServerSettings after, Long userId, | ||
public SettingsUpdatedEvent(ServerSettingsResource before, ServerSettingsResource after, Long userId, | ||
String userLogin) { | ||
super(userId, userLogin, before, after); | ||
} | ||
|
@@ -44,7 +45,7 @@ public Activity toActivity() { | |
.addAction(EventAction.UPDATE) | ||
.addEventName(ActivityAction.UPDATE_INSTANCE.getValue()) | ||
.addPriority(EventPriority.HIGH) | ||
.addObjectName(getAfter().getKey()) | ||
.addObjectName("instanceSetting") | ||
.addObjectType(EventObject.INSTANCE) | ||
.addSubjectId(getUserId()) | ||
.addSubjectName(getUserLogin()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,70 +13,22 @@ | |
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.epam.ta.reportportal.model.settings; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.util.Map; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
/** | ||
* Global server settings response of stored properties | ||
* | ||
* @author Andrei_Ramanchuk | ||
* @author <a href="mailto:[email protected]">Pavel Bortnik</a> | ||
*/ | ||
@JsonInclude(Include.NON_NULL) | ||
@Data | ||
@Builder | ||
@AllArgsConstructor | ||
public class ServerSettingsResource { | ||
|
||
private String profile; | ||
|
||
private boolean active; | ||
|
||
@JsonProperty(value = "serverEmailConfig") | ||
private ServerEmailResource serverEmailResource; | ||
|
||
// private Map<String, OAuthDetailsResource> oauthConfigs; | ||
|
||
private Map<String, AnalyticsResource> analyticsResource; | ||
|
||
public void setProfile(String id) { | ||
this.profile = id; | ||
} | ||
|
||
public String getProfile() { | ||
return profile; | ||
} | ||
|
||
public void setActive(boolean is) { | ||
this.active = is; | ||
} | ||
|
||
public boolean getActive() { | ||
return active; | ||
} | ||
|
||
public void setServerEmailResource(ServerEmailResource config) { | ||
this.serverEmailResource = config; | ||
} | ||
|
||
public ServerEmailResource getServerEmailResource() { | ||
return serverEmailResource; | ||
} | ||
|
||
// public Map<String, OAuthDetailsResource> getOauthConfigs() { | ||
// return oauthConfigs; | ||
// } | ||
|
||
// public void setOauthConfigs(Map<String, OAuthDetailsResource> oauthConfigs) { | ||
// this.oauthConfigs = oauthConfigs; | ||
// } | ||
private String key; | ||
|
||
public Map<String, AnalyticsResource> getAnalyticsResource() { | ||
return analyticsResource; | ||
} | ||
private String value; | ||
|
||
public void setAnalyticsResource(Map<String, AnalyticsResource> analyticsResource) { | ||
this.analyticsResource = analyticsResource; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/epam/ta/reportportal/model/settings/UpdateSettingsRq.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
/* | ||
* Copyright 2019 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.ta.reportportal.model.settings; | ||
|
||
import javax.validation.constraints.NotEmpty; | ||
import lombok.Data; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Pavel Bortnik</a> | ||
*/ | ||
@Data | ||
public class UpdateSettingsRq { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters