total_count in the get artifacts api doesnot return the count of artifacts in all the realms even when the admin token is specified
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glare |
New
|
Undecided
|
Unassigned |
Bug Description
get artifacts glare api with admin token returns all the artifacts in all the realm, whereas the total_count is still the number of artifacts in specific realm.
(get_all call in sqlalchemy/api.py takes "list_all_
//Existing code in sqlalchemy/api.py:
artifacts = _get_all(
context, session, filters, marker,
limit, sort, latest, list_all_artifacts)
total_artifacts
//Code with fix in sqlalchemy/api.py:
artifacts = _get_all(
context, session, filters, marker,
limit, sort, latest, list_all_artifacts)
total_artifacts