Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

feat: Add warning for missing upstream during 'keptn create project' #6433

Merged
merged 1 commit into from Dec 28, 2021

Conversation

odubajDT
Copy link
Contributor

Signed-off-by: odubajDT ondrej.dubaj@dynatrace.com

This PR

  • adds warning for missing upstream when using cli

Related Issues

Fixes #6306

@odubajDT odubajDT requested a review from a team as a code owner December 27, 2021 10:42
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
@odubajDT odubajDT force-pushed the feat/6306/add-missing-upstream-warning branch from 7ef6d14 to d1f1815 Compare December 27, 2021 10:47
@sonarcloud
Copy link

sonarcloud bot commented Dec 27, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Dec 27, 2021

Codecov Report

Merging #6433 (d1f1815) into master (6e85346) will decrease coverage by 3.37%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #6433      +/-   ##
==========================================
- Coverage   57.65%   54.28%   -3.38%     
==========================================
  Files         466      336     -130     
  Lines       26560    22613    -3947     
  Branches     1810     1167     -643     
==========================================
- Hits        15314    12275    -3039     
+ Misses      10219     9376     -843     
+ Partials     1027      962      -65     
Impacted Files Coverage Δ
cli/cmd/create_project.go 66.26% <ø> (ø)
bridge/client/app/_models/deployment.ts 24.13% <0.00%> (-65.66%) ⬇️
bridge/shared/models/service.ts 36.36% <0.00%> (-54.95%) ⬇️
...ews/ktb-service-view/ktb-service-view.component.ts 33.80% <0.00%> (-43.13%) ⬇️
bridge/client/app/_services/data.service.ts 22.38% <0.00%> (-30.53%) ⬇️
...s/ktb-sequence-list/ktb-sequence-list.component.ts 30.98% <0.00%> (-29.46%) ⬇️
bridge/shared/models/remediation-action.ts 14.28% <0.00%> (-28.58%) ⬇️
...s/ktb-sequence-view/ktb-sequence-view.component.ts 30.32% <0.00%> (-27.41%) ⬇️
...b-service-details/ktb-service-details.component.ts 28.00% <0.00%> (-26.17%) ⬇️
...s/ktb-stage-details/ktb-stage-details.component.ts 27.65% <0.00%> (-25.68%) ⬇️
... and 181 more

@odubajDT odubajDT changed the title feat: Add warning for missing upstream feat: Add warning for missing upstream during keptn create project Dec 27, 2021
@odubajDT odubajDT changed the title feat: Add warning for missing upstream during keptn create project feat: Add warning for missing upstream during 'keptn create project' Dec 27, 2021
@@ -25,7 +26,7 @@ type createProjectCmdParams struct {
var createProjectParams *createProjectCmdParams

const gitErrMsg = `Please specify a 'git-user', 'git-token', and 'git-remote-url' as flags for configuring a Git upstream repository`
const gitMissingUpstream = `WARNING: Creating a project without Git upstream repository is not recommended.
const gitMissingUpstream = `WARNING: Creating a project without Git upstream repository is not recommended and will not be supported in the future anymore.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should be a bit more specific here, e.g., stating which version we plan to deprecate this support.
Though you have implemented it according to #6306, so I'll approve this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add a specific version there, it is not a problem, but do we already know in which version we want to deprecate the support ?

Copy link
Member

@christian-kreuzberger-dtx christian-kreuzberger-dtx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (though please see my comment)

@odubajDT odubajDT merged commit 7a25226 into master Dec 28, 2021
@mowies mowies deleted the feat/6306/add-missing-upstream-warning branch May 4, 2022 06:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI: Add warning for missing upstream
2 participants