Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. Queries missing after upgrade to 13.4.1

Queries missing after upgrade to 13.4.1

Added by Gregor Buergisser 11 months ago

Hello all

My enterprise is running the community edition (self hosted) and we recently upgrade from 13.2.1 to 13.4.1. Now there are several users reporting the missing  of previuosly defined workpackage queries.

That is: Some of the queries/reports that were visible in the left "Work packages" sidebar are now missing. Some of the missing reports are private ones, some are public reports.

Altough I don't now that much about the architecture of OpenProject I have checked the Postgresql database: The queries are still present in the 'queries' table. I can't find any difference to the ones that are still visible in the web ui.

  • Has anyone experienced the same problem?

  • Any ideas how to fix it, how to make the queries reappear in the ui?

Thank you all for your help!

Gregor


Replies (3)

RE: Queries missing after upgrade to 13.4.1 - Added by Tizian Rößler 11 months ago

Hi Geregor,

My guess would be that out of some reasons some of the views get lost during the Update.
Could you check in your database if the queries you don't see anymore has an entry in the view table in the database.
As example you could use the following SQL-Query to check if the view of a query is missing:

select 
	q.name, 
    case when 
    	v.query_id is null 
    then 
    	'false' 
    else 
    	'true' 
    end as has_view 
from 
	queries as q 
left join 
	views as v 
on 
	q.id = v.query_id 
where 
	q.name = 'NameOfMissingQuery';

Best regards

Tizian

RE: Queries missing after upgrade to 13.4.1 - Added by Gregor Buergisser 11 months ago

Hi Tizian,

Thank you for your reply! I have tried your suggestion. It seems that the missing queries are still available in the views table.

Here an expample:

openproject=# select id from queries where name = 'MRO';
 id  
-----
 519
(1 row)

openproject=# select * from views where query_id = 519;
 id  | query_id | options | type  |          created_at           |          updated_at           
-----+----------+---------+-------+-------------------------------+-------------------------------
 279 |      519 | {}      | gantt | 2021-04-12 13:16:11.049844+02 | 2021-07-15 15:24:52.325627+02
(1 row)

While executing several select statements and playing around I noticed that some views have type gantt and others have type work_packages_table. So I simply tried to change the type of a missing view and set it to work_packages_table - and there you go - it miraculously reappears! 🤩 

Best regards,
Gregor

RE: Queries missing after upgrade to 13.4.1 - Added by Tizian Rößler 11 months ago

Hi Gergor,

In this case the reason why you don't see the Queries anymore is the separation of the gantt chart in an own module:

https://www.openproject.org/docs/release-notes/13-3-0/#separate-gantt-charts-module

The queries with the gantt type are moved to new gannt module and aren't shown in the query section of the workpackages anymore

Best regards

Tizian

  • (1 - 3/3)
Loading...