Hi,
I've been used your module very often lately,
I have modified some of your code to integrate this helpful module with ctools exportable api.
My modified version now works with ctools related module like features.
Regards,
| Comment | File | Size | Author |
|---|---|---|---|
| #53 | profile2_regpath-1510700-53.patch | 21.26 KB | SRizo |
| #21 | ctools_exportable-1510700-21.patch | 23.46 KB | tien.xuan.vo |
| #20 | ctools_exportable-1510700-20.patch | 22.89 KB | tien.xuan.vo |
| #18 | ctools_exportable-1510700-18.patch | 22.7 KB | tien.xuan.vo |
| #17 | Screen Shot 2013-07-03 at 2.36.40 PM.png | 57.78 KB | RobKoberg |
Comments
Comment #1
dk129 commentedpatch is attached
Comment #2
grasmash commenteddk129,
Thanks so much for your work. I'm thrilled that you've added this feature- it's something that I've been meaning to do.
However, it looks like the patch that you've attached was not rolled against 7.x-1.x-dev from the git repository. It failed 2 out of 3 hunks.
I'm granting you commit access to the repo so that you can apply your changes directly.
Comment #3
dk129 commentedHi,
Yeah, the patch is for your stable version 7.x-1.6
Tks man, I will checkout the branch 7.x-1.x-dev to work on.
Nice day.
Comment #4
spidermanI've re-rolled dk129's patch from #1 against the 7.x-1.x branch. Seems to mostly work for me, except for a weird bug which I believe is a quirk with my local setup, where profile2_regpath settings don't get properly *reverted* (ie. from a features module, either on first being enabled, or --force reverted via drush).
Anyone interested in testing this new version of the patch to confirm it works as it should, and maybe we can get this committed?
Comment #5
spidermanComment #6
grasmash commentedThis patch still needs a lot of work.
Comment #7
erikwebb commentedIs there no reason to store this information in simple variables? The data is just a flat array with no real relationships.
Comment #8
webflo commentedAdded db schema migration and removed dd().
Comment #9
tien.xuan.vo commentedchange status for test
Comment #11
tien.xuan.vo commentedApplicable patch for current 1.x-dev.
Fix a small typo.
Comment #12
tien.xuan.vo commentedComment #13
tien.xuan.vo commentedAdd ctools as a dependency.
Comment #14
tien.xuan.vo commentedMake the patch compatible with features module.
I don't know how to store the roles in profile2_regpath table, 3 choices:
1. serialize(array($rid => $rid));
2. serialize(array($rid => $role_name));
This is what I am using in this patch. (Note: I store only enabled roles).
3. serialize(array($role_name));
I think this is best for exporting to feature. (Note: Only store enabled roles)
I don't know how to test rebuild a feature.
Another thing is: I can't revert profile type (an entity type provided by profile2 module) using feature.
Sorry for my English :)
Comment #15
tien.xuan.vo commentedFix minor bug.
Comment #16
tien.xuan.vo commentedRemove trailing whitespaces.
Comment #17
RobKoberg commentedI applied the patch in #16 to 7.x-1.x-dev. The is an entry for p2 regpath, but the label is missing. See screen grab.
Comment #18
tien.xuan.vo commentedCorrect hook_update_n. Please try again.
Comment #19
RobKoberg commentedI applied the patch in 18 to a clean version of 7.x-1.x-dev, which applied successfully. However, now when I go to features, I do not see an option for profile2 regpath.
Comment #20
tien.xuan.vo commentedThanks for your testing. Fixed no options in features page. Please try again. Don't forget to run database update scripts.
Comment #21
tien.xuan.vo commentedFix error: Field 'profile_id' doesn't have a default value.
Comment #22
spidermanI am happy to report that testing of the patch in #21 seems to work perfectly for me. I was able to add a profile2_regpath item to my feature, export it, have it take effect when enabling the feature, and change/revert it through the features mechanism (adjusting the url path).
As such, I think this patch is ready to be committed, and I will incorporate it into the project I used this for originally.
Comment #23
univate commentedRe-rolling patch.
Comment #24
grasmash commentedThanks to everyone who's been working on this.
I'm looking to commit it ASAP. However, after some preliminary testing, I've found that this patch breaks the 'role assignment' functionality.
Comment #25
grasmash commentedK, figured out the issue and fixed. Patch has been committed to 7.x-1.x. Next up, port to 7.x-2.x?
Comment #26
grasmash commentedAck, just realized that the changes prevent multiple profiles from being attached to a single path, which is a major regression. Might have been too hasty with accepting the patch. Dev branch is a bit FUBAR at the moment.
Comment #27
grasmash commentedAfter more refactoring, this patch has been applied to both 7.x-1.x and 7.x-2.x. Please test functionality to confirm.
Comment #28
RobKoberg commentedI just did a drush up and did not see any updates for this module. That is probably because I am using 7.x-1.12+10-dev. Are all of the changes from 7.x-1.12+10-dev in the 7.x-1.x branch now? Is it just for dev or the recommended version?
Additionally, if I go to 7.x-2.x, does any existing functionality fundamentally change or is just new features?
Comment #29
spiderman@madmatter23: I've tested from a clone of the latest 7.x-1.x branch, and your newest commits appear to have achieved the goal here effectively. As with the patch above, I can update/revert a feature incorporating profile2_regpath settings, and have them take effect whether the change happens through the web interface or adjusting the features code directly. Hooray!
Comment #30
grasmash commented@RobKoberg Please pull from git repo branch 7.x-1.x.
@spiderman thanks!
Comment #32
gettysburger commentedI updated do the dev version today so that Features would remember my unique registration path as well as the default role for that profile. It did remember the settings but when I logged out and went to the registration url I got the WSOD.
Comment #33
xxronis commentedIs this working?
Im not getting any regpath settings in my Feature.
Tried with the beta version also
thanks
Comment #34
nevergoneThis is not work, profile2_regpath_features_revert() function delete all profile2_regpath settings in database.
Comment #35
nevergoneComment #36
dk129 commentedComment #37
ladybug_3777 commentedI'm reading through the thread and it looked like this patch was good to go, but is actually not quite there yet? I think this status should be set to "needs" review instead of "needs work" because the latest patch hasn't passed the simple test, but maybe that patch isn't finished?
Comment #38
nevergoneOkay, go to testing! :)
Comment #39
grigoriunicolae commentedPatch from #35, helped. I used it in a custom install profile, and everything works well...
Comment #40
ladybug_3777 commentedShoot! I was going to test this then I realized I'm using version 7.x-1.12 and this is against version 2 dev. I'll have to come back to testing it when I have time to get the dev version of 2 installed. :-(
Comment #41
ladybug_3777 commentedThis patch seems to work well, however upgrading from 1.12 to 2.0-dev caused new errors to popup (such as the title of the unique page not changing and other db issues) so I'm not sure that I want to trade one fix for a potentially buggy dev version :-(
The patch itself looks decent though! Now to decide if upgrading to 2.0-dev is worth the risk or not.
Comment #42
evilehk commentedI installed version 7.x-2.0-beta3+12-dev, and added profile2_regpath feature components to a feature module. When enabling the module in a different environment, the settings did not stick. In addition, the install profile would error out because there was no value for profile id. Applying patch #35 solved those issues.
Comment #43
captainack commentedI have been having lots of success with #35 as well over quite a few of the past few features and ctools versions. It works well, and so far, the only issue reported over a year seems to be with upgrading from 1.x, which might not have been related to the patch.
Comment #45
grasmash commentedComment #48
kylesmith commentedI'm using the release Profile2 Registration Path module (version 7.x-1.12) and have recreated patch #23 so the profile2_regpath ctools exportable patch can be applied to it.
The patch is working great so far.
Comment #49
donquixote commentedIt is not working for me (7.x-2.0-beta3+14-dev).
The profiles still show up as "Overridden" after "drush fu" on the respective feature.
And after a "drush fr" on the destination site, the " Enable this profile on a registration form" checkbox is unchecked, and a lot of the settings are wiped.
Comment #50
shi99 commentedI am having the same issue as mentioned in #49.
On Feature Revert the "Enable this profile on a registration form" becomes unchecked and disables the functionality.
Comment #51
kylesmith commentedMy patch in #48 can't be applied to the updated module version 7.x-1.13. I'm attaching a new patch for the updated module (i.e. recreating patch #48 which was already a recreation of patch #23).
Comment #52
SRizo commentedPatch in #51 worked for me also for version 7.x-1.13, but did not assign roles, therefore attached a patch to realize it.
Comment #53
SRizo commentedNew patch for version 7.x-1.13