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

Let Super User view and edit segments created by other users #9307

Closed
wants to merge 9 commits into from

Conversation

mattab
Copy link
Member

@mattab mattab commented Nov 30, 2015

Fixes #6766

As a Super User

  • I can now see all segments that were created for this website by any other user
    • When a segment was created by another user who is not Super User, the segment appears below a new section Visible to you because you have Super User access:
    • Such segments are editable by the Super User
    • The only difference when editing someone else's segment, as a Super User, is that This segment is visible to [ME] now says This segment is visible to [SEGMENT_AUTHOR_USERNAME]
  • One can now search in the search bar for a username and see all segments created by this user

For all users

  • New section Shared with you: now lists segments created by a Super User, and marked as Visible to [All Users]
    • Before segments shared with me, looked the same as segments I created, which was confusing

screenshot

new segment editor

As a Super User:

 * I can now see all segments that were created for this website by any other user
  * When a segment was created by another user who is not Super User, the segment appears below a new section "Visible to you because you have Super User access:"
  * Such segments are editable by the Super User
   * The only difference when editing someone else's segment, as a Super User, is that "This segment is visible to [ME]" now says "This segment is visible to [SEGMENT_AUTHOR_USERNAME]"
 * One can now search in the  search bar for a username and see all segments created by this user

For all users:

 * New section "Shared with you:" now lists segments created by a Super User, and marked as "Visible to [All Users]"
   * Before segments  shared with me, looked the same as segments I created, which was confusing
@mattab mattab added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Nov 30, 2015
@mattab mattab added this to the 2.15.1 milestone Nov 30, 2015
@mattab mattab added Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. and removed Needs Review PRs that need a code review labels Nov 30, 2015
@@ -20,10 +20,12 @@
"SegmentIsDisplayedForWebsite": "and displayed for",
"SegmentNotApplied": "Segment '%s' not applied",
"SegmentNotAppliedMessage": "You are requesting data for the Custom Segment '%s', this Piwik configuration currently prevents real time processing of reports for performance reasons.",
"SelectSegmentOfVisitors": "Select a segment of visitors:",
"SelectSegmentOfVisitors": "Select a segment of visits:",
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should also change the key in that case, as it would differ from the translation otherwise

@mattab
Copy link
Member Author

mattab commented Dec 15, 2015

Notes to self

  • it's currently buggy / has a XSS as shown in UI test
  • add to developer changelog the API implementation details changes

@mattab
Copy link
Member Author

mattab commented Jan 22, 2016

Closed and re-created in #9621

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants