diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml deleted file mode 100644 index fdaef460..00000000 --- a/.github/workflows/codecov.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Codecov Report Upload - -on: - push: - branches: - - master - pull_request: - types: [labeled] - -jobs: - unit-test: - permissions: write-all - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: TypeScript Lint GitHub Action - uses: actions/setup-node@v1 - with: - node-version: 16.13 - - name: Install dependencies - run: npm install - - name: Test - run: npm run unit_test_ci - env: - FYLE_CLIENT_ID: ${{secrets.FYLE_CLIENT_ID}} - CALLBACK_URL: ${{secrets.CALLBACK_URL}} - API_URL: ${{secrets.API_URL}} - APP_URL: ${{secrets.APP_URL}} - QBO_CLIENT_ID: ${{secrets.QBO_CLIENT_ID}} - QBO_SCOPE: ${{secrets.QBO_SCOPE}} - QBO_AUTHORIZE_URI: ${{secrets.QBO_AUTHORIZE_URI}} - QBO_APP_URL: ${{secrets.QBO_APP_URL}} - SENTRY_DSN: ${{secrets.SENTRY_DSN}} - RELEASE: ${{secrets.RELEASE}} - FYLE_APP_URL: ${{secrets.FYLE_APP_URL}} - TESTS_WORKSPACEID: ${{secrets.TESTS_WORKSPACEID}} - - name: Unit Test Coverage - uses: fylein/comment-test-coverage@master - with: - token: ${{ secrets.GITHUB_TOKEN }} - path: coverage/coverage-summary.json - title: Unit Test Coverage - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml deleted file mode 100644 index 87e6775c..00000000 --- a/.github/workflows/documentation.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Build and Deploy Documentation to Github Page - -on: - push: - branches: - - master - -permissions: - contents: write - -jobs: - build-and-deploy-documentation: - runs-on: ubuntu-latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Node - uses: actions/setup-node@v1 - with: - node-version: 16.13 - - name: Install dependency - run: npm install -g @compodoc/compodoc - - name: Generate docs - run: compodoc -p tsconfig.doc.json - - name: Deploy to github page - uses: JamesIves/github-pages-deploy-action@v4 - with: - folder: documentation diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml deleted file mode 100644 index 3cbc8768..00000000 --- a/.github/workflows/unit-test.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Unit test - -on: - pull_request: - types: [assigned, opened, synchronize, reopened] - -jobs: - unit-test: - permissions: write-all - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: TypeScript Lint GitHub Action - uses: actions/setup-node@v1 - with: - node-version: 16.13 - - name: Install dependencies - run: npm install - - name: Test - run: npm run unit_test_ci - env: - FYLE_CLIENT_ID: ${{secrets.FYLE_CLIENT_ID}} - CALLBACK_URL: ${{secrets.CALLBACK_URL}} - API_URL: ${{secrets.API_URL}} - APP_URL: ${{secrets.APP_URL}} - QBO_CLIENT_ID: ${{secrets.QBO_CLIENT_ID}} - QBO_SCOPE: ${{secrets.QBO_SCOPE}} - QBO_AUTHORIZE_URI: ${{secrets.QBO_AUTHORIZE_URI}} - QBO_APP_URL: ${{secrets.QBO_APP_URL}} - SENTRY_DSN: ${{secrets.SENTRY_DSN}} - RELEASE: ${{secrets.RELEASE}} - FYLE_APP_URL: ${{secrets.FYLE_APP_URL}} - TESTS_WORKSPACEID: ${{secrets.TESTS_WORKSPACEID}} - - name: Unit Test Coverage - uses: fylein/comment-test-coverage@master - with: - token: ${{ secrets.GITHUB_TOKEN }} - path: coverage/coverage-summary.json - title: Unit Test Coverage - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 diff --git a/src/app/auth/fyle-callback/fyle-callback.component.ts b/src/app/auth/fyle-callback/fyle-callback.component.ts index 4f3c8198..2b5da969 100644 --- a/src/app/auth/fyle-callback/fyle-callback.component.ts +++ b/src/app/auth/fyle-callback/fyle-callback.component.ts @@ -35,7 +35,7 @@ export class FyleCallbackComponent implements OnInit { private saveUserProfileAndNavigate(code: string): void { this.authService.getClusterDomainByCode(code).subscribe((clusterDomainWithToken: ClusterDomainWithToken) => { // TODO: rename staging service to quickbooks-api - this.storageService.set('cluster-domain', `${clusterDomainWithToken.cluster_domain}/${environment.production ? 'qbo-api': 'api'}`); + this.storageService.set('cluster-domain', `${clusterDomainWithToken.cluster_domain}/${environment.production ? 'qbo-api/api': 'api'}`); this.authService.loginWithRefreshToken(clusterDomainWithToken.tokens.refresh_token).subscribe(response => { const user: MinimalUser = { 'email': response.user.email,