Needs work
Project:
Stock
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2008 at 00:27 UTC
Updated:
19 Feb 2008 at 03:54 UTC
Hi,
I'm in the process of tearing apart this module as well as the stockapi module. I'm writing 2-3 other stock-related modules to tie into these and also modifying the others to work together. I realized that there is no check for incorrect symbols before they are saved into the db. Before I begin changing the code, have you approached this issue yet or have any suggestions for correcting this problem?
Thanks
Comments
Comment #1
kbahey commentedThis has not been reported before.
If you have a patch for it, please see here http://drupal.org/patch on how to create one, and submit it for review and possible inclusion.
As for rewriting the module, I will consider the changes for inclusions as long as they are simple (not complicated), modular (clear separation of components/functions), maintainable (easy to understand and modify), and backward compatible (or has a reasonable upgrade path).
Comment #2
mstef commentedi just finished fixing the issue...this is my first module so i am not sure how to submit patches etc...i will however show you the changes here and you can let me know what you think...i will highlight the changes.
seems to work like a charm so far..
i figured this was the best way to approach the problem without having to pull yahoo data or db queries more than once..
let me know what you think
Comment #3
kbahey commentedPlease read the link I sent in my previous comment on how to create patches.
DO NOT post entire modules or large chunks of code.