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

Unable to view the speed limit for proxy cache project #21021

Closed
wy65701436 opened this issue Oct 10, 2024 · 3 comments · Fixed by #21048
Closed

Unable to view the speed limit for proxy cache project #21021

wy65701436 opened this issue Oct 10, 2024 · 3 comments · Fixed by #21048

Comments

@wy65701436
Copy link
Contributor

wy65701436 commented Oct 10, 2024

I can set the speed limit when creating the proxy cache project, but I have nowhere to view and update it afterward.

It returned from the backend, and we should add it into the configuration page,

{
    "creation_time": "2024-10-10T07:13:26.723Z",
    "current_user_role_id": 1,
    "current_user_role_ids": [
        1
    ],
    "cve_allowlist": {
        "creation_time": "0001-01-01T00:00:00.000Z",
        "id": 2,
        "items": [],
        "project_id": 2,
        "update_time": "0001-01-01T00:00:00.000Z"
    },
    "metadata": {
        "proxy_speed_kb": "-1",
        "public": "false",
        "retention_id": "1"
    },
    "name": "proxy",
    "owner_id": 1,
    "owner_name": "admin",
    "project_id": 2,
    "registry_id": 1,
    "repo_count": 1,
    "update_time": "2024-10-10T07:13:26.723Z"
}

It should provide an way to the project admin to do this.

image

@wy65701436 wy65701436 changed the title Unable to view the update the speed limit for proxy cache Unable to view the speed limit for proxy cache project Oct 11, 2024
@xuelichao
Copy link
Contributor

Should we support to update proxy cache?

@stonezdj
Copy link
Contributor

No update, just display the value

@bupd
Copy link
Member

bupd commented Oct 14, 2024

  1. We currently have the ability to edit replication and robot accounts, etc., but projects, once created, cannot be edited via the UI. I was wondering if we could add an option to edit projects. Do you think this would be the right approach?

  2. Additionally, if we need to view and update the bandwidth of the proxy cache for a project, I propose placing this option under the Configuration tab of the project, specifically after the public checkbox. This seems like the most appropriate place for managing project-level settings.

I personally prefer approach 1, which introduces an edit option for projects, but I’m unsure. I’d appreciate your feedback on whether this approach makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants