-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix variable naming for [ROS] version service #8292
Conversation
@@ -43,12 +43,12 @@ const packageSchema = Joi.object({ | |||
export default class RosVersion extends GithubAuthV4Service { | |||
static category = 'version' | |||
|
|||
static route = { base: 'ros/v', pattern: ':distro/:packageName' } | |||
static route = { base: 'ros/v', pattern: ':distro/:repoName' } | |||
|
|||
static examples = [ | |||
{ | |||
title: 'ROS Package Index', |
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.
Given the confusion so far, as well as changing the internal terminology (var/test names, etc) shall we attempt to clarify this a bit more in the user-facing text? We could consider changing the title
here to clarify that the 'unit of versioning' (for want of a better term) here is the repo not the package. The other thing we sometimes do is include a documentation key in the example (e.g:
shields/services/osslifecycle/osslifecycle.service.js
Lines 3 to 12 in 23c0406
const documentation = ` | |
<p> | |
OSS Lifecycle is an initiative started by Netflix to classify open-source projects into lifecycles | |
and clearly identify which projects are active and which ones are retired. To enable this badge, | |
simply create an OSSMETADATA tagging file at the root of your GitHub repository containing a | |
single line similar to the following: <code>osslifecycle=active</code>. Other suggested values are | |
<code>osslifecycle=maintenance</code> and <code>osslifecycle=archived</code>. A working example | |
can be viewed on the <a href="https://github.com/Netflix/osstracker">OSS Tracker repository</a>. | |
</p> | |
` |
repoName
param corresponds to in ROS-land or link to relevant documentation. I'm not 100% sure what to suggest as the platform specifics of ROS are out of my wheelhouse, but perhaps we can do a bit more to explain.
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.
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.
nice - this looks sensible to me
The version information that this service is fetching is the version for a whole repository of ROS packages which all share the same version. A repository may contain only a single package with the same name, but it may also contain multiple packages, and this badge service fetches version information based on the repo name, not the package name.