I can't find any purpose for $mapping->status or $mapping->locked, and the description on the form simply states 'Not yet in use'. This should at the very least have a link to some feature plan, otherwise it's adding needless confusion to an already drupally interface. I can only see commented out form array assignments in validation asking 'what does locked even mean?'.

Can this be removed entirely? If so I will submit a patch.

Comments

michaelmallett created an issue. See original summary.

aaronbauman’s picture

"status" should allow enable / disable of a mapping.
"locked" should prevent / allow the mapping to be edited.

michaelmallett’s picture

But it doesn't actually do anything at the moment, so it's confusing to have these form fields. I reckon we at least comment these fields out with a @todo.

From my own personal experience, when something goes wrong and trying to debug the module, it's wasted time for anyone to search through the code to find out what these do (which is nothing), 'Not Yet In Use' is insufficient. I realise drupal modules seem to have a strict policy of limited word counts in their descriptions and documentation but at the least it should be more descriptive, even if it saves someone ten minutes of confusion/frustration it's worth it.

aaronbauman’s picture

Very reasonable suggestion.
I'm happy to get rid of them until someone has time to make them work.

aaronbauman’s picture

Status: Active » Needs review
StatusFileSize
new5.9 KB

This will go into the next release unless it causes some problems.
Let me know.

Status: Needs review » Needs work

The last submitted patch, 5: salesforce-remove_unused_mapping_properties-2968664-5.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

aaronbauman’s picture

Status: Needs work » Needs review
StatusFileSize
new3.2 KB

OK, I guess schema API requires that we have a status field (?!?!?)

Status: Needs review » Needs work
aaronbauman’s picture

Status: Needs work » Needs review
StatusFileSize
new6.18 KB

wrong patch.

  • aaronbauman committed 1ecc00e on 8.x-3.x
    Issue #2968664 by aaronbauman: Remove status and locked from module
    
aaronbauman’s picture

Status: Needs review » Fixed

committed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.