cms-PdmV / cmsPdmV

CERN CMS McM repository
4 stars 10 forks source link

Retrieve request information based on the request’s `dataset_name` attribute #1100

Closed ggonzr closed 1 year ago

ggonzr commented 1 year ago

Feature request

Retrieve the information related to all the requests that have some specific dataset_name. This new endpoint should be reachable from the public area.

Is your feature related to a problem?

Related to updates required by CMS GEN’s validator script to be compatible with McM after it is migrated to use the new CERN SSO, it is required to delete the dependency of using authenticated requests to retrieve the requests data based on the dataset_name attribute, as described here. If a new endpoint is not provided, this will create a side effect for users when they want to run the “Get Test” script if they have 2FA enabled for their accounts.

Describe the solution you'd like

A new endpoint is included in McM public API that returns the information related to the following operation. mcm_sdk:

mcm_sdk.get('requests', query='dataset_name=%s' % (dn))