-
-
Notifications
You must be signed in to change notification settings - Fork 597
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
restart via API allows to copy description #782
Conversation
Cant review that while during the installation process creating the database schema fails:
|
Hm, the installation works on a lot of machines with MySQL and MariaDB. |
For simple testing, I installed the branch at: https://demo-branch.kimai.org/en/timesheet/ |
Hmm, i made a clean installation of the branch following the installation instruction and got the error during the installation step creating the database schema. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the demo the new action „Start again“ works fine...
Thanks for testing! |
Okay. I try to explain. I made two tests: one with an existing database (kimai2 v0.9) by using the migration command - this fails with an error. another one with an database i've cleared before - it fails with an error too (the key part you see above). |
Can you share the full error messages for both ways? Or the database, so I can test it manually? |
Thats very helpful, thanks! |
Dear all,
Tried testing this and could confirm that everything works well.
Restarting an activity from the timesheet copy all of the details including
existing applied tages, this is great functionality.
Started a task from the + and I can enter the description from scratch,
even could edit the description for a running or stopped task.
Started a task from the recent activities and the description is not copied
which is as intended.
Could stop tasks from the play button; create new tasks from scratch.
In general the copy description functionality works very well. Thank you.
…On Mon, May 13, 2019 at 1:12 AM Kevin Papst ***@***.***> wrote:
Description
- Moved the logic to restart a timesheet entry to the API
- Added option to copy description and tags
New behavior:
- A "recent activity" restart will restart the record WITHOUT copying
the data
- A restart from the timesheet will copy the data
Fixes #626 <#626>
Types of changes
- New feature (non-breaking change which adds functionality)
Checklist
- I ran bin/console kimai:codestyle --fix to verify the correct code
style
- I have added tests to cover my changes
- I agree that this code is used in Kimai and will be published under
the MIT license
<https://github.com/kevinpapst/kimai2/blob/master/LICENSE>
------------------------------
You can view, comment on, or merge this pull request online at:
#782
Commit Summary
- fix api doc
- support payload in api link patch method
- new API method to restart timesheet record
- support double quote in html data attribute
- restart timesheets via javascript with copy data
- code style
File Changes
- *M* assets/js/plugins/KimaiAPILink.js
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-0> (6)
- *M* assets/js/plugins/KimaiRecentActivities.js
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-1> (7)
- *M* config/serializer/App/Entity.Timesheet.yml
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-2> (3)
- *M* public/build/app.js
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-3> (2)
- *M* public/build/manifest.json
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-4> (2)
- *M* src/API/TimesheetController.php
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-5> (84)
- *M* src/Controller/TimesheetController.php
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-6> (41)
- *M* src/Controller/TimesheetControllerTrait.php
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-7> (26)
- *M* src/Form/TimesheetEditForm.php
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-8> (4)
- *M* templates/base.html.twig
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-9> (3)
- *M* templates/macros/actions.html.twig
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-10> (4)
- *M* templates/macros/widgets.html.twig
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-11> (4)
- *M* templates/navbar/recent-activities.html.twig
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-12> (2)
- *M* tests/API/TimesheetControllerTest.php
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-13> (63)
- *M* tests/Controller/TimesheetControllerTest.php
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-14> (26)
- *M* translations/flashmessages.ar.xliff
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-15> (2)
- *M* translations/flashmessages.de.xliff
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-16> (4)
- *M* translations/flashmessages.en.xliff
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-17> (2)
- *M* translations/flashmessages.es.xliff
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-18> (2)
- *M* translations/flashmessages.fr.xliff
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-19> (2)
- *M* translations/flashmessages.hu.xliff
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-20> (2)
- *M* translations/flashmessages.it.xliff
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-21> (2)
- *M* translations/flashmessages.ja.xliff
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-22> (2)
- *M* translations/flashmessages.pt_BR.xliff
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-23> (2)
- *M* translations/flashmessages.ru.xliff
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-24> (2)
- *M* translations/flashmessages.sv.xliff
<https://github.com/kevinpapst/kimai2/pull/782/files#diff-25> (2)
Patch Links:
- https://github.com/kevinpapst/kimai2/pull/782.patch
- https://github.com/kevinpapst/kimai2/pull/782.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#782>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMA3M7Q4QHYWQZ76M6Q5ZRTPVBXMBANCNFSM4HMLCWLQ>
.
|
Dear all, Carried out testing using the following link Tried testing this and could confirm that everything works well. Restarting an activity from the timesheet copy all of the details including existing applied tages, this is great functionality. In general the copy description functionality works very well. Thank you. |
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. |
Description
New behavior:
Fixes #626
Can be tested at: https://demo-branch.kimai.org/en/timesheet/
Types of changes
Checklist
bin/console kimai:codestyle --fix
to verify the correct code style