Closed (fixed)
Project:
Support Ticketing System
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
27 Sep 2009 at 22:27 UTC
Updated:
9 Jan 2013 at 16:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jeremy commentedYes, but all in good time. I have no need of a Drupal 7 version of the module at this time, so it's not high on my list of priorities.
If there's anyone out there interested in co-maintaining this module and managing the 7.x branch, please speak up here.
Comment #4
Corbula commentedI really need this as well. There's nothing for Drupal 7 yet that i know of.
Comment #6
sea4 commented+1 creating this for D7 would be great moving forwards.
Comment #7
samtayuk commentedI wouldn't mind managing the 7.x branch
Sam
Comment #8
jeremy commentedAnyone looking to co-maintain this project needs to first demonstrate their abilities by writing patches, reviewing patches, and regularly answering support requests through the issue queue.
Comment #9
jeremy commentedI will create a 7.x branch from the 1.4 release. I've tagged 1.4-rc1 today -- we'll give people time to test before tagging 1.4 final and creating a 7.x branch.
Comment #11
sea4 commentedgreat news! will test the 1.4 :-)
Comment #12
bradjones1Bumping this to 7.x version to at least get one active ticket for the D7 version showing up. I'd be interested in helping with patches, but I'm wondering if there's a roadmap worked up anywhere yet? It would be nice not to be duplicating work others have started on.
Comment #13
jeremy commentedThe only roadmap at this point is to get the 7.x-1.x-dev branch working. The goal is to get it working with the fewest necessary changes (no re-architecting it). Patches are VERY welcome. I started the process, but temporarily ran out of time. I hope to get back to it, but anyone that has time feel free to upload patches. I'll be committing my changes the same day I make them, so you can be fairly confident you're not duplicating effort if you do a 'git pull' before you start working.
We'll create a 7.x-2.x-dev branch after there's a 7.x-1.x release, and in the 2.x branch we'll make better use of Fields/Views/etc.
Comment #17
Anonymous (not verified) commentedJeremy, i will start making patches. I will put those here.
Comment #18
jeremy commentedHere is the right place. Patches would be great! :)
Comment #19
Anonymous (not verified) commentedHere is my first patch. Now it works. But i'm missing migrating nodeapi to new D7 API. Hope somebody can apply some of this to 7.x-1.x-dev branch. Also, any observation is welcome!
Comment #20
Anonymous (not verified) commentedI continued the work. A new patch to apply after the first one. I need help on converting to D7 api queries made on support_page_form() and similar places.
Please somebody interested on getting support full working on D7? I'm constantly checking the issue.
Comment #21
jeremy commentedAttempts to apply your patches result in the following error:
Ideally please generate your patches with git as documented on this page:
http://drupal.org/patch/create
Comment #22
mimancillas commentedImplemented support.patch. Received following error when attempting to create ticket : Recoverable fatal error: Argument 2 passed to db_query() must be an array
Comment #23
Anonymous (not verified) commentedJeremy: Sorry. Now im trying to clone the git repo. I was using the .tar.gz from the releases page. I will try to post a complete patch here shortly. Also with the fixes for #22
Comment #24
mattbk commentedMaking title distinguishable.
Comment #25
Anonymous (not verified) commentedHi! Here is the full patch. There are some parts missing, i dont know how to port. ie. support_save_message:1521, it inserts on the comment table, but on D7 column 'comment' is not there (i think it is on field_data_comment_body table).
Dont know which is the best practice or "the way" of doing that on D7 structures/apis.
Hope i get feedback of this soon!
PS: I didnt touched support submodules yet.
Comment #26
Anonymous (not verified) commentedJeremy, after previos patch, this one adjusts/ports some comments and mail related things to D7 apis.
Waiting for your review! Best regards.
Comment #27
jeremy commentedThe patch failed to apply completely, but it was just the very end that was corrupted so I manually applied it. I then started looking through the patch, here's some feedback:
At this point I've run out of time -- I spent most of the time I had this morning on just re-formatting the code so I could find the actual code changes. It looks like most of the actual patch is good, but I need to review it properly when I have more time.
One quick questions, states are saved as full text, so why this change?
I'm attaching my cleaned up version of your patch. In the future, please do a 'git diff' and confirm that every line of your patch is actually necessary and not just a whitespace change.
Marking as 'needs review' -- I'll probably not be able to return to this until Monday at the earliest.
Comment #28
Anonymous (not verified) commentedThanks Jeremy! I will look for my IDE to stop reformatting its way (i use netbeans for PHP).
I will reapply your patch on a fresh origin/7.x-1.x, so i can continue working.
Thanks again!
Comment #29
Anonymous (not verified) commentedJeremy, about:
If u look below, you'll see this:
Note that weight must be an integer (http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hoo...)
So, it was a string previous to my patch.
Now, i' m also noting a problem on the next line
Should be:
I' ve fixed my netbeans to format with drupal coding standard, so i will check next time no whitespace diffs, etc, but the necessary to follow the standard.
Comment #30
Anonymous (not verified) commentedMy last patch at #23 was not reviewed/applied on your own patch, right ?
Comment #31
jeremy commented> My last patch at #23 was not reviewed/applied on your own patch, right ?
Correct. I did not get to the last patch.
Comment #32
Anonymous (not verified) commentedJeremy. Here is the patch for fixing the edit client bug, and also comments port. Please discard the previos patch from #26. Now i've done it with git, after applying netbeans settings for standards coding, and after applying your patch from 27.
Waiting for your review. Thanks!
Comment #33
Anonymous (not verified) commentedI forgot the attachment. Sorry.
Comment #34
mimancillas commentedI applied both 589552.patch and 589552-comments.patch -- caught a few errors.
I recieve an ajax http errror with autosubscribe + autoassign feature when creating new client.
when trying to edit a support ticket entry and resave, I get the following error :
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '30' for key 'PRIMARY': INSERT INTO {support_ticket} (nid, message_id, state, priority, client, assigned) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5); Array ( [:db_insert_placeholder_0] => 30 [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => 1 [:db_insert_placeholder_3] => 2 [:db_insert_placeholder_4] => 4 [:db_insert_placeholder_5] => 1 ) in _support_node_insert_update() (line 848
Also, the module is not sending any email notifications to users.
Otherwise, things seem to run pretty smooth.
Comment #35
Anonymous (not verified) commentedHere are some more fixes. I dont know ajax API yet, so i haven't tested that part.
Hope jeremy can apply those patches to the -dev branch soon!
Comment #36
mimancillas commentedIt is definitely getting closer.
Comment #37
jeremy commentedFunctionally this is looking quite good -- thanks for all your work on this! It took longer to review and commit than I'd like because your editor is still causing formatting regressions with database queries. For example, your patch had:
Which should instead be formatted:
You should never add 4 spaces, only 2. This affected most all the database queries your patch touches (db_update, db_select, db_insert and db_delete).
Note that comment_upload will not exist for Drupal 7, so to support attachments on ticket updates we'll need to add support for the Field API -- I think this can be done under a separate ticket after the base functionality is working.
The code in support_query_alter was commented out and flattened -- you mention earlier in this thread that you've not yet looked at the search functionality.
Committed #27 and #33. Please re-sync your latest patch, and be sure that your editor isn't adding 4 spaces to database queries. You can see what has been committed here:
http://drupalcode.org/project/support.git/commitdiff/2cb61e6
Comment #38
jeremy commentedPlease be sure to run 'git diff' to avoid letting unnecessary white space changes happen, for example:
- 'data' => t('No tickets available.'),
- 'colspan' => count($header),
- ));
+ 'data' => t('No tickets available.'),
+ 'colspan' => count($header),
+ ));
There was only one reject, and it's actually wrong. Instead of doing a select to determine whether to do an insert or update, you should instead use db_merge (see http://drupal.org/node/310085). I've made this change. See the full commit here:
http://drupalcode.org/project/support.git/commitdiff/f16893b
This is great, thanks for your continued effort on this! The support module is nearly usable on Drupal 7 at this point. :)
Comment #39
mimancillas commentedIt has come a long way in the last week, that's for sure! The biggest missing feature is the email notification bit, but most everything else is up and running at least.
Comment #40
Anonymous (not verified) commentedmimancillas: When i change a ticket status, mail notification works fine. Maybe i`m not doing your exact use case.
Please tell me the exact sequence to reproduce the "email notification" not working ?
Jeremy: I'm happy! Thanks a lot!! This is the first time i remember i'm cited as contributing to an OSS project. Excelent!!! :) I hop the next patch i can detect the damn white space problem and avoid it.
Best regards to all!!! And happy coding!
Comment #41
mimancillas commentedLost track of the thread here. Which of the patches and/or commits are current? Or should I start with a fresh 7.x?
Comment #42
mimancillas commentedNot getting any email updates when I create or alter a ticket at all. I am trying to figure out if I missed a patch.
Comment #43
Anonymous (not verified) commentedmimancillas, all changes are not applied with a fresh 7.x branch.
I get emails just fine. May be you are using a different use case? I'm here to help fix possible bugs.
Comment #44
bdragon commentedWorked on this today.
commit 75a22739ddfd008a6e6090142e7dd0a8806aa4d6
Author: Brandon Bergren
Date: Thu Apr 28 17:47:32 2011 -0500
Fix autocomplete queries.
There's still an issue with them -- they don't work for permissions assigned to anonymous / authenticated user roles!
This is not a 7.x specific bug however.
commit e3aac74e47e5386ecb3eeb4b68f121ce31d6d9ad
Author: Brandon Bergren
Date: Thu Apr 28 17:15:04 2011 -0500
Fix the select-all checkbox.
commit 0368acce9e0fde3b88fe5d5b74b4742dc6969e26
Author: Brandon Bergren
Date: Thu Apr 28 16:59:47 2011 -0500
Fix header sorting.
commit 934f79e22395ef2b10c4d73f38cd8171d48aaf15
Author: Brandon Bergren
Date: Thu Apr 28 15:53:35 2011 -0500
Fix permission name in previous.
commit f78f06cb09596fcb27a388ffe019b28628b4ede6
Author: Brandon Bergren
Date: Thu Apr 28 15:46:39 2011 -0500
Issue #1139946 by miro_dietiker: Fix early return in hook_permission() that
was causing the client permissions to disappear.
Comment #45
Anonymous (not verified) commentedHey buddies: i want to port the search parts to D7. I' dont have any experience on D6 as i just started to use and develop with D7. On D6 support used hook_db_rewrite_sql for removing support tickets from search content results. Now the available hook is hook_query_alter as stated on hook_db_rewrite_sql docs.
I tried doing that, but i need to know what is the idea on current code functionality: the boolean on support settings named 'support_remove_tickets' is intended for removing support tickets from ALL queries ? Or what?
In my first "porting" of that function, now i get no tickets on /support/some_client/all, when it has lots of tickets.
Is this right? Or i'm doing the port just badly ?
Comment #46
bdragon commented@javier.alejandro.castro:
heads up, I just rewrote the broken support_node_access() to actually work, so access control on individual tickets should be working now (hopefully.)
9a9dedcfda24b94d2ee36bc42fe2740f6c31d0ae
(This is unrelated to the access control that is applied to queries, but affects stuff like directly going to node/nnn)
Comment #47
bdragon commented@javier.alejandro.castro:
I just patched up some stuff in the front end part of the search that was preventing the form from working correctly.
4080434e97daeacef72139de446c508ecade041e
Comment #48
bdragon commentedInitial port of support_overview.module committed.
38b1539b998765aed64097ab291b8a6c6dc952c1
Comment #49
bdragon commentedInitial port of support_charts.module committed.
41cfaf06ffd37df1ed4e5554bf3f90846182d670
Comment #50
Anonymous (not verified) commentedbdragon: A little contribution to support_overview, after getting your last changes
Best regards!
Comment #51
Anonymous (not verified) commentedsupport1.patch:
Advances on search and node_access.
I configured my netbeans for drupal coding standards, and it formats the code with "contiunation identation" (more than 1 line) with 4 spaces... dont know why the original code (in the diffs) does not comply with that standard. Anyway, if u like, discard everything but diffs to: support_query_alter() and support_search_execute() (the heart of this change)
support2.patch:
Just cosmetic patch.
Comment #52
bdragon commentedsupport2.patch (reverse) committed as is.
I merged support1.patch with some local fixes and then debugged the rest of support_search_execute(). Search seems to actually be working
@javier.alejandro.castro: Please review 29e1f6eb9d58671b0b02a78268a2923cd8a162f1 -- The logic is a lot simpler now, I rewrote it again based on how node_search_execute changed.
Comment #53
Anonymous (not verified) commented@bdragon: i dont know how $query->setOption works. But i guess the code is better by using powerful D7 new APIs!
Comment #54
bdragon commented@javier.alejandro.castro: Figured out what the $enabled_states[0] stuff was about -- there's an option in the admin ui when setting the variable for 'all', and this key of this choice is 0. I just pushed some minor changes in support_overview that should make this more obvious.
Comment #55
bdragon commentedWIP patch for submission via email and upload field work.
Warning: upgrade path has not been tested with the current code.
It might work, might not, but I'm mainly dumping it here because A) it's too late to get in tonight, and B) there's a possiblity I may need to leave suddenly for a few days. (relative hospitalized)
Comment #56
Anonymous (not verified) commented@bdragon: I think we have a bug on support_query_alter() or may be it is a book.module bug?
To reproduce, enable the book module, then the book block to show book navigation.
When trying to display that book, I've got:
May be there is a missing alias on book.module:284. This:
sould be
Or may be we have a bug on our query_alter. I dont know how to fix on our side. May be it is a book bug?
Best regards!
Comment #57
Anonymous (not verified) commented@bdragon: Forget last comment. I've confirmed that is a book.module bug. Already reported it. #1013864: Book navigation block fails with Node Access modules
Comment #58
Anonymous (not verified) commentedA little fix for unstranslated content. Also, it seems in some places we are using variables on menu titles, which gives me warnings using the potx module. Next time i get one i'll post here to get help on fixing that too.
Also, i contribute the spanish translation of support. Hope spanish users help me refine this!
@bdragon: Could you commit this .po file on support git ?
Comment #59
bdragon commented@javier.alejandro.castro:
Committed the missing t()s, thanks. (3dfc2db013505b15b15eef64eff75c6cf59f74c7) However, PO files no longer go in the repository. I suggest signing up at http://localize.drupal.org/ (There are some good instructions at http://drupal.org/node/302194 )
Comment #60
bdragon commentedHeads up: I just pushed a huge update that I've been working on for a couple weeks.
Comment #62
jeremy commentedClosing meta ticket; rolling release candidate.
Comment #64
paracuenta commentedcomo coño se descarga esta mierda drupal de la mujer del pelotero
Comment #65
taps7734 commentedStill looking for an upgrade path from 6.x to 7.x for this module. Any word on it?
Comment #66
jeremy commentedPlease test an upgrade and open bugs if you run into problems. There's no reason to think everything will break on upgrade, and no way it's going to get fixed if upgrade errors aren't reported.
Be sure to test on a backup of your website! And please report errors in new tickets, don't reopen this old one.