Skip to content
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

Filter by project broken #670

Closed
srdco opened this issue Mar 30, 2019 · 11 comments
Closed

Filter by project broken #670

srdco opened this issue Mar 30, 2019 · 11 comments

Comments

@srdco
Copy link
Contributor

srdco commented Mar 30, 2019

Describe the bug
Filter by project dropdown blank in all views.

To Reproduce
Steps to reproduce the behavior:

  1. Update to latest version (not master)
  2. Go to any page -- invoice, my times, etc.
  3. Try to filter by project (after choosing customer etc)

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop/Smartphone
Please complete the following information if this seems to be a frontend issue:

  • Device: Desktop computer
  • OS: Ubuntu 18.04
  • Browser: Firefox
  • Version: 63.0

Additional context
Add any other context about the problem here.

  • Kimai version 0.8.1
@kevinpapst
Copy link
Member

No, it's not. Check the stable demo: https://www.kimai.org/demo/
You need to check your log files for more infos.

@kevinpapst
Copy link
Member

???

@StefanWinterberger
Copy link

StefanWinterberger commented Apr 4, 2019

Hey @kevinpapst
I face the same problem. Its also reproducable on the Demo-Server.
I logged in with 'john_user' to the 'Last Stable' Server. Then in 'My times' i tried to filter by Project but the drop down is empty.

By the way. Tank you very much for your work on this project. We like to use it :)

I use:

  • Firefox 66.0.2
  • Desktop Computer Windows 10

@kevinpapst
Copy link
Member

I am sorry, but I still cannot reproduce it.
Tested with Safari 12.1, Firefox 66.0.2 and Chrome 73.0 on MacOS. I tried with the users susan_super and john_user on the "latest development" demo and the "latest stable" demo.

It simply works for me.
I need more information, otherwise I can't help.

Please open your browser console and check it + the your network tab upon changing the customer.
There should be a request like https://demo.kimai.org/api/projects?customer=9&orderBy=name&visible=1
What is the result? Is there an error?

@StefanWinterberger
Copy link

Hi again
Ok, first point. I didn't get that i have to choose a Customer before i can filter by project. I expected the same list that i get when i open the Dropdown for Projects when i add a new timesheet entry (without selecting a Customer). So this part works on the Demo-Server.

Second point on our installation when i select a customer the following call is made: /api/projects?customer=29&orderBy=name&visible=3 and this calle returns an HTTP 500 (Internal Server Error). Saddly on the Server i didn't get any logs under /var/log/apache2/error.log
Are there any other log files?

Additional Info:
The Current DB was importet from a Kimai V1 Server. Maybe there is something on the DB i can check for you to help?

@kevinpapst
Copy link
Member

Hm, I still don't know what the best UX is here. If you have only a couple of customers/projects a full list would work. But some people have hundreds of customers and even more projects, then the full list would be a pain to use...

Regarding the 500: check in your Kimai installation at var/log/prod.log.
But I would guess that you don't have proper file-permissions set for var/cache/ - the API libraries store cache files upon the first request. If that fails a 500 is raised.

@StefanWinterberger
Copy link

Hey @kevinpapst
Thank you very much for the hint. I repeated the chown and chmod command from the install documentation. And know it works :) It seems i messed something up while the installtion.

Regarding the UX. I see that for a lot of projects it could be a mess with such a big list. But then again, the user is still free to pre-filter it with the customer field. Maybe you can make it configurable if the user wants to show the list without customer selected?
A second hint: If the projects field only can be used when a customer is selected, maybe you can disable it if no customer is selected. So it would be more clear how to use it :)

Thanks again.
For me this issue can be closed.

@kevinpapst
Copy link
Member

Any feedback @srdco ?

@srdco
Copy link
Contributor Author

srdco commented Apr 6, 2019

I'm sorry -- haven't been able to get back to it, as I've been completely swamped. I'll post back as soon as I have a chance to get to it again.
I will note that I was used to choosing the customer first, so that wasn't a problem.

It only showed up after updating to 0.8.1.

I will check the log files, and get back to you. It may be a permissions problem -- seems like that plagued me on first install. I'll close for now, and can re-open if I find anything that's not just user error.

@srdco srdco closed this as completed Apr 6, 2019
@kevinpapst
Copy link
Member

@srdco check var/cache/prod/ - the API is trying to create cache files there

@lock
Copy link

lock bot commented Jun 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.

@lock lock bot locked and limited conversation to collaborators Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants