Skip to content

Conversation

@myabc
Copy link
Contributor

@myabc myabc commented Nov 7, 2025

Ticket

https://community.openproject.org/wp/66124

What are you trying to accomplish?

Screenshots

What approach did you choose and why?

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@myabc myabc added DO NOT MERGE feature ruby Pull requests that update Ruby code javascript Pull requests that update Javascript code styling labels Nov 7, 2025
@myabc myabc added this to the 17.0.x milestone Nov 7, 2025
@myabc myabc force-pushed the feature/66124-overview-widget-budgets branch 2 times, most recently from d5d96ca to 4f16ffc Compare November 7, 2025 12:59
@myabc myabc force-pushed the feature/66124-overview-widget-budgets branch from 4f16ffc to e998652 Compare November 10, 2025 08:30
public setQueryProps() {
this.datasets = [];

const params = this.graphParams;

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable params.

Copilot Autofix

AI 19 days ago

To fix the problem, we should remove the unused declaration and assignment of the params variable from the setQueryProps() method in the BudgetOverviewGraphComponent class. Specifically, delete line 78 (const params = this.graphParams;) entirely. No further changes are needed, as the rest of the commented code is already non-executable, and params is not used elsewhere in the method.


Suggested changeset 1
frontend/src/app/shared/components/budget-graphs/overview/budget-overview-graph.component.ts

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/frontend/src/app/shared/components/budget-graphs/overview/budget-overview-graph.component.ts b/frontend/src/app/shared/components/budget-graphs/overview/budget-overview-graph.component.ts
--- a/frontend/src/app/shared/components/budget-graphs/overview/budget-overview-graph.component.ts
+++ b/frontend/src/app/shared/components/budget-graphs/overview/budget-overview-graph.component.ts
@@ -75,7 +75,6 @@
   public setQueryProps() {
     this.datasets = [];
 
-    const params = this.graphParams;
 
     // this.graphConfigurationService.configuration = new WpGraphConfiguration(params, {}, 'horizontalBar');
     // this.graphConfigurationService.globalScope = this.globalScope;
EOF
@@ -75,7 +75,6 @@
public setQueryProps() {
this.datasets = [];

const params = this.graphParams;

// this.graphConfigurationService.configuration = new WpGraphConfiguration(params, {}, 'horizontalBar');
// this.graphConfigurationService.globalScope = this.globalScope;
Copilot is powered by AI and may make mistakes. Always verify output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DO NOT MERGE feature javascript Pull requests that update Javascript code ruby Pull requests that update Ruby code styling

Development

Successfully merging this pull request may close these issues.

2 participants