-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[10.0][ADD] Return also state label (not only technical value) #404
[10.0][ADD] Return also state label (not only technical value) #404
Conversation
744109b
to
28f8ba3
Compare
Codecov Report
@@ Coverage Diff @@
## 10.0 #404 +/- ##
==========================================
+ Coverage 89.49% 89.49% +<.01%
==========================================
Files 141 141
Lines 3684 3685 +1
==========================================
+ Hits 3297 3298 +1
Misses 387 387
Continue to review full report at Codecov.
|
28f8ba3
to
131a639
Compare
@acsonefho Could you resolve conflicts please? |
131a639
to
4e2359e
Compare
@Cedric-Pigeon It's done :) But this MR depends on #407 (also in conflict) but who is waiting a feed back from @sebastienbeau . So I let this MR in WIP. |
4e2359e
to
1a494fc
Compare
1a494fc
to
ac84bb1
Compare
@acsonefho What's the status of this ? |
Wait for reviewers and then merge :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review.
Ok, but I'm in favor of a more generic mechanism that allow to return a tuple or ... in the json for all fields translate = True
ac84bb1
to
1e0b087
Compare
I agree. We could have something in base_jsonify to ask for value/label in the parser. |
1e0b087
to
fedb902
Compare
It's a great idea!! But what about compatibility with front side who already use the |
feddf0c
to
ac84bb1
Compare
@acsonefho that's an option, yes. If you go with it add TODO to drop it. |
This PR has the |
/ocabot merge patch |
This PR looks fantastic, let's merge it! |
It looks like something changed on |
It looks like something changed on |
It looks like something changed on |
It looks like something changed on |
@Cedric-Pigeon your merge command was aborted due to failed check(s), which you can inspect on this commit of 10.0-ocabot-merge-pr-404-by-Cedric-Pigeon-bump-patch. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
ac84bb1
to
a229e9e
Compare
…on data (cart, invoice)
a229e9e
to
5bca8da
Compare
/ocabot merge patch |
This PR looks fantastic, let's merge it! |
It looks like something changed on |
It looks like something changed on |
Congratulations, your PR was merged at 9dba638. Thanks a lot for contributing to shopinvader. ❤️ |
Depends on MR #407
(Please review first depending MR to avoid comment code related to others MR)
Currently we return (into json result) the state (technical value) of the object (cart and invoice for this case). But we also have to return the translated label of this state (as the front doesn't have to manage translation on data).