Skip to content

Commit

Permalink
New Features:
Browse files Browse the repository at this point in the history
1. DevProbe API no CORS errors
New Pages:
Bugs Corrected:
To Be Corrected:
0. On product delete, delete trace results
1. On product delete, delete flamegraph result
2. Add a chat
  • Loading branch information
juanfranciscocis committed Aug 31, 2024
1 parent 639a1e7 commit 789eb63
Show file tree
Hide file tree
Showing 20 changed files with 6 additions and 154 deletions.
4 changes: 0 additions & 4 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,6 @@ const routes: Routes = [
path: 'render-restart',
loadChildren: () => import('./pages/render-restart/render-restart.module').then( m => m.RenderRestartPageModule)
},
{
path: 'render',
loadChildren: () => import('./pages/render/render.module').then( m => m.RenderPageModule)
},
];

@NgModule({
Expand Down
3 changes: 0 additions & 3 deletions src/app/pages/flame-graph-compare/flame-graph-compare.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { ActivatedRoute } from "@angular/router";
import { User } from "../../interfaces/user";
import {getGenerativeModel, VertexAI} from "@angular/fire/vertexai-preview";
import {AiMessage} from "../../interfaces/ai-message";
import {RenderRestartService} from "../../services/render-restart.service";

@Component({
selector: 'app-flame-graph-compare',
Expand Down Expand Up @@ -59,7 +58,6 @@ export class FlameGraphComparePage implements OnInit {
private flameGraphService: FlameGraphService,
private loadingCtrl: LoadingController,
private route: ActivatedRoute,
private renderRestartService: RenderRestartService
) { }

ngOnInit() {}
Expand All @@ -69,7 +67,6 @@ export class FlameGraphComparePage implements OnInit {
this.getFlameGraph().then(() => {
this.sendMessage().then(() => {
this.chatStyle();
this.flameGraphService.hasRestarted = false;
});
});
}
Expand Down
17 changes: 0 additions & 17 deletions src/app/pages/render/render-routing.module.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/app/pages/render/render.module.ts

This file was deleted.

14 changes: 0 additions & 14 deletions src/app/pages/render/render.page.html

This file was deleted.

Empty file.
17 changes: 0 additions & 17 deletions src/app/pages/render/render.page.spec.ts

This file was deleted.

21 changes: 0 additions & 21 deletions src/app/pages/render/render.page.ts

This file was deleted.

17 changes: 1 addition & 16 deletions src/app/services/flame-graph.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,19 @@ import {collection, doc, Firestore, getDoc, getDocs} from "@angular/fire/firesto
import {Product} from "../interfaces/product";
import {DocumentData} from "@angular/fire/compat/firestore";
import {HttpClient} from "@angular/common/http";
import {RenderRestartService} from "./render-restart.service";

@Injectable({
providedIn: 'root'
})
export class FlameGraphService {

url:string = 'https://cors-ea3m.onrender.com/https://devprobeapi.onrender.com/flame_graph_date';
hasRestarted = false;
url:string = 'https://devprobeapi.onrender.com/flame_graph_date';



constructor(
private firestore: Firestore,
private http: HttpClient,
private renderRestartService:RenderRestartService,
) { }

async getProducts(orgName:string){
Expand Down Expand Up @@ -56,18 +53,6 @@ export class FlameGraphService {
return res;

}catch (e) {
console.log("Error", e);

if (!this.hasRestarted) {
await this.renderRestartService.restartService();
}
this.hasRestarted = true;
// @ts-ignore
if (e.status === 503) {
//wait for 5 seconds and retry
await new Promise(resolve => setTimeout(resolve, 5000));
return await this.getFlameGraphByDate(orgName, productObjective, date);
}
return {};
}
}
Expand Down
36 changes: 0 additions & 36 deletions src/app/services/render-restart.service.ts

This file was deleted.

1 change: 1 addition & 0 deletions www/3151.2dc40fe21c503ab1.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 789eb63

Please sign in to comment.