[x] Regression (a behavior that stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[ ] Documentation issue or request
Current behavior
After upgrading the CLI from v7.4 to v7.10 to fix the singleton sync error here, sq sync in folder has broken. When running sq sync from a fresh data dump, it now throws errors like:
We have quite a lot of null values in various locations that would need deleting on every data import. Was the library introduced between v7.4 and v7.10? Because v7.4 has always worked fine.
Have done a fresh export and import with v7.11 - this seems to have fixed the above error (as well as the singleton sync errors from before). Unfortunately importing now throws:
* STEP 3 of 6: Importing contents started
ERROR: System.InvalidOperationException: Sequence contains no matching element
at System.Linq.ThrowHelper.ThrowNoMatchException()
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
at Squidex.CLI.Commands.Implementation.Sync.Contents.Extensions.ToJob(ContentModel model, SchemasDto schemas)
at Squidex.CLI.Commands.Implementation.Sync.Contents.ContentsSynchronizer.<>c__DisplayClass7_0.<ImportAsync>b__2(ContentModel x)
at System.Linq.Enumerable.SelectListIterator`2.ToList()
at Squidex.CLI.Commands.Implementation.Sync.Contents.ContentsSynchronizer.ImportAsync(ISyncService sync, SyncOptions options, ISession session)
at Squidex.CLI.Commands.Implementation.Sync.Synchronizer.<>c__DisplayClass5_0.<<ImportAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Squidex.CLI.Commands.Implementation.Extensions.Foreach[T](IEnumerable`1 source, Func`3 action)
at Squidex.CLI.Commands.Implementation.Sync.Synchronizer.ImportAsync(String path, SyncOptions options, ISession session)
at Squidex.CLI.Commands.App.Sync.In(InArguments arguments)
at CommandDotNet.Execution.InvocationResultExtensions.GetResultCodeAsync(Object value)
at CommandDotNet.AppRunner.HandleException(Exception ex, IConsole console, CommandContext commandContext)
at CommandDotNet.AppRunner.Run(String[] args)
at Squidex.CLI.Program.Main(String[] args)