Skip to content

Commit

Permalink
feat(GAPP-4464): add migration api end-point (#179)
Browse files Browse the repository at this point in the history
* Fix(GAPP-4464): Oikos Migration

* Feat(GAPP-4464): migration api end-point add

* fix: env variables

* fix: enpoints error

---------

Co-authored-by: Regan <[email protected]>
  • Loading branch information
joelcoxokc and RayGone committed Nov 27, 2023
1 parent ff3594a commit 2803348
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"ng": "ng",
"start": "ng build --configuration production && node server.js",
"build": "ng build",
"dev": "ng serve",
"dev": "SET NODE_OPTIONS=--openssl-legacy-provider && ng serve",
"test": "jest",
"lint": "ng lint",
"e2e": "ng e2e",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { ControlType, GMTemplate, ValueType } from '@npl-template';
import { MAT_DIALOG_DATA, MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
import uuid from 'uuid';
import { GeocoderService } from '@npl-shared/geocoder.service';
import { Observable, combineLatest, of } from 'rxjs';
import { Observable, combineLatest, of, throwError } from 'rxjs';
import { PeopleGroupService } from '../people-group.service';
import { MatSnackBar } from '@angular/material/snack-bar';

Expand Down Expand Up @@ -164,7 +164,7 @@ export class MigrateStreamDialogComponent extends Unsubscribable implements OnIn
} else {
this.snackBack.open('Error Migrating', 'Ok');
}
return error;
return throwError(error);
})
)
.subscribe((result) => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/oikos/oikos.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { MigrateDto, Team, Workspace } from './oikos.interface';
providedIn: 'root',
})
export class OikosService {
public url = environment.oikosApi;
public url = environment.apiBase + environment.oikosApi;
public constructor(private http: HttpClient) {}

public getSelf(): Observable<any> {
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const environment = {
apiBase: 'https://npl-api.genmapper.com/api/',
ipGeoUrl: 'https://ipgeolocation.abstractapi.com/v1/',
ipGeoApiKey: 'c5bb07e6f04a42c680356656041a722b',
oikosApi: 'https://api.thegapp.app/api/',
oikosApi: 'oikos-relay/',
authConfig: {
authority: 'https://myidp.io',
clientId: 'npl_client',
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.qa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const environment = {
apiBase: 'https://npl-api-qa.genmapper.com/api/',
ipGeoUrl: 'https://ipgeolocation.abstractapi.com/v1/',
ipGeoApiKey: 'c5bb07e6f04a42c680356656041a722b',
oikosApi: 'https://oikos-api-qa.taethni.com/api/',
oikosApi: 'oikos-relay/',
authConfig: {
authority: 'https://qa.myidp.io',
clientId: 'npl_client',
Expand Down
7 changes: 3 additions & 4 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ export const environment = {
production: false,
apiKey: 'AIzaSyCzMNmQPVY9uivoKSzoj0ACwKr-LxxcHko',
// apiBase: 'https://localhost:44320/api/',
// apiBase: 'https://localhost:7001/api/',
apiBase: 'https://npl-api-qa.genmapper.com/api/',
// oikosApi: 'https://localhost:7001/api/',
oikosApi: 'https://oikos-api-qa.taethni.com/api/',
apiBase: 'https://localhost:8001/api/',
// apiBase: 'https://npl-api-qa.genmapper.com/api/',
oikosApi: 'oikos-relay/',
authConfig: {
authority: 'https://qa.myidp.io',
// authority: 'http://localhost:5000',
Expand Down

0 comments on commit 2803348

Please sign in to comment.