Closed (fixed)
Project:
Open Flash Chart API
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
7 Jun 2009 at 06:45 UTC
Updated:
3 May 2022 at 04:34 UTC
Jump to comment: Most recent
Comments
Comment #1
jvandervort commentedNot so much. The new OFC2 in 6.x-3.x-dev uses a new experimental api (subject to change).
It is still chasing a changing OFC2 which hasn't slowed down yet. Currently the docs aren't up to date,
but you can use these:
http://drupal.org/node/423020
Comment #2
Anonymous (not verified) commentedSo, can users safely interchange OFC2 and OFC using the same api code? Or will there need to be different code made for different versions? And if there needs to be different code made depending on the version, how can the module developers specify which version is needed?
Comment #3
redndahead commentedUsually people specify it on the module page on d.o. Something like Version 3.x requires OFC 2.x and version 4.x requires OFC 3.x
It's fairly common as api's change regularly. If it makes you feel better our plan is to follow the apis of Open Flash Chart so we should only change as often as Open Flash Chart changes.
Comment #4
Anonymous (not verified) commentedThe reason I mention this is because module developers may want to mark your Open Flash Chart API module as a required module, because they have written code using your API to make charts. But if the API changes from OFC API 2.x and OFC API 3.x, then the modules will break if the users have the wrong version. It would be easier if this module was split into two modules, one for OFC 1, and another for OFC 2, if they will use different APIs. This will make it more uniform for developers so they can specify which version they wrote the code for in the .info file, and there won't be any confusion or nasty errors. If your API won't be changed though, then this isn't an issue.
-Leighton
Comment #5
redndahead commentedI understand your concern. Unfortunately drupal does not allow us to specify the version number when specifying compatibility. Your suggestion to split into 2 different module I don't think would be the best option. As a module that provides an api it is subject to change and the best way we can differentiate that change is to change the major version number. Sometimes api's change for one reason or another and either you can move along with the new version numbers or you have to specify on your project page which one is best. Sorry for the inconvenience.