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

Move Plugin Site Label display names to the update center #82

Closed
oleg-nenashev opened this issue Feb 26, 2020 · 8 comments
Closed

Move Plugin Site Label display names to the update center #82

oleg-nenashev opened this issue Feb 26, 2020 · 8 comments
Labels

Comments

@oleg-nenashev
Copy link

Currently label display names are stored locally as the Plugin Site API resource: https://github.com/jenkins-infra/plugin-site-api/blob/master/src/main/resources/labels.json . It does not make much sense, and it prevents other consumers from using them.

I suggest moving the display names to https://github.com/jenkins-infra/update-center2 directly

CC @jenkins-infra/plugin-site

@halkeye
Copy link
Member

halkeye commented Feb 26, 2020

heck yes!

Just make it output a new file that can be cached/consumed?

I don't think changing the main json to return strings is a good plan.

@daniel-beck
Copy link

daniel-beck commented Mar 1, 2020

Disagree strongly.

This proposal would bloat update center JSON, downloaded hundreds of thousands of times every day, for very little benefit except during short periods of increased label definition activity, like we're in now. Nobody should be using a Jenkins release with label/category definitions older than 4 months (and that's just LTS due to baseline age), so there's few user-friendly label names people would be missing out on.

@halkeye
Copy link
Member

halkeye commented Mar 1, 2020

I don't think it needs to be in the json, just owned by update center. labels.json or something. I'm a big fan of static files that can be CDN'd over api servers that can go down

@daniel-beck
Copy link

daniel-beck commented Mar 1, 2020

@halkeye That makes (some) sense, but isn't @oleg-nenashev's goal per jenkinsci/jenkins#4534 (comment).

@oleg-nenashev
Copy link
Author

Actually I would prefer a separate file as @halkeye says. The tricky part is serving it to Jenkins instances with custom update center. Maybe a build-time update is good enough

@daniel-beck
Copy link

The tricky part is serving it to Jenkins instances with custom update center.

IOW,

bloat update center JSON

would still apply.

@halkeye
Copy link
Member

halkeye commented May 10, 2021

Coming back to this one, what about the labels being in jenkins core then, and we render the label name from core, else the tag. That isn't something that updates very often if ever really...

@zbynek
Copy link
Collaborator

zbynek commented Mar 4, 2023

Since jenkins-infra/plugin-site#754 the label translations come from Core and label categories from plugin-site.

@zbynek zbynek closed this as completed Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants