Closed (fixed)
Project:
Browscap
Version:
master
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2009 at 02:00 UTC
Updated:
21 Mar 2011 at 11:08 UTC
Jump to comment: Most recent file
.
| Comment | File | Size | Author |
|---|---|---|---|
| #36 | modules_browscap-only_d7.patch | 19.01 KB | pillarsdotnet |
| #36 | modules_browscap-after_1077366-1077622-1077650-d7.patch | 18.97 KB | pillarsdotnet |
| #36 | modules_browscap-combined.patch | 21.12 KB | pillarsdotnet |
| #34 | modules_browscap.patch | 19.02 KB | pillarsdotnet |
| #35 | modules_browscap-combined.patch | 21.16 KB | pillarsdotnet |
Comments
Comment #1
pasqualledownload patched version: -
EDIT: download link removed
Comment #2
markhalliwellCan this be ported? My module: Browser Theme Settings requires this module. I cannot port my module to D7 until this happens.
Comment #3
tsvenson commentedYes, please make a Drupal 7 port of this module.
Comment #4
billsdesk commentedAdding one more request for a D7 version.
Comment #5
cyberwolf commentedSubscribing.
Comment #6
pillarsdotnet commentedSmall patch against the downloadable version in #1
Comment #7
teiko commentedSign for an official Version for Drupal 7
Comment #8
pillarsdotnet commentedBetter patch. Resolves an "Unknown function" fatal error and an "Undefined index" notice.
Comment #9
tim_djSubscribing
Comment #10
devildogmrk commentedMy Mobile Tools needs a D7 version of this module in order to work correctly. When is the new Drupal 7 version of this module expected to be ready?
Comment #11
pillarsdotnet commented@devildogmrk -- have you tested the patch by the original submitter and in #8?
Comment #12
pillarsdotnet commentedRemoving useless tags.
Comment #13
pillarsdotnet commentedHere is a re-rolled patch against the 7.x-1.x branch at git://git.drupalcode.org/project/browscap.git
Comment #14
himerus commentedThe patch in #13 works for me... (remember that was a checkout from git, and NOT the 6.x branch in CVS)
My next item will be to test this by plugging the 7.x version into context so that I can have a context based on browser versions (iphone/android specifically)
Comment #15
pillarsdotnet commentedComment #16
greggles@pillarsdotnet - please don't RTBC your own code.
@himerus, thanks for the test and report. Would you say you tested/reviewed all the changes or just that it works for your use case?
It is a pretty simple module so if it mostly works then we could probably commit and make a dev release to aid further testing, but I would like to have some confidence in it. The site where I use browscap is on 6.x for a long time in the future so it's hard for me to test this out.
Now, a review:
This looks to me like it is both a port and some fixups, which makes it harder to commit.
I don't understand your goal with the change of browscap_update_6000 and browscap_update_7000. Why would we need to set a version? Especially if it is going to mean people will skip a change made in update 6000?
That should be in both versions of the module.
This looks like a notice fix, so it should be in 6.x first.
I didn't review the changes of moving the page callbacks to includes/admin.inc b/c that's somewhat hard to do and with these reviews I've run out of time. I'd prefer if you could actually straight port those leaving them in the .module file and then after we upgrade it we can create a new issue for breaking it out which would make it all much easier to review.
Seems close, but marking needs work for now.
Comment #17
himerus commented@greggles
My review was a quick patch and install on my D7 dev site for Omega... My goal is using it for selecting mobile browsers, and using alternative theme settings (Delta module) via context for those mobile browers.
My initial test of this patch/D7 version was just installing, and seeing that everything seems to be working properly on all the reporting pages. It wasn't really in depth, and I'm looking into the update for mobile_tools to see if it can integrate w/context (#1046244: Integrate with Context conditions & reactions)
That is the main reason I didn't mark as RTBC... but I do think it could be "ready" for the D7 dev branch at the minimum.
Comment #18
pasquallere: browscap_update_7000()
see #431940: Update errors
sometimes you need to know the user's db schema to apply your updates correctly. I found this as a good solution for this problem. If you later realize that you need to create an upgrade path from D6 to D7 then you can change browscap_update_7000(). New D7 installs, users who are using the D7 dev version already will not be affected by the change.
It is not possible to upgrade from D5 to D7 directly, so browscap_update_6000() is useless in D7 release.
Comment #19
simeRight ... so git d7 branch is CVS HEAD?
Comment #20
pillarsdotnet commented@sime -- no; it's a separate branch. CVS HEAD is the same as git master.
Re-rolled patch. The reports are working for me, now.
Comment #21
pillarsdotnet commentedAnother re-roll, backing out the addition of includes/admin.inc and restoring some of the comments that were deleted.
Comment #22
pillarsdotnet commentedRestored another bit of code that had been inadvertently removed...
Comment #23
pillarsdotnet commentedMore comment change reversal. This is probably as small a patch I can make without adversely affecting functionality.
Comment #24
pillarsdotnet commentedFound a few more...
Comment #25
pillarsdotnet commentedBy the way, I also had to patch core to make this work. See #1055276: Configurable chunk size in drupal_http_request()
Comment #26
sime@pillarsdotnet - OK, so the branch doesn't exist in CVS at all. I thought git was still being nuked periodically and replaced with CVS but I guess we've moved on from that!
Comment #27
nunof commentedsubscribe
Comment #28
pillarsdotnet commentedUpdated patch fixes handling of is_crawler field. MySQL chokes when storing "true" or "false" in an integer field.
Also corrects a poorly-worded comment.
Comment #29
pillarsdotnet commentedReroll after the Great Git Migration.
Comment #30
SebCorbin commentedIs there any way to make a 7.x-dev release, patched, on drupal.org ? This is getting fuzzy with all the patches...
Comment #31
gregglesI agree with creating a branch for 7.x. Unfortunately this patch still modifies more than I would like it to.
This changes some required permissions. We should note that in README.txt installation notes both for completeness and as a helper to people who are upgrading.
That's the only thing that really "needs work." The code seems to work properly.
These changes are relevant bugfixes for the 6.x branch as well.
I've created that as a separate patch in #1077366: Don't translate menu titles nor descriptions - could someone review it?
Moving this to a form seems like a great idea for both branches.
- '!refresh' => url('admin/settings/browscap/refresh'),I don't have the time for that now and don't think it should hold up creating the patch, but it's an example of how not to port a module.
Removing the unused functions browscap_boolean and browscap_unmonitor seem like great ideas to discuss in their own issues.
Comment #32
pillarsdotnet commented@greggles:
So if I understand you correctly, you are unwilling to create a D7 version that incorporates any advantages over the D6 version.
We would have to submit issues to patch the D6 version to bring it up to par with the proposed D7 port, and only then submit an issue to port to D7.
Is that correct?
I mean no offense nor disagreement. I only ask for clarification because core Drupal development happens in exactly the opposite manner.
Comment #33
gregglesSorry for not being more clear.
The only thing that needs to be fixed before I commit this is adding documentation to the README.txt about the proper permissions for D7.
The rest of these things frustrate me as a maintainer who wants two high quality and similar branches but I'm not going to hold back a d7 release on them. I'm happy to get improvements however they come, but happier if they are done in a way that makes it easy to update both branches.
It also makes the review job for this upgrade patch easier since there is less code to review specifically for the upgrade.
Comment #34
pillarsdotnet commentedThe attached patch is as minimal as I can get, without breaking code.
It will not apply as is; but requires and depends on patches in these issues:
#1077366: Don't translate menu titles nor descriptions
#1077622: Correct errors in the downloaded browscap file
#1077650: Move refresh function to settings page.
EDIT: Note that the README.txt is modified to document the permissions change.
Comment #35
pillarsdotnet commentedAnd once again, a combined patch against the contents of git branch 7.x-1.x
Comment #36
pillarsdotnet commentedBah. Typo.
Trying again:
Comment #37
gregglesAwesome. Thanks pillarsdotnet and pasqualle - http://drupal.org/commitlog/commit/890/7c0931e5703bd28fc46779214948b87e7...
As soon as packaging is done it will be published at http://drupal.org/node/1077948
Comment #39
SebCorbin commentedReopening... What's the status? Can we get a dev release ?
Comment #40
tsvenson commentedThere already is a dev release for the commit greggles did in #37!