Closed (fixed)
Project:
Up RPC
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2011 at 18:11 UTC
Updated:
25 Oct 2011 at 16:00 UTC
Jump to comment: Most recent file
Clients module has had two major changes:
- client connections are referred to by machine name, not database ID
- client connection method calls throw exceptions
This module needs updating for those changes.
Comments
Comment #1
joachim commentedComment #2
joachim commentedI missed one -- made followup commit.
Comment #4
smoothify commentedWhen testing out this module, i noticed the user import needs to be updated too.
Here is a patch that attempts this based on your node import changes.
Comment #5
smoothify commentedComment #6
joachim commentedLooks good apart from one problem:
Users don't have any notion of 'last edited' because user table doesn't have an 'updated' column like nodes do, so the $user_retrieve_filter won't do anything.
vbv
Comment #7
smoothify commentedHmm, i hadn't thought about that.
Currently this allows you to pick up new users since the last change but of course wouldn't take into account any changes to existing users.
It would be *really* useful to be able to track which users have been modified since the last import as well. On the site i'm doing there is over 11,000 users so it takes a bit of time to import - some people may edit there settings in that time.
Perhaps a module on the D5 side of things could respond to after_update in hook_user and keep track of the timestamps of any changes? Then that could be used in the same way as in the node import.
Comment #8
smoothify commentedHere is another patch, this contains the original changes, plus inside the uprpc_import_services.module it now adds a 'changed' field and sets the value of this during the update op of hook_user.
Comment #9
smoothify commentedDoh! Would help if I uploaded the correct patch...
Comment #10
smoothify commentedDouble Doh, That last patch didn't include the relevant install file inside the patch.
Apologies, I hope this is third time lucky :)
Comment #11
joachim commentedI'm always iffy about changing other modules' tables, but a site that's running this is in theory about to be taken down after the migration is complete anyway :)
Committed with some comment tweaks.
- #1245342 by smoothify: Changed user imports for latest changes to Clients module; added 'changed' column to users table to allow incremental imports of users.