-
Notifications
You must be signed in to change notification settings - Fork 90
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
OCC-245: Upgrade to latest OC preview to test System.Text.Json #454
Conversation
…hic deserialization anymore.
I've just found this |
Hmm, interesting, thanks! |
"Change parameter name to value in order to match the identifier as it has been declared in the base type."
Unfortunately |
@MikeAlhayek do you want to check this? |
src/Libraries/OrchardCore.Commerce.MoneyDataType/Serialization/AmountConverter.cs
Show resolved
Hide resolved
|
||
public static class OrchardCoreCommerceConfigureOrder | ||
{ | ||
public const int Default = 0; |
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.
Orchard core defines the default. I think you should use that default and build on the top of it. You should not define your own default just in case OC ever changes the default.
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.
I kept the constant, but set its value to OrchardCoreConstants.ConfigureOrder.Default
so any other constants are defined in relation to the one from OC.
src/Modules/OrchardCore.Commerce/Liquid/AmountToStringLiquidFilter.cs
Outdated
Show resolved
Hide resolved
@@ -59,6 +60,8 @@ namespace OrchardCore.Commerce; | |||
|
|||
public class Startup : StartupBase | |||
{ | |||
public override int Order => OrchardCoreCommerceConfigureOrder.Default; |
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.
public override int Order => OrchardCoreCommerceConfigureOrder.Default; | |
public override int Order => OrchardCore.OrchardCoreConstantsConfigureOrder.Default; |
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.
I see this is not necessary because that's the default value of StartupBase.Order
anyway. I've deleted this line instead.
…wtonsoft.Json from the code base (#502) * OCC-245: Upgrade to latest OC preview to test System.Text.Json (#454) Co-authored-by: Mike Alhayek <[email protected]> Co-authored-by: Zoltán Lehóczky <[email protected]> * Upgrade OC packages and drivers (#480) * Upgrade OC packages and drivers * Update src/Modules/OrchardCore.Commerce/Drivers/PriceDisplaySettingsDisplayDriver.cs Co-authored-by: Sára El-Saig <[email protected]> * Update src/Modules/OrchardCore.Commerce.ContentFields/Settings/AddressFieldSettingsDriver.cs Co-authored-by: Sára El-Saig <[email protected]> * Update src/Modules/OrchardCore.Commerce.ContentFields/Settings/PriceFieldSettingsDriver.cs Co-authored-by: Sára El-Saig <[email protected]> * Update src/Modules/OrchardCore.Commerce.Payment.Stripe/Drivers/StripeApiSettingsDisplayDriver.cs Co-authored-by: Sára El-Saig <[email protected]> * Fix all drivers --------- Co-authored-by: Sára El-Saig <[email protected]> * OCC-280: Use new HL extension methods (#482) * Post merge fixup. * NEST-536: Update OC version (#474) * Update OC version. * Update OC preview version again (sigh). * Delete temporary extension. * Use the new AddDeployment extension that registers the underlying polymorphic JSON type too. * Suppress. * Update OC previews. * Update OC preview version. * Update OC preview version. * Rename to localizer. * Update OC preview version. * Update OC preview version. * Add new line --------- Co-authored-by: Hisham Bin Ateya <[email protected]> * Re-enabling non preview packages and upgrading to OC 2.0.0 * Using System.Text.Json. * Setting the .Web project to OC 2.0.2. * Update src/OrchardCore.Commerce.Web/OrchardCore.Commerce.Web.csproj --------- Co-authored-by: Sára El-Saig <[email protected]> Co-authored-by: Mike Alhayek <[email protected]> Co-authored-by: Zoltán Lehóczky <[email protected]> Co-authored-by: Hisham Bin Ateya <[email protected]>
OCC-245
Fixes #442