Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

EZP-26872: Add support for starting Location id in the UDW Finder #804

Merged
merged 1 commit into from
Feb 15, 2017

Conversation

dpobel
Copy link
Contributor

@dpobel dpobel commented Feb 8, 2017

JIRA: https://jira.ez.no/browse/EZP-26872
replaces #799

Description

This patch brings the support of the starting Location id UDW parameter to the Finder method.

Screencast:

Tests

manual tests + unit tests

@dpobel dpobel force-pushed the ezp-26872_starting_location branch from 2938160 to e0698c7 Compare February 9, 2017 10:13
@@ -22,6 +22,60 @@ YUI.add('ez-universaldiscoveryviewservice', function (Y) {
*/
Y.eZ.UniversalDiscoveryViewService = Y.Base.create('universalDiscoveryViewService', Y.eZ.ViewService, [Y.eZ.SideViewService], {
/**
*
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@StephaneDiot : missing doc

},

/**
* `Get the path of the UDW starting Location.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@StephaneDiot : not Get (it returns nothing) but Loads

* @method _loadStartingLocationPath
* @protected
* @param {eZ.Location} startingLocation
* @param {Function} callback
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@StephaneDiot missing doc for the callback parameter

ATTRS: {

/**
* Holds the starting location where the UDW will .
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@StephaneDiot the end of the sentence is missing

*
* @attribute startingLocation
* @default false
* @type {eZ.Location}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@StephaneDiot this should reflect the fact it can be false

@dpobel dpobel changed the title [WIP] EZP-26872: Add support for starting Location id in the UDW Finder EZP-26872: Add support for starting Location id in the UDW Finder Feb 9, 2017
Copy link
Contributor

@yannickroger yannickroger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With comments fixed and commit squashed.

* @method _loadStartingLocationPath
* @protected
* @param {eZ.Location} startingLocation
* @param {Function} callback Executed after loading the path. Takes the location containing the path in parameter or false if loading error.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: line too long

this.wakeUp();
}
});
this.on('*:explorerNavigate', function(e) {
this._handleLevelViews(e.target, e.depth, e.location);
});
this.after('startingLocationChange', function (e) {
if ( e.newVal === e.prevVal ) {
// this is to avoid rebuilding the level views when a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing capital letter. Lines are too short. Sentences are long and weird.

@@ -138,11 +178,15 @@ YUI.add('ez-universaldiscoveryfinderexplorerview', function (Y) {
*
* @method _addLevel
* @param {Y.eZ.Location} location the parent location
* @param {Number} the location id that should be selected in the level
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name of the parameter is missing

@@ -170,19 +214,33 @@ YUI.add('ez-universaldiscoveryfinderexplorerview', function (Y) {
},

/**
* The starting Location model if the UDW is configured with one.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Model ?

@@ -150,20 +150,32 @@ YUI.add('ez-universaldiscoveryfinderview', function (Y) {
},

/**
* Holds the virtual root location
* The starting Location model if the UDW is configured with one. It
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here. We usually call it Location without model

@dpobel dpobel force-pushed the ezp-26872_starting_location branch from 5c6915c to b16570b Compare February 14, 2017 10:01
@dpobel dpobel merged commit fb96bce into master Feb 15, 2017
@dpobel dpobel deleted the ezp-26872_starting_location branch February 15, 2017 12:57
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants