Closed (fixed)
Project:
Stock API
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2010 at 20:30 UTC
Updated:
29 Aug 2011 at 23:44 UTC
Jump to comment: Most recent file
Are there any plans to upgrade this to D7? I couldn't find any information about this in the issue queue and there were no branches in CVS... Although sometimes I miss things that are right in front of my face...
Anyway, Just thought I would ask. I've actually been working on an upgrade as it is, so if no one else is working on it, I could post a patch when I am done. This would be for the Stock Module as well as the Stock API... Although I guess I would post the Stock Module patch in it's own issue queue
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | stockapi_D7_port.patch | 52.89 KB | brianV |
| #12 | stockapi.zip | 23.06 KB | drclaw |
| #6 | stockapi_d7_upgrade_v2.patch | 13.16 KB | drclaw |
| #5 | stockapi_convert_to_d7.patch | 13.16 KB | drclaw |
Comments
Comment #1
nsummy commentedI'm not a developer but I would definitely be interested in having this ported over to 7. Right now this module is kind of a sticking point in upgrading to D7
Comment #2
drclaw commentedI actually have a version of this one upgraded to D7. I'll post a patch for you as soon as I can.
Comment #3
yugongtian commentedwaiting~
Comment #4
drclaw commentedHere's the patch I've been procrastinating on. Sorry if anyone was waiting for it!
Unfortunately I've only tested it on D7 beta1 and beta2. I don't think anything's changed that will affect these changes, but I haven't had a chance to test it on a proper Drupal 7 v1.0 yet.
Place the patch in the root of the the stockapi module folder (e.g. stockapi/stockapi_convert_to_d7.patch) and, from the command line, use the command patch < stockapi_convert_to_d7.patch to patch it.
The stock module patch, if anyone needs it, is in the stock module issue queue: #1038906: Upgrade to D7 Patch
Comment #5
drclaw commentedIt helps if you upload the file...
Comment #6
drclaw commentedHoly moly, huge rookie mistake! Don't even touch that last one... had the diffs backwards!
Comment #7
drclaw commentedComment #8
SeanBannister commentedsub
Comment #9
beauz commentedsubscribing
Comment #10
Kman2123 commentedsub
Comment #11
sea4 commentedHi, Can you post a full copy of the patched module. i don't have root or ssh access.
Comment #12
drclaw commentedHere you are. Enjoy!
Comment #13
Kman2123 commentedDo you just copy this into modules folder on server?
Comment #14
drclaw commentedYou should put it in sites/all/modules. See this http://drupal.org/documentation/install/modules-themes/modules-7 to learn more about installing modules.
Comment #15
brianV commenteddrclaw:
I am not sure what you are basing your port off of, but the diff doesn't apply to the current 6.x master branch in the current git. In fact, it looks like it was done off a copy from prior to the big performance enhancements committed on 2008-07-21.
I've gone ahead and done a port myself based on the the latest git version for D6. This applies to the 'master' branch in git. I'll also attempt to get commit access for this module, so I can create a D7 release branch.
AFAIK, it's working correctly, except the _stockapi_fix_floats() function needs a re-think as it discards some data it doesn't necessarily need to.
Note: The D7 port can also be retrieved from my sandbox at http://drupal.org/sandbox/brianV/1197802
Comment #16
brianV commentedA new D7 branch has been created. A dev release should be rolled by tomorrow morning.
I am closing this thread; bugs against the new branch can be filed separately.
Comment #17
brianV commentedComment #18
drclaw commented@brianV
I built the patch in October 2010 off whatever the dev release was at that time for Drupal 6. It should have worked. I remember testing it. That's why I posted it twice, because the first one didn't work... =/
Thanks for making the d7 release though! Glad to see things are happening. =)
Comment #20
7wonders commentedI think the error I have reported here on stock module:
http://drupal.org/node/1198132
Is due to stockapi module not functioning on d7. Let me know if there is anything I can do to help debug.
Comment #21
brianV commentedWell, I can guarantee you that the code does indeed work as we have the StockAPI running on a production site.
Furthermore, please file any issues in their own bugs rather than re-opening this old one.
Comment #22
7wonders commentedSorry, my bad. Will file a new bug report now.
Comment #23
brianV commented