Git Product home page Git Product logo

kimai2-console's People

Contributors

kevinpapst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

socialsky-io

kimai2-console's Issues

different requirements - which is correct?

In the store https://www.kimai.org/store/console-phar.html it is written:

.. PHAR technology, so you need PHP >= 7.3 installed ...

whereas in this readme https://github.com/kevinpapst/kimai2-console#readme

Requirements
PHP 7.2.5

which one is correct?

Using recent Linux Mint 19.3 there's only php7.2 - so I get:

:~$ kimai configuration:create
 [ERROR] Failed execution: There are no commands defined in the "configuration" namespace.           
  There are no commands defined in the "configuration" namespace.

Allow to specify a time offset for 'start' and 'stop' commands

When starting or stopping a time record is delayed for various reasons, it would be nice to have a parameter to counter that delay.

For instance like this:

kimai start --offset -10 ...

Would start the new task like it would have been started 10 minutes earlier.

kimai start error 400 when activity got slash char

Hi,

my commands look like these:

kimai start --customer 'Customer-X' --project 'Project X' --activity 'Training/Study' --description 'Any description' --tags ''

Please note the different String Parameter:

  • customer uses a dash, which is working
  • project uses a space, which is also working
  • activity uses a slash which results in a error 400 - Bad request
    kimai2

However this is working:

kimai start --customer 'Customer-X' --project 'Project X' --activity '10' --description 'Any description' --tags ''

I switched from activity 'Training/Study' to '10', the ID of this activity -> This is working. Other activity string-parameter like 'Meeting' or 'Docs' is also working

Kimai Version:
Kimai 2 - 1.7 stable (Ayumi) by Kevin Papst and contributors.
Kimai 2 - Remote Console version 0.3.3 2020-01-27 17:22:30 UTC (#5546282)

OS:
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=20.0.3
DISTRIB_CODENAME=Lysia
DISTRIB_DESCRIPTION="Manjaro Linux"

Allow to create time records with specified time and duration

kimai2-console could be a useful tool to create time records via scripts from the shell in bulk. That would be useful for instance to import longer vacation, sick-leave periods or national holidays. (In case kimai2 is used to track attendance and working hours.)

To do that, the kimai2-console would need an option to specify the date and duration of those entries when creating them.

PHP 8

composer global require kevinpapst/kimai2-console
Changed current directory to /home/necrogami/.config/composer
Info from https://repo.packagist.org: #StandWithUkraine
Cannot use kevinpapst/kimai2-console's latest version 0.3.3 as it requires php ^7.2.5 which is not satisfied by your platform.

In PackageDiscoveryTrait.php line 316:

  Package kevinpapst/kimai2-console has requirements incompatible with your PHP version, PHP extensions and Composer version:
    - kevinpapst/kimai2-console 0.3.3 requires php ^7.2.5 which does not match your installed version 8.1.8.

Don't prompt for a timesheet when only one is active

Thanks very much for this tool! I'm finding it very useful.

A small quality-of-life improvement that would be nice to see: when using kimai stop or kimai active -d and there is only one active timesheet, it would be nice if the prompt to select a timesheet was skipped. At the moment there is a prompt with only one option, which seems redundant:

kimai stop
 ----- -------------------------- ---------------------- ------------ ------------ ---------------------------------------------------------- ------ 
  ID    Started at                 Activity               Project      Customer     Description                                                Tags  
 ----- -------------------------- ---------------------- ------------ ------------ ---------------------------------------------------------- ------ 
  217   ...
 ----- -------------------------- ---------------------- ------------ ------------ ---------------------------------------------------------- ------ 

 Please select a timesheet:
  [0] 217
 > 0

                                                                                                                        
 [OK] Stopped 1 active timesheet(s) with ID: 217                                                                        
                                                                                                                       

400 Bad Request in customer select after correct listing

Kimai start displays customer list correctly (version 0.4:

image

but selection of customer fails (local php version PHP 8.2.6, i also tested with 8.0.27):
image

See error message in remote kimai 2.0.26 below, I also tested with demo kimai, same error.

[2023-06-22T17:33:54.102129+02:00] request.ERROR: Uncaught PHP Exception FOS\RestBundle\Exception\InvalidParameterException: "Parameter "customers" of value "4" violated a constraint "This value should be of type iterable."" at /home/clients/59/kimai2/vendor/friendsofsymfony/rest-bundle/Exception/InvalidParameterException.php line 62 {"exception":"[object] (FOS\RestBundle\Exception\InvalidParameterException(code: 0): Parameter "customers" of value "4" violated a constraint "This value should be of type iterable." at /home/clients/59/kimai2/vendor/friendsofsymfony/rest-bundle/Exception/InvalidParameterException.php:62)"} []
[2023-06-22T17:33:54.049494+02:00] security.INFO: Authenticator successful! {"token":{"Symfony\Component\Security\Http\Authenticator\Token\PostAuthenticationToken":"PostAuthenticationToken(user="myuser", roles="ROLE_SUPER_ADMIN, ROLE_TEAMLEAD, ROLE_ADMIN, ROLE_USER")"},"authenticator":"App\API\Authentication\SessionAuthenticator"} []
[2023-06-22T17:33:53.218112+02:00] request.INFO: Matched route "get_projects". {"route":"get_projects","route_parameters":{"_route":"get_projects","_controller":"App\API\ProjectController::cgetAction"},"request_uri":"https://kimai.example.ch/api/projects?customers=4&visible=1","method":"GET"} []

Unfortunately, I found this message too late.:
Release was tested with API version 0.6 and Kimai version 1.21 only.

Would be great to make it work again for kimai 2. Thanks !

Store documentation out of date

Thank you for the fantastic software! I noticed that on the store page the following command is displayed:

kimai configuration:create

Which will cause an error with the current version of the tool.

However the latest version in this repository says:

kimai configuration

Would it be possible to update the documentation on the store page?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.