possible weekview bug [SOLVED]

Discussion forum about Anuko Time Tracker
Post Reply
dalescott
Posts: 58
Joined: Fri Apr 21, 2017 2:53 pm
Location: Calgary, Alberta, Canada
Contact:

possible weekview bug [SOLVED]

Post by dalescott » Thu Feb 01, 2018 9:53 pm

I noticed I had entered time for the wrong task in Week view, and tried editing the entries to correct the task (I am assuming I must edit each entry in the week individually, please say so if there is a better way).
2018-02-01 14_46_01-captions.png
attempt to edit time entry
2018-02-01 14_46_01-captions.png (117.23 KiB) Viewed 936 times
But the Edit form is empty.
2018-02-01 14_51_41-800x600.png
empty edit form
2018-02-01 14_51_41-800x600.png (59.94 KiB) Viewed 936 times
Am I missing something? If truly a bug I can enter in Guthub.

FWIW, the entry was created with code from Jan 6 and I attempting to edit on github head from a couple hours ago).

Edit: I also notice the new empty edit form shows today's date, not the date of the entry I am trying to edit.

Cheers,
Dale
Last edited by dalescott on Mon Feb 05, 2018 5:32 pm, edited 1 time in total.

Nik
Posts: 423
Joined: Wed May 26, 2010 5:55 pm

Re: possible weekview bug

Post by Nik » Fri Feb 02, 2018 3:28 am

We need exact steps to reproduce this. An empty form would show up if an entry in question is already deleted. Does it show up in Day view?

dalescott
Posts: 58
Joined: Fri Apr 21, 2017 2:53 pm
Location: Calgary, Alberta, Canada
Contact:

Re: possible weekview bug

Post by dalescott » Fri Feb 02, 2018 8:13 am

Ok. I’ll reply giving specifics to reproduce but it will be a couple days.

dalescott
Posts: 58
Joined: Fri Apr 21, 2017 2:53 pm
Location: Calgary, Alberta, Canada
Contact:

Re: possible weekview bug

Post by dalescott » Fri Feb 02, 2018 10:54 pm

OK. I just repeated the behavior again. I created a time entry using TT v1.13.8.3727, then logged out, switched the server to the current code (v1.17.10.3867), refreshed my browser, logged in again and tried to edit the time I just entered. Regardless of whether I used Day View or Week View, clicking edit for the time entry brought up an empty edit form.

Here's the time entry.
2018-02-02 15_34_11 created time entry.png
2018-02-02 15_34_11 created time entry
2018-02-02 15_34_11 created time entry.png (81.1 KiB) Viewed 918 times
2018-02-02 15_34_32 time entry details.png
2018-02-02 15_34_32 time entry details
2018-02-02 15_34_32 time entry details.png (66.35 KiB) Viewed 918 times
I logged out, switched the server to the current code and refreshed my browser. The updated version shows in the footer.
2018-02-02 15_36_46 refresh after switching to github head.png
2018-02-02 15_36_46 refresh after switching to github head
2018-02-02 15_36_46 refresh after switching to github head.png (47.86 KiB) Viewed 918 times
Last edited by dalescott on Fri Feb 02, 2018 11:09 pm, edited 2 times in total.

dalescott
Posts: 58
Joined: Fri Apr 21, 2017 2:53 pm
Location: Calgary, Alberta, Canada
Contact:

Re: possible weekview bug

Post by dalescott » Fri Feb 02, 2018 10:56 pm

Continuing on (due to limit of 3 uploads per post). I've logged in to the current version (v1.17.10.3867). I click the Edit button for the time entry in Day View,
2018-02-02 15_37_54 logged in.png
2018-02-02 15_37_54 logged in
2018-02-02 15_37_54 logged in.png (80.34 KiB) Viewed 918 times
and get an empty edit form.
2018-02-02 15_38_43 attempted edit from Day View.png
2018-02-02 15_38_43 attempted edit from Day View
2018-02-02 15_38_43 attempted edit from Day View.png (61.14 KiB) Viewed 918 times
Last edited by dalescott on Fri Feb 02, 2018 11:10 pm, edited 1 time in total.

dalescott
Posts: 58
Joined: Fri Apr 21, 2017 2:53 pm
Location: Calgary, Alberta, Canada
Contact:

Re: possible weekview bug

Post by dalescott » Fri Feb 02, 2018 11:00 pm

IIRC, I used the Time link in the TT menu to get back to Day View, then selected Week View.
2018-02-02 15_38_44 Week View.png
2018-02-02 15_38_44 Week View
2018-02-02 15_38_44 Week View.png (80.47 KiB) Viewed 918 times
Then I clicked the Edit button for the time entry, and also get an empty edit form.
2018-02-02 15_40_38 attempted edit from Week View.png
2018-02-02 15_40_38 attempted edit from Week View.png
2018-02-02 15_40_38 attempted edit from Week View.png (64.38 KiB) Viewed 918 times
Let me know if you need more information.

Cheers! I'm going back to v1.13.8.3727 now ;-)

Nik
Posts: 423
Joined: Wed May 26, 2010 5:55 pm

Re: possible weekview bug

Post by Nik » Sat Feb 03, 2018 6:12 pm

There were database structure changes between version 1.13 and the latest 1.17.10.

If updating from 1.13, you need to run dbinstall.php and execute the 2 last steps:

Update database structure (v1.6 to v1.14)
Update database structure (v1.14 to v1.17.10)

I hope this fixes the problem. However, with the latest week view, other bugs may show up.

dalescott
Posts: 58
Joined: Fri Apr 21, 2017 2:53 pm
Location: Calgary, Alberta, Canada
Contact:

Re: possible weekview bug [SOLVED]

Post by dalescott » Mon Feb 05, 2018 5:40 pm

Updating the database structure solved the edit problem. Thanks!

One last question, how can I know whether I will need to update the database (using dbinstall.php) after a "git pull"?

Cheers,
Dale

wrc
Posts: 238
Joined: Tue May 25, 2010 8:30 pm

Re: possible weekview bug [SOLVED]

Post by wrc » Tue Feb 06, 2018 1:06 am

dalescott wrote:One last question, how can I know whether I will need to update the database (using dbinstall.php) after a "git pull"?
Make a note of your existing version in the footer.
Update code.
Look in dbinstall.php - if the Create database structure version shows up greater than your old version (or any of the last steps in the table), then execute all Update steps in the end of the table, which apply to you.

dalescott
Posts: 58
Joined: Fri Apr 21, 2017 2:53 pm
Location: Calgary, Alberta, Canada
Contact:

Re: possible weekview bug [SOLVED]

Post by dalescott » Tue Feb 06, 2018 7:32 am

Thanks @wrc ! :D

Post Reply