-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
Get org members as authors, time-sort authors, sort tags to middle #2942
Conversation
In the case of skipping an org, is there a way to check for public owners of an org? This would support situations where a new mod is only released on an org, with the owner of the org as the author. (This might be a pretty niche situation, but it's how I like to stay organized.) |
Here's what GitHub is willing to tell us about your org:
Here it is! https://api.github.com/orgs/tekaohksp/public_members I'll look into what we can do with that... |
Actually, I'm a little confused. In the case I commented on initially, the repo is currently in the org account, forked from mac's. Just two levels. I don't see how my Tekaoh name was included as the first entry... Must be coming from somewhere else already |
Oh, ok. That seems sufficient. I don't think it can ever be an org account that makes a release. So in the case of a new mod released in an org repo, the org name will be skipped and the actual user's name will come from the release. For example, https://github.com/tekaohksp/Science-Full-Transmit would work that way and it would give the expected result. |
Updated it to retrieve the org members. I wonder what that looks like for KSP-RO... ... it looks like this: "author": [
"NathanKell",
"SirKeplan",
"StollD",
"blowfishpro",
"cherrydev",
"pjf",
"rsparkyc",
"stratochief66",
"zorg2044",
"raidernick"
], |
3208398
to
ea01c99
Compare
Actually, I though this was intentional in the initial PR, and liked it that way. Yes we have a While it is very honourable to put the initial author in front of the list, in this case I would opt for usability/usefulness. As of right now, it is reverse-chronological, which is also fine I think. |
It wasn't. The manually-maintained author lists are in earliest-first order as far as I know, and during dev I was focused on the API logic and didn't consider the ordering. It's a |
Oh well, it might have been pure coincidence for the 2 or 3 mods I tested then.
A quick look into some netkans reveals that this is indeed the case for the majority of the mods. I'm willing to go with the more or less established standard then. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prepare for another CKAN-meta commit flood!
Problems
In #2922 we enhanced Netkan to include owners of parent repositories in the authors list. This has two issues as pointed out by @Tekaoh:
Also the
tags
property of .ckan files is not included in the property sorting transformer, so it defaults to the end. This isn't optimal.Changes
owner.type
property from the API and only add the repo owner to the authors list if it'sUser
, otherwise we retrieve the members of the org and add them insteadtags
afterresources
, plus a few other minor personal preference tweaksThis will probably result in a lot of .ckans getting re-indexed, but that should be OK.
FYI to @Tekaoh, this is the pull request I mentioned.