Closed seangwright closed 2 months ago
@marcel-rbro can we look into this? The XbKApiSettings
is section that contains XbyK API configuration same as standard web is.
@seangwright setting XbKConnectionString
was inroduced to avoid conflicts with standard Kentico API configuration, but it is possible that it outlived its purpose.
@tkrch revise XbKConnectionString
use-case
I remember that this was a discussion point when we were putting together the initial migration toolkit docs.
I think the explanation was that the migration creates certain objects using DB queries directly, and some using the standard XbyK API (libraries added via NuGet packages)? So XbKConnectionString
is for the direct DB connection, and XbKApiSettings
are used to initialize the XbyK API running within the migration toolkit?
If this is still the case, and we can't (or don't want to) change how the values are used/shared, then I think it's pretty difficult and unnecessary to explain the "why" of it. The result is that the values need to match, and the docs already state this.
@DavidBKentico you are right! In time i refactored most parts that needed separation, but left the configuration parameter.
i will look into if this setting is redundant or not, eventually will be removed in future versions.
@seangwright i have deprecated XbKConnectionString
, it can still be used, but it disappeared from docs and CMSConnectionString
is now preferred way of configuring target instance connection string
Brief bug description
The
XbKApiSettings
setting is explained in the documentation with the following description:It's not clear why
XbKConnectionString
andXbKApiSettings
would both be populated with the same value or what "Configuration options set for the API when creating migrated objects" means.Repro steps
Migration.Toolkit.CLI\README.md
XbKApiSettings
Expected behavior
I understand the purpose of each option in the
appsettings.json
file and have no unnecessary duplicate values.