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

Don't use the legacy view attributes API #1357

Closed
teosarca opened this issue Nov 20, 2017 · 24 comments
Closed

Don't use the legacy view attributes API #1357

teosarca opened this issue Nov 20, 2017 · 24 comments

Comments

@teosarca
Copy link
Member

teosarca commented Nov 20, 2017

Instead of using
http://w101.metasfresh.com:8081/swagger-ui.html#/view-row-attributes-rest-controller-_-old

please always use
http://w101.metasfresh.com:8081/swagger-ui.html#/view-row-attributes-rest-controller

That legacy API is scheduled to be deleted. It already caused a lot of confusion.

Note to IT:

  • check view attributes (setting, dropdown) => no errors
  • briefly test creating a new document (e.g. a new sales order) => no errors
@teosarca
Copy link
Member Author

teosarca commented Nov 21, 2017

@wiadev also check the documentation/discussion from #1184 (duplicate of this one)

@wiadev
Copy link
Contributor

wiadev commented Nov 24, 2017

@teosarca fixed calling wrong api after editing/patching on the following modal under this task we discussed last time.

screenshot at nov 24 09-46-57

can you give me the use cases using old apis?

@metas-lc
Copy link

how to test attributes

  1. go to receipt candidates window: https://w101.metasfresh.com:8443/window/540196?viewId=540196-06faf33c94f14604ac8662311a3055a8&page=1
  2. select any line (e.g. one for convenence salad)
  3. select the main action (e.g. green button: 1 IFCO 6410 x 10 Stk)
  4. modify some attributes while being on LU level:
    =>
    when you edit gewicht brutto notice gewicht netto updates
    when you update tageslot lot-nummer updates
    most attributes you modify on LU level, will update on TU level as well
    cu level doesn't support attributes

@wiadev
Copy link
Contributor

wiadev commented Nov 24, 2017

@teosarca can you point out where I can find subentity/subentityId apis on swagger ui doc?
Also, usage of isAdvanced query param.

@teosarca
Copy link
Member Author

@wiadev let's talk when u have time. I don't understand your request :(

@wiadev
Copy link
Contributor

wiadev commented Nov 28, 2017

another use case to get attributes after discussing with @teosarca
https://w101.metasfresh.com:8443/window/540189

@wiadev
Copy link
Contributor

wiadev commented Nov 29, 2017

@teosarca
screenshot at nov 29 16-57-32
check out the above screenshot and could you point out why it doesn't work?

@wiadev
Copy link
Contributor

wiadev commented Nov 29, 2017

@teosarca same issue on http://localhost:3000/window/540189?viewId=540189-d9970cd0d9764f67b6d1e44bfbfba4b7&page=1 when I select the last includedDocument.

@teosarca
Copy link
Member Author

@wiadev

check out the above screenshot and could you point out why it doesn't work?
same issue on http://localhost:3000/window/540189?viewId=540189-d9970cd0d9764f67b6d1e44bfbfba4b7&page=1 when I select the last includedDocument.

Yup that's happening because the row level supportAttributes property is not considered.
See task: #1393

image

@wiadev
Copy link
Contributor

wiadev commented Nov 29, 2017

@teosarca understood
since we have a new follow-up issue, can we close this issue after merge #1392 ?

@teosarca
Copy link
Member Author

@wiadev nop, the issue will be closed by the integration testing team after they will perform all tests + regression.
That's our standard procedure.

@teosarca
Copy link
Member Author

but they will know about that follow-up and will not fail the task because of that.

@wiadev
Copy link
Contributor

wiadev commented Nov 29, 2017

@teosarca got it.
I meant by moving to testing team.

@teosarca
Copy link
Member Author

yes, ofc.
but before i will do some quick preliminary tests. One thing that i forgot to tell you and now pops in my mind, and I HOPE it's not related is about editing product attributes.

e.g.
image

@teosarca
Copy link
Member Author

update: it seems the view attributes code has nothing to do with product attributes (the ones from above). So it's fine.
@wiadev can u also confirm this?

@wiadev
Copy link
Contributor

wiadev commented Nov 30, 2017

@teosarca confirmed that viewAttributes code has nothing to do with product attributes.
It's using another getAttributeInstances() methods which is POST /api/pattribute

@teosarca
Copy link
Member Author

@wiadev perfect, 10x.

teosarca added a commit that referenced this issue Dec 3, 2017
teosarca added a commit that referenced this issue Dec 3, 2017
Update attributes & dropdown api #1357
teosarca added a commit to metasfresh/metasfresh-webui-api-legacy that referenced this issue Dec 3, 2017
metas-ts pushed a commit that referenced this issue Dec 4, 2017
- Fix deprecated api with new api - getViewAttributesLayout

(cherry picked from commit af25474)
metas-ts pushed a commit that referenced this issue Dec 4, 2017
metas-ts pushed a commit that referenced this issue Dec 4, 2017
(cherry picked from commit 43e0828)

solved Conflicts:
	src/actions/GenericActions.js
metas-ts pushed a commit that referenced this issue Dec 4, 2017
#1357

@wiadev  pls review

(cherry picked from commit 1f4e3d6)

solved Conflicts:
	src/actions/GenericActions.js
metas-ts pushed a commit that referenced this issue Dec 4, 2017
metas-ts pushed a commit that referenced this issue Dec 4, 2017
metas-ts pushed a commit to metasfresh/metasfresh-webui-api-legacy that referenced this issue Dec 4, 2017
@metas-ts
Copy link
Member

metas-ts commented Dec 4, 2017

cherry-picked into the release branch

@metas-ts
Copy link
Member

metas-ts commented Dec 8, 2017

CPed the remaining commits to release too

metas-ts added a commit that referenced this issue Dec 8, 2017
Don't use the legacy view attributes API #1357
teosarca added a commit that referenced this issue Dec 8, 2017
@metas-rc
Copy link
Member

Note: IT only after #1441 is properly integrated.

@metas-lc metas-lc self-assigned this Dec 19, 2017
@metas-lc
Copy link

IT
tested attributes in orderlines, manufacturing OK
tested in hu editor from material receipt OK
made a task for a special case: #1468
in hu editor, if you set an attribute from none (null) to none you get an error

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

5 participants