-
Notifications
You must be signed in to change notification settings - Fork 981
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
Maintainer Views Meta Issue #2734
Comments
thanks @ewdurbin - just a clarification on the release visibility - e.g. I don't understand this - I thought PyPI (and warehouse) showed all of the release history for each project? Is this setting specifying which version of the project should be shown as the default? e.g. in warehouse - the version which would be linked to from the search results, and have this badge: ? |
That's effectively what's afoot @nlhkabu. What is trying to be accomplished here is allowing a maintainer to push a pre-release to PyPI without having it show as the default release for their project. PyPI will always allow you to view "Hidden" releases which aren't deleted by heading to a direct URL. If more than one release is set to "Hide?" => "No" the project release page ends up looking like:
instead of I don't have a strong opinion one way or the other on whats right or where to go from here... |
Release visibility as a concept doesn't exist in Warehouse. It's a legacy PyPI thing. |
@dstufft does this mean that we can ignore "giving package maintainers a way to manage hidden vs unhidden releases" in #424 (comment)? Or, should I continue to design the UI with the view of introducing this functionality to Warehouse? |
Yea we can ignore it. It is confusing and bad. Warehouse just always shows the latest.
…Sent from my iPhone
On Jan 6, 2018, at 5:32 PM, Nicole Harris ***@***.***> wrote:
@dstufft does this mean that we can ignore "giving package maintainers a way to manage hidden vs unhidden releases" in #424 (comment)?
Or, should I continue to design the UI with the view of introducing this functionality to Warehouse?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Initial design specification for project page: Notes:
From a design/front end perspective, this proposal requires a few new components:
|
Only thoughts so far is that we probably want to collect all destructive actions into a specific place... deleting a project, release, or file isn’t particularly encouraged and we should keep the UI elements for that out of the main path. |
My initial thoughts:
Worth noting that the "destructive action" of deleting a repository is included at the bottom of the "Options" page here.
👍 I think we should take this as an opportunity to revise the terminology for these pages. In #2705 I called this "Collaboration" which I think is more clear, "Journals" could become "Project History", etc. |
Hi @ewdurbin and @di - thanks for your feedback! Latest UI: Regarding destructive actions - I think a better way to deal with this is to ask the user to confirm their action (see #2808 and #2805) rather than hiding it in the UI. This means we can keep it in a location with other actions, but also treat it like dynamite ;P Does this address your concerns? Regarding listing the projects on the left - what would the most projects we could expect a user to have? The reason I have opted to include it here is to provide a shortcut for users - as this currently exists in the old PyPI interface. I have also included a link back to the main project page, to cover both bases. I've opted to put the menu items as tabs because there are not that many :) I don't think combining the tabs and the 'project options' links into one place will work because some open a new page, where others complete an action. Anyway, please pull down the latest via the 'role-management' branch to take a look 😁 |
A lot. warehouse-prod::DATABASE=> SELECT user_name, COUNT(*) as num from (SELECT DISTINCT user_name, package_name FROM roles) a GROUP BY user_name ORDER BY num DESC LIMIT 10;
user_name | num
-------------+------
OCA | 3146
openstackci | 612
davisagli | 514
hannosch | 508
faassen | 403
icemac | 401
agroszer | 355
tlotze | 330
srichter | 328
projekt01 | 314
(10 rows) |
Thanks for the update @nlhkabu! Responses below:
I think this makes sense.
Besides the potential length for this list, I don't think that users will be switching back and forth between projects so much that this shortcut is necessary. The usual flow is probably something like:
There likely will be more of these in the future, so it might be preferable to be able to expand vertically rather than horizontally. I was suggesting that anything in this menu that performs an action would just exist under an "Options" tab/page instead, similar to the "Options" page for a github repo. I think it would be better to have these in the same place as the other project management subpages rather than a separate button/dropdown. It also makes all these pages a little simpler, as the "Project Options" dropdown and corresponding forms/modals won't need to exist on every management page. |
Ok, thanks everyone for your feedback and info. Regarding the options page - I'm just worried that there will not be enough content to justify a page by itself. What other content do we imagine could go on this page in the future? TODOs on my side:
List of ProjectsGiven some users have many projects (as highlighted by Donald above) should we add pagination to the list of projects currently located at:
Should we open a new ticket for these? @di do you want this done before merging #2705 or are you happy to merge and have fixes down the line? |
I think it'd be preferable to include a simple client-side search instead, especially if projects are ordered by most recently updated and not alphabetically (although this would definitely be post-MVP) -- so let's make an issue for it.
Either's fine with me! |
This has been addressed! |
Goals of this Issue
Classify, describe, and share the current functionality implemented by PyPI to assist contributors while developing warehouse's maintainer UI.
THIS IS NOT THE CORRECT ISSUE FOR FILING BUGS OR FEATURE REQUESTS REGARDING A MAINTAINER ACTIVITY
Proposed hierarchy
maintainer-views
├── account
│ ├── email_address
│ ├── openids
│ ├── password
│ └── pgp_key_id
└── projects
└── PROJECT_NAME
├── releases
│ ├── RELEASE_VERSION
│ │ ├── PKG-INFO
│ │ ├── files
│ │ └── journal
│ └── list
├── PKG-INFO
├── documentation
├── journal
├── roles
└── view
Legend
These are not necessarily their on page but "resources" or "fields" that could be updated.
These will either contain links to the resources or data presented in a resource.
Current views as implemented in pypi-legacy
maintainer-views/ (root)
https://pypi.python.org/pypi
Note: The box in the top right effectively serves as our maintainer-views/projects view at all times.
maintainer-views/account view
https://pypi.python.org/pypi?%3Aaction=user_form
Includes "resources":
maintainer-views/projects/PROJECT_NAME view
https://pypi.python.org/pypi?%3Aaction=pkg_edit&name=PROJECT_NAME
Includes "resources":
With links to
maintainer-views/projects/PROJECT_NAME/roles
https://pypi.python.org/pypi?:action=role_form&package_name=PROJECT_NAME
maintainer-views/projects/PROJECT_NAME/view
https://pypi.python.org/pypi?name=PROJECT_NAME&:action=display
Includes "resources"
NOTE: Further on to bottom of page we include the journals for the release
maintainer-views/projects/PROJECT_NAME/releases
https://pypi.python.org/pypi?:action=pkg_edit&name=PROJECT_NAME
Includes "resources":
With links to
maintainer-views/projects/PROJECT_NAME/releases/RELEASE_VERSION
https://pypi.python.org/pypi?:action=files&name=PROJECT_NAME&version=RELEASE_VERSION
Includes "resources":
With links to:
The text was updated successfully, but these errors were encountered: