Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

wrong backend api call for grid view editing #1351

Closed
wiadev opened this issue Nov 17, 2017 · 6 comments
Closed

wrong backend api call for grid view editing #1351

wiadev opened this issue Nov 17, 2017 · 6 comments

Comments

@wiadev
Copy link
Contributor

wiadev commented Nov 17, 2017

Is this a bug or feature request?

bug

What is the current behavior?

Editor patching endpoint is not correctly called.

Which are the steps to reproduce?

What is the expected or desired behavior?

needs to update the current api call with the following.

http://w101.metasfresh.com:8081/swagger-ui.html#!/view-row-edit-rest-controller/patchRowUsingPATCH

@teosarca
Copy link
Member

note: backend API was implemented in metasfresh/metasfresh-webui-api-legacy#577

@wiadev
Copy link
Contributor Author

wiadev commented Nov 18, 2017

@teosarca
Copy link
Member

hi @wiadev

http://w101.metasfresh.com:8081/rest/api/documentView/SO2OLCand/SO2OLCand-c519579eafb84f92b01ecd4b6df4a62e/1000091_2156423
The above api is not working while

agree. the URL is not correct. It shall end with "/edit"... see http://w101.metasfresh.com:8081/swagger-ui.html#/view-row-edit-rest-controller

for rowId: 1000091, the following api is not working (got 500 internal server error) while
rowId:1000091_2156423 works fine.

agree. grouping rows are not editable. Only the included ones.
We shall be able to also override the "viewEditorRenderMode" on row level too.
I will create a frontend task to have this feature.

@wiadev
Copy link
Contributor Author

wiadev commented Nov 20, 2017

@teosarca sorry, my first comments is wrong. /edit works file but after edit, we are sending getData() request which is for http://w101.metasfresh.com:8081/swagger-ui.html#!/view-row-attributes-rest-controller-_-old/getDataUsingGET_1 but it's not working. they are separate api calls.

let me know if it doesn't make sense.

@teosarca
Copy link
Member

@wiadev not sure if i understand... but that controller was replaced by http://w101.metasfresh.com:8081/swagger-ui.html#/view-row-attributes-rest-controller ,
exactly because

GET /rest/api/documentView/{windowId}/{viewId}/{rowId}

Was too confusing. It's about getting the row attributes (those which are displayed on the right side of the view, see https://w101.metasfresh.com:8443/window/540189 for example).
But the name of the endpoint is not revealing that intention. You were tempt to believe that it's about fetching the row.

In the current API we are using

GET /rest/api/documentView/{windowId}/{viewId}/{rowId}/attributes

But I believe you are not asking about fetching the attributes but about fetching a particular row.
We don't have this endpoint, but if it's needed we can provide it.
Might be that we need to replace the functionality of that old endpoint.... and in that case you shall make sure the frontend is no longer using the legacy API.

teosarca added a commit that referenced this issue Nov 20, 2017
Update wrong api handler for table cell updates #1351
metas-ts added a commit to metasfresh/metasfresh that referenced this issue Nov 26, 2017
[#1293](metasfresh/metasfresh-webui-frontend-legacy#1293)
Cannot scroll down in a filter with lots of parameters
[#669](metasfresh/metasfresh-webui-api-legacy#669)
CU-TU's built name and description is wrong
[#1366](metasfresh/metasfresh-webui-frontend-legacy#1366)
Error in Quickentry dropdown List
[#1345](metasfresh/metasfresh-webui-frontend-legacy#1345)
Invalid date was used on dateTime tablecell
[#701](metasfresh/metasfresh-webui-api-legacy#701)
webui server is losing session context
[#683](metasfresh/metasfresh-webui-api-legacy#683)
Source HU Actions shall only be "Drop Source HU"
[#1358](metasfresh/metasfresh-webui-frontend-legacy#1358)
View field editor: number field is behaving weird when using keyboard
[#2945](#2945) Adjustment
in pain001
[#3056](#3056) purchase
candidates: implement locking mechanism
[#694](metasfresh/metasfresh-webui-api-legacy#694)
purchase view: set modal title as process caption
[#700](metasfresh/metasfresh-webui-api-legacy#700)
Filter error after static filter set
[#3057](#3057) display
order, forecast or shipmentschedule in material dispo main window
[#3055](#3055) purchase
candidates: notify user when the purchase order was generated
[#697](metasfresh/metasfresh-webui-api-legacy#697)
New BPartner is not available as SubProducerBPartner in MaterialReceipt
BPartner
[#3034](#3034) solve
material dispo regressions
[#671](metasfresh/metasfresh-webui-api-legacy#671)
T_WEBUI_ViewSelection[Line] shall be truncated and not deleted
[#695](metasfresh/metasfresh-webui-api-legacy#695)
picking terminal: implement dynamic picking slot allocation/release
[#3043](#3043) A contract
shall not be created when a completing a quotation
[#1380](metasfresh/metasfresh-webui-frontend-legacy#1380)
Shortcut for new document
[#2944](#2944) Allow more
than 1 PostFinanceUserNo per Account
[#3023](#3023) ad_org is
ignored when doing quick order entry
[#1363](metasfresh/metasfresh-webui-frontend-legacy#1363)
jenkins: run npm test on each build
[#3010](#3010) Inherit
c_order_id and orderline_id from flatrate term to invoice candidate
[#2958](#2958) 2nd
Discount Break is ignored
[#2997](#2997) Partner
Import: Support importing the Org via value
[#689](metasfresh/metasfresh-webui-api-legacy#689)
Picking processed compress to top-level HU
[#692](metasfresh/metasfresh-webui-api-legacy#692)
Error in Quickentry Sales Order when canceling input
[#679](metasfresh/metasfresh-webui-api-legacy#679) HU
taken out in Picking Tray Clearing still displayed in the Picking Slot
in Picking Terminal
[#687](metasfresh/metasfresh-webui-api-legacy#687)
picking terminal: show BPartner instead of DeliveryDate
[#693](metasfresh/metasfresh-webui-api-legacy#693)
Error in create purchase orders from Sales order line
[#662](metasfresh/metasfresh-webui-api-legacy#662)
Aggregate Storage for Product and Warehouse
[#1351](metasfresh/metasfresh-webui-frontend-legacy#1351)
wrong backend api call for grid view editing

me-45
@metas-lc metas-lc self-assigned this Dec 6, 2017
@metas-lc
Copy link

metas-lc commented Dec 6, 2017

IT
looks like this, and there are no errors
rest/api/documentView/SO2PO/SO2PO-37c4dbaff61447b69bc7f14f49e83332/1000059_2156425/edit

@metas-lc metas-lc closed this as completed Dec 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants