-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix base URL usage in frontend #85
Conversation
Workspace helped to find where we don't have the BASE_URL: http://localhost:port referenced when constructing URLs. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/austenstone/github-value?shareId=XXXX-XXXX-XXXX-XXXX).
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
@@ -6,7 +6,7 @@ | |||
import { CommonModule } from '@angular/common'; | |||
import { ClipboardModule } from '@angular/cdk/clipboard'; | |||
import { ThemeService } from '../services/theme.service'; | |||
|
|||
import { BASE_URL } from '../services/server.service'; |
Check failure
Code scanning / ESLint
Disallow unused variables Error
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 29 days ago
To fix the problem, we need to remove the unused BASE_URL
import from the file frontend/src/app/install/install.component.ts
. This will resolve the ESLint error and clean up the code by removing unnecessary imports.
- Locate the import statement for
BASE_URL
on line 9. - Remove the
BASE_URL
import from the import statement.
-
Copy modified line R9
@@ -8,3 +8,3 @@ | ||
import { ThemeService } from '../services/theme.service'; | ||
import { BASE_URL } from '../services/server.service'; | ||
|
||
|
@@ -16,6 +16,7 @@ | |||
import { ActiveUsersChartComponent } from './dashboard-card/active-users-chart/active-users-chart.component'; | |||
import { InstallationsService } from '../../../services/api/installations.service'; | |||
import { StatusComponent } from './status/status.component'; | |||
import { BASE_URL } from '../../../services/server.service'; |
Check failure
Code scanning / ESLint
Disallow unused variables Error
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 29 days ago
The best way to fix the problem is to remove the unused BASE_URL
import from the file. This will resolve the ESLint error and clean up the code by removing unnecessary imports.
To implement this fix, we need to:
- Remove the import statement for
BASE_URL
on line 19.
-
Copy modified line R19
@@ -18,3 +18,3 @@ | ||
import { StatusComponent } from './status/status.component'; | ||
import { BASE_URL } from '../../../services/server.service'; | ||
|
||
|
@@ -18,6 +18,7 @@ | |||
import { MatFormFieldModule } from '@angular/material/form-field'; | |||
import { MatInputModule } from '@angular/material/input'; | |||
import { InstallationsService } from '../services/api/installations.service'; | |||
import { BASE_URL } from '../services/server.service'; |
Check failure
Code scanning / ESLint
Disallow unused variables Error
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 29 days ago
The best way to fix the problem is to remove the unused import of BASE_URL
from the file. This will resolve the ESLint error and clean up the code by removing unnecessary imports.
- Locate the import statement for
BASE_URL
on line 21. - Remove the import statement entirely since
BASE_URL
is not used anywhere in theMainComponent
class.
-
Copy modified line R21
@@ -20,3 +20,3 @@ | ||
import { InstallationsService } from '../services/api/installations.service'; | ||
import { BASE_URL } from '../services/server.service'; | ||
|
||
|
The BASE_URL is only required for the PR comments. When PR comments go out we don't know the URL to send the user to. |
Workspace helped to find where we don't have the BASE_URL: http://localhost:port
referenced when constructing URLs.
For more details, open the Copilot Workspace session.