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

App Deploy: Add Public GitLab Repository support #3239

Merged
merged 17 commits into from
Dec 17, 2018
Merged

Conversation

nwmac
Copy link
Contributor

@nwmac nwmac commented Nov 23, 2018

No description provided.

@nwmac nwmac self-assigned this Nov 23, 2018
@cfdreddbot
Copy link

✅ Hey nwmac! The commit authors and yourself have already signed the CLA.

@codecov
Copy link

codecov bot commented Nov 27, 2018

Codecov Report

Merging #3239 into v2-master will decrease coverage by 0.09%.
The diff coverage is 56.94%.

@@             Coverage Diff              @@
##           v2-master    #3239     +/-   ##
============================================
- Coverage      71.01%   70.91%   -0.1%     
============================================
  Files            639      642      +3     
  Lines          28029    28199    +170     
  Branches        6387     6411     +24     
============================================
+ Hits           19904    19998     +94     
- Misses          8125     8201     +76

Copy link
Contributor

@richard-cox richard-cox left a comment

Choose a reason for hiding this comment

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

  • redeploy a git project throws error on step 1.
    ERROR TypeError: Cannot read property 'getRepository' of null
        at SwitchMapSubscriber.project (deploy-app.effects.ts:61)
    
    Looks like the CheckProjectExists contains a null scm property
  • clicking on a link to a commit should take user to gitlab.com/<repo>/commit/<commit>, as per github
  • low priority
    • select github, enter richard-cox/cf-quick-app for project, click next
    • see list of commits
    • click back
    • select gitlab, enter richard-cox/cf-quick-app for project, click next
    • list of commits has not changed
      ..
    • this only seems to be a problem for repos with same name. could be something like we're using the same pagination key

import { inject, TestBed } from '@angular/core/testing';
import { CommonModule } from '@angular/common';
import { CoreModule } from '../../../core/core.module';
import { SharedModule } from '../../../shared/shared.module';
import { createBasicStoreModule } from '../../../test-framework/store-test-helper';
import { AppState } from '../../../store/app-state';
import { GitSCMService } from '../../../shared/data-services/scm/scm.service';
import { GithubProjectExistsDirective } from './github-project-exists.directive';
import { GITHUB_API_URL, getGitHubAPIURL } from '../../../core/github.helpers';


describe('GithubProjectExistsDirective', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like from here down Github hasn't been updated to GitSCM

@richard-cox richard-cox added needs attention This PR needs attention and removed in review labels Dec 4, 2018
@nwmac nwmac removed the needs attention This PR needs attention label Dec 13, 2018
@richard-cox
Copy link
Contributor

I've pushed a commit with some minor changes, also noticed the deployment info icon for gitlab appears well to the right, think this might be a merge issue. Will have a look on monday

@richard-cox
Copy link
Contributor

Icon issue was fixed after restarting local dev server

@richard-cox richard-cox merged commit 069d5c2 into v2-master Dec 17, 2018
@richard-cox richard-cox deleted the gitlab branch December 17, 2018 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants