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

PR from 8.0.0 to 11.0.0 #1659

Open
wants to merge 95 commits into
base: Basetag_11.0.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
6f1f394
DTS-27715: changes commit
eswbogol Aug 14, 2023
3e4009b
test case fix
Aug 21, 2023
95d394d
GS : JIRA-TEST-SPNEGO integration
eswbogol Oct 5, 2023
f654cac
GS : JIRA-TEST-SPNEGO integration
eswbogol Oct 5, 2023
eef3aeb
GS DTS-29033 : Jira Test JQL support changes
eswbogol Oct 5, 2023
d9e9d9a
GS vault changes
eswbogol Oct 5, 2023
a47b631
Squad case-sesitivity test
gipathak Nov 14, 2023
59414b2
Squal case sensitive check updated.
gipathak Nov 14, 2023
b7e365f
Squal case sensitive check updated code.
gipathak Nov 16, 2023
86de85d
portfolio text free changes.
gipathak Nov 16, 2023
62e95fb
squad changes.
gipathak Nov 17, 2023
7f6cba9
Gs on request changes
gipathak Dec 22, 2023
d4984ab
DTS-28860-FIX fix applied on GS
gipathak Jan 30, 2024
689eac5
8.0+ changes
purushottam08 Mar 14, 2024
d35dd83
sprint fetch flow fixed
purushottam08 Mar 26, 2024
5d20208
epic flow updated and jql flow is fixed
purushottam08 Apr 1, 2024
d138da5
version flow corrected
purushottam08 Apr 4, 2024
77784d8
JIRA-Test-JQL implementation on Jira Test
gipathak Apr 4, 2024
25abb91
JIRA-TEST-JQL integration
gipathak Apr 9, 2024
6438765
JIRA-TEST-JQL integration updated
gipathak Apr 9, 2024
49fe3c8
GS-JIRA-TEST-Changes
gipathak Apr 12, 2024
434e404
jira performance issue
gipathak Apr 23, 2024
c42ebf8
client centralised
purushottam08 Apr 24, 2024
eea8a1d
client centralised
purushottam08 Apr 25, 2024
482b3e3
client centralised
purushottam08 Apr 25, 2024
e55c74d
client centralised
purushottam08 Apr 25, 2024
c062302
Merge remote-tracking branch 'origin/GS_Squad_Filter' into GS_Squad_F…
Apr 25, 2024
fdc1583
sv
purushottam08 Apr 25, 2024
810d270
DTS-34692 multi sqad GS
brahmanand1 Apr 25, 2024
ecbbc4b
sv
purushottam08 Apr 25, 2024
55fd07c
Merge branch 'GS_Squad_Filter' of https://github.com/PublicisSapient/…
purushottam08 Apr 25, 2024
cd23b47
gitlab overlay fix
kunkambl Apr 25, 2024
6aa8fd7
sv
purushottam08 Apr 25, 2024
9224cf8
Consider test cases with atleast 1 valid story linkage
aksshriv1 Apr 25, 2024
959f944
gitlab overlay fix
kunkambl Apr 25, 2024
5c78357
Merge pull request #861 from PublicisSapient/DTS-36062_GS_ConsiderTes…
gipathak Apr 25, 2024
58378da
Merge branch 'GS_ENH_Backup' of https://github.com/PublicisSapient/PS…
kunkambl Apr 25, 2024
c112b0f
gitlab overlay fix
kunkambl Apr 25, 2024
5a1f371
Merge remote-tracking branch 'origin/GS_Squad_Filter' into GS_Squad_F…
Apr 25, 2024
ae617ca
Merge branch 'GS_ENH_Backup' of https://github.com/PublicisSapient/PS…
Apr 26, 2024
b69d266
Merge pull request #863 from PublicisSapient/GS_Squad_Filter
Chittauri Apr 26, 2024
986a367
jira performance issue
gipathak Apr 26, 2024
3a60a4c
added changes related to squad
HinPublicis Apr 26, 2024
bec917a
changes to the filter component
HinPublicis Apr 29, 2024
9ccfc43
Update filter.component.ts
HinPublicis Apr 30, 2024
cf74102
changes to the filter component
HinPublicis Apr 29, 2024
fe475be
Merge remote-tracking branch 'origin/Rel_8.0.0_PreProd_GS' into Rel_8…
Apr 30, 2024
6d4a539
Merge remote-tracking branch 'origin/Rel_8.0.0_PreProd_GS' into Rel_8…
Apr 30, 2024
3864c54
Merge remote-tracking branch 'origin/Rel_8.0.0_PreProd_GS' into Rel_8…
May 1, 2024
de49eb7
Merge remote-tracking branch 'origin/Rel_8.0.0_PreProd_GS' into Rel_8…
May 1, 2024
5a89fca
Merge remote-tracking branch 'origin/Rel_8.0.0_PreProd_GS' into Rel_8…
May 2, 2024
991e85f
Update filter.component.html
HinPublicis May 8, 2024
285da5f
Update executive.component.ts
HinPublicis May 15, 2024
0f291a7
Update maturity.component.ts
HinPublicis May 15, 2024
11461b7
Multiple squad backend change
gipathak May 16, 2024
2df9b71
Update QualityStatusServiceImpl.java
Chittauri Jun 4, 2024
3857cfa
Update QualityStatusServiceImpl.java
Chittauri Jun 4, 2024
71031ca
Merge remote-tracking branch 'origin/DTS-36376_GS_UnlinkedDefectColum…
Jun 7, 2024
fe86c64
field made double to string
purushottam08 Jun 10, 2024
974ea4a
Multiple squad backend change
gipathak May 16, 2024
86170dd
Merge remote-tracking branch 'origin/GS-Squad-Capacity' into GS-Squad…
Jun 11, 2024
7494636
Update JiraIssueRepositoryImpl.java
Chittauri Jun 12, 2024
d3b0137
Merge pull request #1093 from PublicisSapient/Lead_Time_For_Change_Fix
gipathak Jun 12, 2024
7ae556b
Merge remote-tracking branch 'origin/GS-Squad-Capacity' into GS-Squad…
Jun 11, 2024
88164f1
Merge remote-tracking branch 'origin/GS-Squad-Capacity' into GS-Squad…
Jun 12, 2024
9eed698
Merge remote-tracking branch 'origin/GS-Squad-Capacity' into GS-Squad…
Jun 12, 2024
5ddbf2a
Merge remote-tracking branch 'origin/GS-Squad-Capacity' into GS-Squad…
Jun 12, 2024
a323fa8
Merge pull request #1047 from PublicisSapient/DTS-36376_GS_UnlinkedDe…
Chittauri Jun 12, 2024
1a1227d
Merge pull request #1083 from PublicisSapient/GS-Squad-Capacity
gipathak Jun 14, 2024
c962b18
Merge pull request #1083 from PublicisSapient/GS-Squad-Capacity
gipathak Jun 14, 2024
d5e668b
Merge remote-tracking branch 'origin/Rel_8.0.0_PreProd_GS' into Rel_8…
Jun 14, 2024
cf6be94
new Field for gitlab tool for GS
aksshriv1 Jun 24, 2024
1119909
Merge pull request #1144 from PublicisSapient/DTS-37091_GSGitlabChange
gipathak Jun 24, 2024
5ad22f2
GS:convertIssuesListToBranchPattern
gipathak Jun 25, 2024
25b2c4f
Merge branch 'Rel_8.0.0_PreProd_GS' of https://github.com/PublicisSap…
gipathak Jun 25, 2024
7996676
GS:convertIssuesListToBranchPattern
gipathak Jun 26, 2024
b9ab7d5
config details added globally
brahmanand1 Jun 26, 2024
ae53c78
DTS-38318:Scope Churn KPI | Export does not display any information f…
gipathak Jul 6, 2024
aacd1b3
Rel_8.0.0_PreProd_GS: UI changes
gipathak Jul 12, 2024
3970230
GS config issue fixed
brahmanand1 Jul 12, 2024
a8ded33
Merge pull request #1219 from PublicisSapient/gs_defect_fix
gipathak Jul 12, 2024
a79d09e
Gitlab changes for MR or PR logic.
gipathak Jul 30, 2024
dc20cfa
DTS-38952:GS | Scope churn KPI export does not display any informatio…
gipathak Aug 1, 2024
2e9215b
GS: Gitlab connector
gipathak Aug 27, 2024
6dd7e5a
DTS-39590: date format fix GS
kunkambl Sep 20, 2024
312a514
DTS-39590 remove time from start and end date
brahmanand1 Sep 23, 2024
54d6806
Merge pull request #1491 from PublicisSapient/DTS-39590_gs_date_changes
brahmanand1 Sep 23, 2024
b8b590b
Merge pull request #1486 from PublicisSapient/DTS-39590_GS
kunkambl Sep 24, 2024
42e0bfb
test case fixed
brahmanand1 Sep 26, 2024
55d370c
Dev Completion Date Fix
aksshriv1 Oct 23, 2024
f6d3aee
Merge pull request #1620 from PublicisSapient/DTS-GS_PlannedWorkStatu…
aksshriv1 Oct 23, 2024
73d6026
GS Unplanned defect fix
aksshriv1 Nov 7, 2024
560a055
Merge pull request #1643 from PublicisSapient/DTS-GS_UnplannedDefectFix
aksshriv1 Nov 7, 2024
3905bfd
DailyStandUp view disabled.
gipathak Nov 12, 2024
e848180
Merging 8.0.0 with 11.0.0.
gipathak Nov 18, 2024
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
1 change: 1 addition & 0 deletions UI/src/app/dashboard/filter/filter.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,7 @@ const completeHierarchyData = {
component.filterForm = new UntypedFormGroup({
sprint: new UntypedFormControl({})
});
component.selectedTab = "value";

const spy = spyOn(component, 'applyChanges');
component.removeItem('sprint', '38994_DEMO_SONAR_63284960fdd20276d60e4df5');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class KerberosClient {

/**
* Kerberos client constructor
*
*
* @param jaasConfigFilePath
* path to a file that contains login information
* @param krb5ConfigFilePath
Expand All @@ -97,7 +97,7 @@ public KerberosClient(String jaasConfigFilePath, String krb5ConfigFilePath, Stri

/**
* Get cookie store
*
*
* @return basic cookie store.
*/
public BasicCookieStore getCookieStore() {
Expand All @@ -106,7 +106,7 @@ public BasicCookieStore getCookieStore() {

/**
* Get jira host
*
*
* @return jira host string
*/
public String getJiraHost() {
Expand All @@ -115,7 +115,7 @@ public String getJiraHost() {

/**
* This method build a Http client with SPNEGO scheme factory and cookie store
*
*
* @return http client
*/
private HttpClient buildLoginHttpClient() {
Expand All @@ -134,7 +134,7 @@ private HttpClient buildLoginHttpClient() {

/**
* This method build simple Http client with cookie store
*
*
* @return http client
*/
private HttpClient buildHttpClient() {
Expand Down Expand Up @@ -166,7 +166,7 @@ private void clearKerberosProperties() {
/**
* This method fetch login cookies necessary to establish connection with spnego
* jira client
*
*
* @param samlTokenStartString
* @param samlTokenEndString
* @param samlUrlStartString
Expand Down Expand Up @@ -198,7 +198,7 @@ public String login(String samlTokenStartString, String samlTokenEndString, Stri

/**
* This method execute login call with http client
*
*
* @param loginURL
* @param samlTokenStartString
* @param samlTokenEndString
Expand Down Expand Up @@ -226,7 +226,7 @@ private String loginCall(String loginURL, String samlTokenStartString, String sa

/**
* This method generate the cookies required for connection
*
*
* @param loginResponse
* @param samlTokenStartString
* @param samlTokenEndString
Expand All @@ -249,7 +249,7 @@ public void generateSamlCookies(String loginResponse, String samlTokenStartStrin

/**
* This method return the response of http request submitted
*
*
* @param httpUriRequest
* httpUriRequest
* @return string response
Expand All @@ -263,7 +263,7 @@ public String getResponse(HttpUriRequest httpUriRequest) throws IOException {

/**
* This method perform http request provided by user
*
*
* @param httpUriRequest
* httpUriRequest
* @return string http response
Expand All @@ -276,7 +276,7 @@ public HttpResponse getHttpResponse(HttpUriRequest httpUriRequest) throws IOExce

/**
* This is a utility method which fetch data from login response
*
*
* @param input
* input string
* @param start
Expand All @@ -298,7 +298,7 @@ private String extractString(String input, String start, String end) {

/**
* This method get Cookie object and convert it into string
*
*
* @return string containing cookie.
*/
public String getCookies() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public interface UserInfoRepository extends CrudRepository<UserInfo, ObjectId> {

UserInfo findByUsername(String username);


UserInfo findFirstByUsername(String username);
/**
* Finds by username and auth type.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public interface UserInfoService {

UserInfo getUserInfo(String username);

UserInfo getFistUserInfo(String username);

/**
* Gets users.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public ConfigDetails getConfigDetails() {
configDetails.setPercentile(customApiConfig.getPercentileValue());
configDetails.setHierarchySelectionCount(customApiConfig.getHierarchySelectionCount());
configDetails.setDateRangeFilter(dateRangeFilter);
configDetails.setGitlabToolFieldFlag(customApiConfig.getIsGitlabFieldEnable());
configDetails.setNoOfDataPoints(customApiConfig.getSprintCountForFilters());
configDetails.setGitlabToolFieldFlag(customApiConfig.getIsGitlabFieldEnable());
configDetails.setSprintCountForKpiCalculation(customApiConfig.getSprintCountForKpiCalculation());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ public UserInfo getUserInfo(String username) {
return userInfoRepository.findByUsername(username);
}


@Override
public UserInfo getFistUserInfo(String username) {
return userInfoRepository.findFirstByUsername(username);
}
@Override
public Collection<UserInfo> getUsers() {
List<UserInfo> userInfoList = userInfoRepository.findAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ public class CustomApiConfig {// NOPMD
private String samlTokenEndString;
private String samlUrlStartString;
private String samlUrlEndString;
private Boolean isGitlabFieldEnable;
// repo x axis count days rangeForCheckInsAndMergeRequests
private Integer repoXAxisCountForCheckInsAndMergeRequests;
private String repoToolAPIKey;
Expand All @@ -231,7 +232,6 @@ public void setRepoToolUpdateConnectionUrl(String repoToolUpdateConnectionUrl) {
}

private String repoToolUpdateConnectionUrl;
private Boolean isGitlabFieldEnable;
private String repoToolCodeCommmitsUrl;
private String repoToolDeleteProjectUrl;
private String repoToolDeleteRepoUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ public final class Constant {
public static final String RELIABILITY_REMEDIATION = "reliability_remediation_effort";
public static final String DUPLICATED_LINES = "duplicated_lines";
public static final String N_CLOC = "ncloc";
public static final String FEATURE_BRANCH = "/feature/";
private Constant() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ private void findMergeRequestList(Map<String, String> toBranchForMRList,
String toBranchForMRKPI156 = toBranchForMRList.get(projectBasicConfigId);
List<MergeRequests> mergeRequestList = mergeRequestRepository
.findMergeRequestListBasedOnBasicProjectConfigId(new ObjectId(projectBasicConfigId),
CommonUtils.convertTestFolderToPatternList(new ArrayList<>(issueIdList)),
CommonUtils.convertIssuesListToBranchPattern(new ArrayList<>(issueIdList)),
toBranchForMRKPI156);
projectWiseMergeRequestList.put(projectBasicConfigId, mergeRequestList);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,18 +343,32 @@ public static List<Pattern> convertToPatternListForSubString(List<String> string
public static List<Pattern> convertTestFolderToPatternList(List<String> stringList) {
List<Pattern> regexList = new ArrayList<>();
for (String value : stringList) {
String pattern = new StringBuilder(value).toString();
if (pattern.contains(Constant.FORWARD_SLASH)) {
pattern = pattern.replace(Constant.FORWARD_SLASH, Constant.BACKWARD_FORWARD_SLASH);
}
regexList.add(Pattern.compile(pattern, Pattern.CASE_INSENSITIVE));
if (!value.startsWith(Constant.FORWARD_SLASH)) {
value = Constant.FORWARD_SLASH.concat(value);
perpPatternList(value, regexList);
}
return regexList;
}
public static List<Pattern> convertIssuesListToBranchPattern(List<String> stringList) {
List<Pattern> regexList = new ArrayList<>();
for (String value : stringList) {
perpPatternList(value, regexList);
if (!value.startsWith(Constant.FEATURE_BRANCH)) {
value = Constant.FEATURE_BRANCH.concat(value);
regexList.add(CommonUtils.convertToPatternText(value));
}
regexList.add(CommonUtils.convertToPatternText(value));
}
return regexList;
}
private static void perpPatternList(String value, List<Pattern> regexList) {
String pattern = new StringBuilder(value).toString();
if (pattern.contains(Constant.FORWARD_SLASH)) {
pattern = pattern.replace(Constant.FORWARD_SLASH, Constant.BACKWARD_FORWARD_SLASH);
}
regexList.add(Pattern.compile(pattern, Pattern.CASE_INSENSITIVE));
if (!value.startsWith(Constant.FORWARD_SLASH)) {
value = Constant.FORWARD_SLASH.concat(value);
}
regexList.add(CommonUtils.convertToPatternText(value));
}

/**
* This method convert string to pattern to support ignore case
Expand Down
9 changes: 9 additions & 0 deletions customapi/src/test/resources/json/default/kpi_master.json
Original file line number Diff line number Diff line change
Expand Up @@ -2935,6 +2935,7 @@
"isDeleted": "False",
"defaultOrder": 2,
"kpiCategory": "Iteration",
"kpiSubCategory": "Iteration Review",
"kpiSource": "Jira",
"groupId": 8,
"thresholdValue": "",
Expand Down Expand Up @@ -2968,6 +2969,7 @@
"isDeleted": "False",
"defaultOrder": 3,
"kpiCategory": "Iteration",
"kpiSubCategory": "Iteration Review",
"kpiSource": "Jira",
"groupId": 8,
"thresholdValue": "",
Expand Down Expand Up @@ -3014,6 +3016,7 @@
"isDeleted": "False",
"defaultOrder": 4,
"kpiCategory": "Iteration",
"kpiSubCategory": "Iteration Review",
"kpiSource": "Jira",
"groupId": 8,
"thresholdValue": "",
Expand Down Expand Up @@ -3084,6 +3087,7 @@
"isDeleted": "False",
"defaultOrder": 5,
"kpiCategory": "Iteration",
"kpiSubCategory": "Iteration Review",
"kpiSource": "Jira",
"groupId": 8,
"thresholdValue": "",
Expand Down Expand Up @@ -3122,6 +3126,7 @@
"isDeleted": "False",
"defaultOrder": 6,
"kpiCategory": "Iteration",
"kpiSubCategory": "Iteration Review",
"kpiSource": "Jira",
"groupId": 8,
"thresholdValue": "",
Expand Down Expand Up @@ -3156,6 +3161,7 @@
"isDeleted": "False",
"defaultOrder": 7,
"kpiCategory": "Iteration",
"kpiSubCategory": "Iteration Review",
"kpiSource": "Jira",
"groupId": 8,
"thresholdValue": "",
Expand Down Expand Up @@ -3202,6 +3208,7 @@
"isDeleted": "False",
"defaultOrder": 8,
"kpiCategory": "Iteration",
"kpiSubCategory": "Iteration Review",
"kpiSource": "Jira",
"groupId": 8,
"thresholdValue": "",
Expand Down Expand Up @@ -3240,6 +3247,7 @@
"isDeleted": "False",
"defaultOrder": 9,
"kpiCategory": "Iteration",
"kpiSubCategory": "Iteration Review",
"kpiSource": "Jira",
"groupId": 8,
"thresholdValue": "",
Expand Down Expand Up @@ -3278,6 +3286,7 @@
"isDeleted": "False",
"defaultOrder": 10,
"kpiCategory": "Iteration",
"kpiSubCategory": "Iteration Review",
"kpiSource": "Jira",
"groupId": 8,
"thresholdValue": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import java.util.Map;
import java.util.StringTokenizer;

import com.publicissapient.kpidashboard.common.client.KerberosClient;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -283,4 +284,13 @@ public ProcessorJiraRestClient getJiraOAuthClient(JiraInfo jiraInfo) {
return client;
}

public com.publicissapient.kpidashboard.jiratest.adapter.impl.async.ProcessorJiraRestClient getSpnegoSamlClient(
KerberosClient kerberosClient) {
com.publicissapient.kpidashboard.jiratest.adapter.impl.async.ProcessorJiraRestClient client = null;
kerberosClient.login(jiraTestProcessorConfig.getSamlTokenStartString(), jiraTestProcessorConfig.getSamlTokenEndString(),
jiraTestProcessorConfig.getSamlUrlStartString(), jiraTestProcessorConfig.getSamlUrlEndString());
client = new com.publicissapient.kpidashboard.jiratest.adapter.impl.async.factory.ProcessorAsynchJiraRestClientFactory().createWithAuthenticationCookies(
URI.create(kerberosClient.getJiraHost()), kerberosClient.getCookies(), jiraTestProcessorConfig);
return client;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.publicissapient.kpidashboard.jiratest.adapter.impl.async.ProcessorJiraRestClient;
import com.publicissapient.kpidashboard.jiratest.adapter.impl.async.impl.ProcessorAsynchJiraRestClient;
import com.publicissapient.kpidashboard.jiratest.config.JiraTestProcessorConfig;
import com.publicissapient.kpidashboard.jiratest.spnego.SpnegoAuthenticationHandler;

public class ProcessorAsynchJiraRestClientFactory extends AsynchronousJiraRestClientFactory {

Expand Down Expand Up @@ -65,4 +66,8 @@ public ProcessorJiraRestClient createWithBasicHttpAuthentication(final URI serve
final String password, JiraTestProcessorConfig jiraTestProcessorConfig) {
return create(serverUri, new BasicHttpAuthenticationHandler(username, password), jiraTestProcessorConfig);
}
public ProcessorJiraRestClient createWithAuthenticationCookies(final URI serverUri, final String authCookies,
JiraTestProcessorConfig jiraTestProcessorConfig) {
return create(serverUri, new SpnegoAuthenticationHandler(authCookies), jiraTestProcessorConfig);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@ public class JiraTestProcessorConfig {
private String jiraDirectTicketLinkKey;
private String jiraCloudDirectTicketLinkKey;
private boolean considerStartDate;

private String samlTokenStartString;
private String samlTokenEndString;
private String samlUrlStartString;
private String samlUrlEndString;
@Value("${jira.prevMonthCountToFetchData}")
private Integer prevMonthCountToFetchData;
private long subsequentApiCallDelayInMilli;
}
Loading