-
-
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
Decide on what we should call "base url" parameters #10806
Comments
Just thinking about this a bit more (particularly in the context of #10792 and #10805 ) I think In the case where the URL includes an endpoint (i.e: your thing lives at https://bugs.eclipse.org/bugs or https://issues.apache.org/jira or whatever) baseUrl feels more right than server or instance. |
Should we force https only? I like more the idea offered at #2637 where we would still support http but make it harder to use, maybe add a warning in docs near this option. Regarding the name, i am for something like |
Yeah 👍 so to summarise #10805
|
Over the last 10+ years we have accumulated a lot of code written by a lot of different people.
In general, I think we've done a reasonable job of enforcing relatively consistent code styles and naming conventions, via documentation and/or lint rules, but there are obviously some exceptions.
One significant "blind spot" where we have a lot of variance is what we call "base url" type parameters.
Related to #10805
We've got a bunch of services that call this param
server
shields/services/drone/drone-build.service.js
Lines 39 to 42 in 41d072e
Some that call it
instance
shields/services/obs/obs.service.js
Line 40 in 41d072e
baseUrl
orbase_url
is quite commonshields/services/bugzilla/bugzilla.service.js
Lines 40 to 45 in 41d072e
..and then some services include the name of the service e.g:
shields/services/revolt/revolt.service.js
Lines 43 to 46 in 41d072e
shields/services/gitlab/gitlab-forks.service.js
Lines 35 to 38 in 41d072e
Fundamentally, all of these describe the exact same concept. I think there is value in making this horizontally consistently across badges and I think the reasons why we have a lot of variance here is not down to trying to maintain consistency with upstream terminology.
There are a couple of ways we can change the names of query params without making a breaking change. One way we can do it is with redirects. Another would be to write the
queryParamSchema
s to accept both formats but only document one for the services where we want to fix this. We don't have loads of these, but I probably wouldn't want to do all of them in one PR. It would be nice to gradually work towards fixing this though.I suggest we:
IMO, we should pick a generic term: "server", "instance" or "baseUrl" (i.e: we should not have the service name in the param name). Beyond that, I don't really have a super strong opinion on which name we pick.
The text was updated successfully, but these errors were encountered: