8000 fix(api): reset application RepositoryStrategy against ConnectionType by fsamin · Pull Request #4216 · ovh/cds · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(api): reset application RepositoryStrategy against ConnectionType #4216

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

Merged
merged 2 commits into from
Apr 24, 2019

Conversation

fsamin
Copy link
Member
@fsamin fsamin commented Apr 24, 2019
  1. Description
  2. Related issues
  3. About tests
  4. Mentions

@ovh/cds

@fsamin fsamin added api ascode bugs, features concerning as code format bug labels Apr 24, 2019
@@ -18,6 +18,14 @@ func Import(db gorp.SqlExecutor, store cache.Store, proj *sdk.Project, app *sdk.
return sdk.WrapError(erre, "application.Import> Unable to check if application exists")
}

if app.RepositoryStrategy.ConnectionType == "ssh" {
Copy link
Member

Choose a reason for hiding this comment

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

Can you add this code directly to the exportentities -> sdk struct convert func.

@yesnault yesnault merged commit 161db26 into master Apr 24, 2019
@fsamin fsamin deleted the fix/20190424/143800 branch April 26, 2019 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api ascode bugs, features concerning as code format bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0