Resolve naming conflict "override per content type setting" and "override default"

alex_b - August 24, 2009 - 01:38
Project:Feed Element Mapper
Version:6.x-2.x-dev
Component:Code
Category:task
Priority:critical
Assigned:Unassigned
Status:closed
Description

The status of a mapping can now be 'overridden' because it is a) an override of a default mapping or b) an override of a per content type mapping.

We need to resolve this naming conflict by avoiding the term override when creating per node type mappings.

#1

alex_b - August 24, 2009 - 02:06

This naming conflict needs to be not only solved for the UI level but for the code level as well.

#2

Aron Novak - August 24, 2009 - 08:03

I'd say when we're talking about per-content-type and per-node mapping, this is actually the scope of the mapping.

#3

Aron Novak - August 24, 2009 - 08:32
Status:needs work» needs review

tests are 100%
new terminology: scope for talking about the whole stuff, restrict when we want per-node mapping.
Both UI and code are fixed.

AttachmentSize
557500_name_conflict.patch 8.17 KB

#4

alex_b - September 17, 2009 - 21:58
Status:needs review» needs work

I'd tweak this slightly. Why don't we do this:

--

Scope: This mapping is the standard content-type mapping. Any changes will affect all feeds with the same content-type. [Change to per node type].

Status: default (This mapping is defined in code).

--

Scope: This mapping is specific to this feed node. [Use standard content-type mapping]

Status: overridden (There is a default mapping defined in code but it is overridden in the database).

--

Status: normal (This mapping is defined in the database).

--

Rename _feedapi_mapper_is_overridden() to _feedapi_mapper_is_per_content_type().

#5

Aron Novak - September 18, 2009 - 12:26

"Rename _feedapi_mapper_is_overridden() to _feedapi_mapper_is_per_content_type()."
_feedapi_mapper_is_overridden() even does not exists anymore. It is called _feedapi_mapper_scope() in #3
As i see you like "scope" in general, so that function name should be okay if we use scope in the UI

#6

Aron Novak - September 18, 2009 - 12:30

"[Change to per node type]" - per node type is misleading, because it's rather similar to content type. People usually mix "node type" and "content type" phrases, so i'd say [Change to per node] instead.

#7

Aron Novak - September 18, 2009 - 12:39
Status:needs work» needs review

UI text is improved a little bit according to #4 (but without the "node type" phrase)

AttachmentSize
557500-1_name_conflict.patch 8.88 KB

#8

alex_b - September 29, 2009 - 18:47
Status:needs review» fixed

Committed with some text tweaks and UI tweaks. Also updated tests. Thank you.

#9

System Message - October 13, 2009 - 18:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.