PMCORE-2529

PMCORE-2541: Improve  update filters in advanced search UI

fix Cr notes

fix Cr notes 2

solve conflicts

fix Cr notes 3
This commit is contained in:
Andrea Adamczyk
2020-12-10 11:19:30 -04:00
committed by Rodrigo Quelca
parent 6209114a9b
commit 8a755f874d
13 changed files with 395 additions and 339 deletions

View File

@@ -63,8 +63,10 @@ const services = {
UNASSIGNED_LIST: "/home/unassigned",
MY_FILTERS: "/cases/advanced-search/filters",
POST_MY_FILTERS: "/cases/advanced-search/filter",
PUT_MY_FILTERS: "/cases/advanced-search/filter/",
DELETE_MY_FILTERS: "/cases/advanced-search/filter/",
SEARCH: "/home/search",
PROCESSES: "/home/processes"
};
export default {
@@ -162,6 +164,7 @@ export default {
}
});
},
delete(options) {
let service = options.service || "",
id = options.id || {},
@@ -181,5 +184,29 @@ export default {
"Authorization": `Bearer ` + credentials.accessToken
}
});
},
put(options) {
let service = options.service || "",
params = options.params || {},
data = options.data || {},
id = options.id || {},
keys = options.keys || {},
url,
credentials = window.config.SYS_CREDENTIALS,
workspace = window.config.SYS_WORKSPACE,
server = window.config.SYS_SERVER;
url = this.getUrl(_.extend(keys, credentials, { server }, { workspace }), service);
return axios({
method: "put",
url: url + id,
params,
data,
headers: {
"Accept": "application/json",
"Content-Type": "application/json",
"Authorization": `Bearer ` + credentials.accessToken
}
});
}
};