Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added filter for author/creator #46

Merged
merged 10 commits into from
Mar 13, 2017
Merged

Conversation

trickreich
Copy link
Contributor

@trickreich trickreich commented Oct 14, 2016

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #issuenum
Related issues/PRs #issuenum
License MIT
Documentation PR sulu/sulu-docs#prnum

What's in this PR?

New feature for article list view: Added filter for author/creator.

To Do

  • Elasticsearch: Add new fields (authors_id, creator_contact_id)
  • Overlay-Filter: Add
  • Dropdown: Three items (Alle, Nur meine, Nur von...)
  • Overlay-Filter: datagrid with search
  • Filter by authors_id && creator_contact_id

@trickreich
Copy link
Contributor Author

trickreich commented Mar 8, 2017

@wachterjohannes In my opinion this would be nice a feature und should be included at least in version 1.0

@wachterjohannes
Copy link
Member

i would say we do it as soon as possible eventually for 0.3.0? what do you think?

@wachterjohannes wachterjohannes added this to the 0.3.0 milestone Mar 8, 2017
@wachterjohannes wachterjohannes changed the title [WIP] List: Added filter for author/creator List: Added filter for author/creator Mar 13, 2017
@@ -351,4 +351,40 @@ public function getLocalizationState();
* @return $this
*/
public function setLocalizationState(LocalizationStateViewObject $localizationState);

/**
* @param string $authorId
Copy link
Member

Choose a reason for hiding this comment

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

add descriptions to this function like the others in this class.

}
});

listToolbarTemplate.push({
Copy link
Member

Choose a reason for hiding this comment

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

why not retrieving this button also from buttons.get?

contactIdFilter: {
    options: {
        icon: 'filter',
        title: this.translations.filterAll,
        group: 2,
        ...
    }
}

switch(item.id) {
case 'me':
contactId = this.sandbox.sulu.user.id;

Copy link
Member

Choose a reason for hiding this comment

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

no new line

break;
default:
contactId = null;

Copy link
Member

Choose a reason for hiding this comment

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

no new line

@@ -118,6 +118,18 @@
<source>sulu_article.smart-content.author-full-name</source>
<target>Author (alphabetic)</target>
</trans-unit>
<trans-unit id="list-filter-01" resname="sulu_article.list.filter.by">
<source>sulu_article.list.filter.by</source>
<target>Only from...</target>
Copy link
Member

Choose a reason for hiding this comment

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

could this be removed?

@wachterjohannes wachterjohannes changed the title List: Added filter for author/creator Added filter for author/creator Mar 13, 2017
@wachterjohannes wachterjohannes merged commit 46584a4 into develop Mar 13, 2017
@wachterjohannes wachterjohannes deleted the feature/list-filter branch March 13, 2017 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants