Automatic syncing can not be changed after fieldmap-creation

Bevan - July 31, 2009 - 05:38
Project:Salesforce
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

There is no way to change the sync to salesforce automatically checkbox once a field map has been created. The checkbox should be available on the fieldmap-edit form in order to enabledisable automatic syncing.

#1

Bevan - August 31, 2009 - 11:52
Status:active» needs work

Corrected description: There is no way to change the "sync to salesforce automatically" checkbox once a field map has been created. The checkbox should be available on the fieldmap-edit form in order to enable/disable automatic syncing.

#2

legion80 - September 17, 2009 - 19:43

I think it might be better to move that checkbox into the fieldmap/#/edit page altogether, instead of having it in both the add and edit pages, since it doesn't seem to me that knowing whether you want to sync the data is necessary to create the fieldmap.

#3

Bevan - September 17, 2009 - 20:03

legion80, agreed.

#4

bibeksahu - September 18, 2009 - 22:04

Attached is a patch to correct this issue.

It's made against salesforce-6.x-2.x-dev, from Sep-01-2009 (latest available for download as of this writing). Something along these lines has been on my todo list for a while. It follows the method described in comment #2.

AttachmentSize
salesforce_api-fieldmap-checkbox.diff 1.35 KB

#5

Bevan - September 20, 2009 - 22:25
Status:needs work» reviewed & tested by the community

Thanks!

#6

legion80 - September 24, 2009 - 17:56

Wanted to verify that this works. When can we see this patch pushed to the -dev branch?

#7

Bevan - September 24, 2009 - 23:22
Status:reviewed & tested by the community» needs review

I had intended to mark the issue "needs review", and not "RTBC" in comment #5.

legion, it's not clear whether you tested this patch or not, or what – specifically – you tested with the patch. please clarify and feel free to change the issue status to RTBC if you think that is valid.

#8

legion80 - September 25, 2009 - 13:57

I have verified that the UI checkbox has moved from the "fieldmap add" page to the "fieldmap edit" page. I can also verify that changing the value of the checkbox properly adjusts the "automatic" column in the fieldmap SQL table.

Has anyone else tried the patch? I personally was wondering at point any given patch can move to RTBC--as in, how large "C" needs to be before it is approved.

#9

Bevan - September 26, 2009 - 09:02

Great! For simple patches one good review by a confident drupal dev is enough. More reviews are generally needed respective of the complexity of the bug/patch. Basically, if you think that it's ready to be committed, AND you think that the maintainer/s will probably agree with you, then you can mark it RTBC.

As a maintainer, I'd need to either;

  • see one more good review (as thorough as yours but trying to test/check other aspects of it), OR
  • review it myself

before I commit it.

Since I barely have time to address the list of issues marked RTBC for salesforce, let alone the patches needing review or work, I'll leave this on "needs review" for now.

Thanks for your review though, much appreciated!

#10

aaronbauman - September 29, 2009 - 20:10
Status:needs review» reviewed & tested by the community

I tested and verified legion80's results from comment #8

  • verified checkbox moved from the "add" screen to the "edit" screen
  • verified existing fieldmaps "automatic" value is populated correctly
  • verified new fieldmaps "automatic" value defaults to 0
  • verified saving the "edit" screen properly updates the "automatic" value and properly saves other fieldmap data

This is good to go - let's get it in!

 
 

Drupal is a registered trademark of Dries Buytaert.