Time Management Patch v1

Project:ProjectPier
Version:0.8.0.3
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:new
Description

Full featured time management patch for Project Pier. I've developed this outside the SVN so it disregards updates to the application core that exist beyond version 0.8.0.

Patch extends previous time reporting functionality and adds administration views (unbilled, billed, by user, and by project) and the ability for admins to mark time as billed and unbilled.

I'd appreciate if anyone could review the code, I've tested it and it works fine locally. (N.B. Please remove .patch extension).

AttachmentSize
Time_Reporting_Patch_v1.zip_.patch85.84 KB
#1

Forgot to mention in the post, that the code above requires the dropdowns patch to fix that top navigation. I've included both the .patch file and a .zip file (its a .zip.patch so rename it to .zip).

You should be able to just run this, but if theres any problems re-copy the Time Management files back over once you apply the dropdowns patch.

And once again, you should back everything up first.

Mike

AttachmentSize
pp_dropdowns.patch 349 bytes
patched_files.zip_.patch 9.92 KB
#2
Version:<none>» 0.8.0.2

The already have drop downs and when I install this they go away and then if I do the dropdown patch it either removes my current drop downs (if before patch) or does nothing (after patch).

#3

I've uploaded the files from the zip (Time_Reporting_Patch_v1.zip_.patch) (already had the drop down patch) but I don't know where the time reporting feature should now appear.

I can't find it anywhere. Where should I be looking or have I done something wrong?

#4

Hey mikegioia,
Please can you provide a clean patch against the trunk (ideally without requiring the user to have the dropdown patch installed)?

I'm trying to install this, and the first thing I've noticed is that you've changed quite a few language files, which means that a lot of the new items that have been added have been deleted.

#5

The patch worked perfectly for me, except there was a missing 'gif' (projecttimes.gif). Otherwise everything worked fine. All I did was use the patched files from the zip in the initial post. I did not have to run any other patch.

The only other patch I've run on my project was the dropdown patch to install the "marine" theme.

Thank's a lot, this is working great.

Suggestions for future versions:

+ Total the time for each project at the bottom of the list.

#6

Not sure if this patch is related to the other time management patches being discussed here http://www.projectpier.org/node/259 ?

But for either, I have a possible future idea which you may or may not like :)

I notice that there is an Adobe Air application called Klok (http://klok.mcgraphix.com/klok/index.htm) which is a desktop time management app, and allows you to track time in 'real time' as you work on it. Maybe it would be worth contacting the Dev to see if he would be willing to produce a version which is skinned as a project pier app, and also if all the information/time it collects can be exported to PP at its simplest level maybe using an XML file. Of course you could also get it to download all your projects too, but maybe just as simple start the user could manually add projects and then have it export the time on a regular basis. PP would just look at the xml file and update the time used where the project names match.

Just a thought :)
Paul

#7

I was actually thinking about this exact thing the other day!
I doubt that the dev would be willing to re-skin his application for pp(though I might be wrong), but he might be willing to create an 'export raw data' feature which could be useful.

I'd wait until this patch is added to the codebase before worrying about whether we can import data into it.

#8

I new to Project Pier, and I'm hoping to not have to reinvent the wheel. Is there a chance on getting a set of screen shots for this plugin? If they are already available, could someone provide a link?

If I'm in the wrong place, please let me know where to go...

Thanks!

#9

This patch is a bit buggy. With DiffDog i succeeded to apply it without copying defects. Seems this is not from pure PP pacakge, but from self customized version of PP?

Its wise to apply this patch by using some diff/merge tool. Also you should be careful applying it on v 0.8.0.3

Anyway it works. Needs some improvements too.

Good add on!! Thank you!

#10

Screen shots. Enjoy!

AttachmentSize
Admin menu 53.56 KB
Time admin page 2.59 KB
Time tab 1.96 KB
Time page actions 3.75 KB
Add time formula 29.05 KB
#11

I installed the Time Management Patch files into their respective directories, and now there's a ton of misplaced text all over the place in the top right. I would install the dropdown patch, hoping that would fix it, but I have no idea what to do with the ".patch" file. Any help there?

#12

I'm using 0.8.0.3 and I'm pretty sure that the drop down patch only works on the "marine" theme. In other themes, the menus are all messed up in the top right of the UI.

#13

Hey Holyfield, could you give some detail on how you installed this? I am using the same theme but when I install it nothing seems to be happening. Ok I basically just uploaded it and overwrote the files in question. Oh and this is a fresh install.

Jodie

#14

I tried the patch and patched patch + sql query twice. It got all messed up somehow. Maybe the developer can replace the current by once that works and works for the latest stable PP version using the standard them? i'd appreciate it.

#15

Is there a guide on how to install the patch? I've uploaded the file to my root -- but I have no idea how to install this. Thanks in advance!

#16

Here is how installed on a fresh version of PP 0.8.0.3:

1. Backup files and database of current install (don't skip this step)
2. Download Time_Reporting_Patch_v1.zip_.patch and rename to Time_Reporting_Patch_v1.zip.
3. Unzip Time_Reporting_Patch_v1.zip and upload the contents to your Project Pier root (you'll be overwriting some files)
4. Open /sql/pp_project_time.sql and use mysql commandline or phpMyAdmin to run the sql script

Time management is now installed, but the theme I had didn't look right so I decided to download and try the Marine theme (which is way better than any of the default themes anyway)

5. Download the marine theme: http://www.projectpier.org/project/Marine
6. Unzip the theme once it's downloaded and upload the files to your /public/assets/themes folder
7. download the dropdowns patch: http://www.projectpier.org/node/494
8. install the dropdowns patch by uploading it to the PP root directory and running patch -p0 < pp_dropdowns.patch

That's everything I did and so far it is working with no errors. Hope this helps.

James

#17

Thanks for that walkthrough devtrench. I wrote this way back in 2008 and haven't had a chance to update it to an actual .patch file so that no bugs happen.

I would greatly appreciate if someone who's done this re-upload the corrected version for everyone's benefit. Perhaps if I have time though I'll give it another whirl.

#18

Keep in mind I'm a complete newb, here. I'm trying to get this set up using a hosting service - do I need shell access in order to run that sql script, or is it something I can do locally (on my Mac) and then upload once done?

I'm in dire need of getting this working.

Thanks!

#19
Status:patch - code needs review» closed - fixed

Accepted in 0.8.6. Works great!

#20
Version:0.8.0.2» 0.8.0.3
Category:task» support request
Assigned to:mikegioia» Visitor
Status:closed - fixed» new

Hey everybody!
we installed pp with this patch and now we cannot display the time as decimal time. it always shows up as full hours. we need to have .25 or .50.

does anybody knows this problem?
please help us with this!
thanks

#23

I created the missing logtypes projecttimes.gif file.
Just upload it to the directory:
/public/assets/themes/marine/images/logtypes

AttachmentSize
projecttimes.gif 220 bytes