question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'apply_query' is not defined

See original GitHub issue

This line https://github.com/django-helpdesk/django-helpdesk/blob/master/helpdesk/views/staff.py#L1220

raises the next error:

NameError /reports/{report}/
'apply_query' is not defined

it’s related to this commit but it seems like during some merges the old code appeared or something; I’ve spent some time trying to work it out but failed.

To Reproduce Steps to reproduce the behavior: 0. Login

  1. Save some query on the tickets page
  2. Navigate to the /reports/daysuntilticketclosedbymonth/
  3. Load that query and apply it
  4. See the exception

Expected behavior The query is applied and not 500 resp is returned

The problem is applicable to all browser and OS. And the master branch at least.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
gwassercommented, Oct 14, 2020

Closing this issue since it should be fixed in master for the 0.3.0 release.

1reaction
alligatorbaitcommented, Oct 14, 2020

master branch has this issues solved!

Read more comments on GitHub >

github_iconTop Results From Across the Web

OData v6 - Custom EnableQueryAttribute don't work #834
It seems that the $skip was applied to the result returned by $top, not to the total collection passed in parameter (queryable). I'm...
Read more >
Convert OData ApplyQuery method result with $expand option ...
I want in my ApplyQuery method to convert base.ApplyQuery result to some form of list and then iterate through it for some modification...
Read more >
EnableQueryAttribute.ApplyQuery Method - Microsoft Learn
Applies the query to the given IQueryable based on incoming query from uri and query settings. By default, the implementation supports $top, $skip, ......
Read more >
Apply Query is not finishing in Power BI Desktop
Dear Power BI Team, please, help us to solve the issue with Apply is not finishing in our report. It was working fine...
Read more >
Apply query changes stuck in processing when setting up an ...
When setting up an Assemble project in Power BI, the Apply query changes process gets stuck in "Creating connection in model".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found