cvat-ai/cvat

userAgreements in server-proxy.ts (?)

Closed this issue · 2 comments

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Steps to Reproduce

I still have this error in my logs, /api/user-agreements?org= 404 (Not Found).

server-proxy.ts lignes 419-435

async function userAgreements(): Promise<SerializedUserAgreement[]> {
    const { backendAPI } = config;
    let response = null;
    try {
        response = await Axios.get(`${backendAPI}/user-agreements`, {
            validateStatus: (status) => status === 200 || status === 404,
        });

        if (response.status === 200) {
            return response.data;
        }

        return [];
    } catch (errorData) {
        throw generateError(errorData);
    }
}

I don't really know what it's for and it doesn't seem to be working, should I deactivate it?

Expected Behavior

No response

Possible Solution

No response

Context

No response

Environment

No response

Just do not worry about this error
This code needs to be refactored to not affect community version

if it's to manage user rights, I might be interested 😊