Skip to content
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

Feature/1 ordering #6

Open
wants to merge 71 commits into
base: main
Choose a base branch
from
Open

Feature/1 ordering #6

wants to merge 71 commits into from

Conversation

dladlk
Copy link
Owner

@dladlk dladlk commented Dec 13, 2021

No description provided.

…Data, add/remove/change quantity per product. Tried to use a data class for this - but had issues with React.useState on object class...
…atus to BasketData; pass changeBasket and basketData through intermediate components to AddToBasket via ...props without explicitly naming parameters.
… `ForwardRef(GridList)` - change from string "360" to {360}
…y" prop." Add several keys to render objects
…ing dependency: 'loadProducts'. Either include it or remove the dependency array react-hooks/exhaustive-deps" - but give up.
…ding, hide refresh on sending, show progress bar, temporary add delay seeing how it looks on long sending
…state to keep it, but update global class object inside input onchange, use local state per each input, avoid parameter passing to each DataInput by using React.cloneElement with expanded list of parameters inside DataBlock; build label by field name - split by uppercase and convert first letter to upper. See comments in commit for reasons.
…venience, change top icon of basket to just ORDER text, remove artificial delay in basket adding
…upplied to `ForwardRef(Fab)`, expected one of ["default","inherit","primary","secondary"].
…PHAX UBL2.1 library into Mongo - done with intermediate solution where everything is converted to UTC; implement loading of basket details together with all order JSON model; add refresh on basket history
…sket, with links to products on order details (now points to orderLine.item.id - wrong)
…asy to navigate to a product in order details
….jackson.default-property-inclusion=NON_EMPTY - e.g. for sent Order details
… com.helger.ubl:ph-ubl21

The issue was that IssueDate/IssueTime were serialized as below:

    "issueDate": {
      "value": {
        "dayOfYear": 120,
        "dayOfWeek": "SATURDAY",
        "year": 2022,
        "month": "APRIL",
        "monthValue": 4,
        "dayOfMonth": 30,
        "asString": "2022-04-30Z",
        "offset": "Z"
      },
      "valueLocal": "2022-04-30"
    },
    "issueTime": {
      "value": {
        "nano": 639000000,
        "hour": 21,
        "minute": 39,
        "second": 42,
        "asString": "21:39:42.639Z",
        "offset": "Z"
      },
      "valueLocal": "21:39:42.639"
    }

Adding custom serializers to MongoConverterConfig looked like did not help - but it was because serialization in Spring Controller response used Jackson serialization!

Instead of writing own binding of Order (and potentially future other UBL 2.1 document types), instead of object response with Jackson serialization, MongoTemplate direct query is added to OrderService to load raw Mongo JSON in BSON format, which gives a benefit - same presentation in Mongo and on GUI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant