Needs review
Project:
Project issue tracking
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Jan 2009 at 20:31 UTC
Updated:
12 Sep 2012 at 03:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
dwwBah, this is a UI bug, since there are a few places we use "state" in the UI:
A) At node/N/edit/issues, we use "States" as the header above the checkboxes, and mention "states" in the help text.
B) The help text for the "Auto-close days" setting at admin/project/project-issue-settings
C) The URL for issue query pages uses "states=1,2,3..." as the GET parameter name
I still think we should only fix this in D6, since it's going to cause URL link rot in the case of (C), which we're going to face anyway as we convert all issue listings to views.
Comment #2
aclight commentedAdding 6.x-1.0 blocker tag.
Comment #3
willmoy commentedThere are—
324 uses of 'state' in project_issue
178 left after you replace the strings as in patterns.sed
32 left after you ignore $form_state
Those 32 are mainly natural language (comments, t() strings) and I can patch those manually.
The rest can be solved by running:
find project_issue_HEAD/ -type f -exec sed -i -f patterns.sed {} \;
patterns.sed is attached as patterns_sed.txt. A patch against HEAD is also attached, if this is a convenient time to apply it.
I don't have an install I can test the patch on but I have proof read it carefully.
This patch is by way of meagre thanks for all your hard work on this system.
Comment #4
willmoy commentedComment #5
dwwVery cool, thanks! One glaring omission from this patch is that if the following happens:
then we definitely need to add a project_issue_update_6003() to rename this table. ;)
Otherwise, quick skim looks pretty good... Don't have time right now for a more in depth review, but this is off to a great start, especially since it's automated as a sed script, not a big patch to manually reroll all the time. ;)
Thanks again!
-Derek
Comment #6
willmoy commentedRight you are. You see, if you want something done properly, you have to do it yourself ;)
Patch attached, for the table rename on its own. New function:
Comment #7
dwwGreat, thanks. ;) Back to "needs review"...
Comment #8
marcp commentedAnyone get a chance to test these patches yet?
Comment #9
cweagansThe code looks solid to me. Not a whole lot that can really go wrong with this.
I'll try to test the patches tomorrow against HEAD. I doubt they will apply due to lots of recent activity in CVS, but we'll see.
Comment #10
mikey_p commentedsubscribing, plan to test this tonight/tomorrow
Comment #11
hunmonk commentedrelated patch for pift that will need to be deployed at the same time #774230: sync with project_issue state -> status changes
Comment #12
dww@mikey_p: Instead of just testing this manually, I have a proposal. ;) I think you should try to organize a team of folks willing to write tests for drupal.org at the code sprint on 4/18. You would delegate specific tests in project* to the team initially based on your efforts checking out this patch (and, time-permitting, write many of your own). Not only do we safely resolve a big 6.x-1.0 cleanup patch, we'd have a great start on a test suite for Project* that people can build on and flesh out throughout the rest of the day and at the QA sprints throughout the week. That'd be amazing on so many levels -- 6.x-1.0 progress, d.o redesign, d.o core upgrades, etc. Thanks in advance for trying to pull this off! ;)
Cheers,
-Derek
Comment #13
hunmonk commentedupdated patch attached. basically combines the two other working patches, and fixes a missing variable rename in the update function.
Comment #14
dwwAs expected, this no longer applies now that #175555: Add custom Priority Levels landed. mikey_p was going to do the (mostly trivial) re-roll...
Comment #15
mikey_p commentedSorry I didn't get to this sooner, please feel free to bug me. I rolled this with git, and I'm not sure why it's smaller, I tried to use interdiff to see what the changes were, but it wasn't making much sense to me, and I didn't see anything that stood out. Of course at this point I'd strongly suggest that this has tests before being committed.
Comment #16
mikey_p commentedI think I may have rolled back #780338: Need format_plural() when deleting an issue status in this patch, and it needs to be updated to include that. (I think that went in after the patch in #13).
Comment #17
mikey_p commentedComment #18
mikey_p commentedAfter updating I was getting:
This is because of {project_issue_projects}.mail_copy_filter_state not being update to status.
Is it okay to add the column change to the update function?
Comment #19
hunmonk commentedsure. just make sure any references to mail_copy_filter_state are also updated in the code (which i'm guessing they are already).
Comment #20
mikey_p commentedI did some basic clicking around that this seems fine, but of course could use tests.
Comment #21
hunmonk commentedComment #22
mustanggb commented