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

chore: migrate odata v3 service to core #37

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

gyankov
Copy link
Contributor

@gyankov gyankov commented Jul 18, 2023

Related to: telerik/kendo/issues/17327.

@Dimitar-Goshev
Copy link
Contributor

Dimitar-Goshev commented Aug 3, 2023

The new services are built with dotnet publish -c release --self-contained true --arch x86 and deployed to IIS for testing.
Issues in odata v3 core when hitting the respective endpoint:

  • StockData -
System.InvalidOperationException: The LINQ expression 'DbSet<Intraday>()
    .Where(s => s.Date >= __dateFrom_0 && s.Date <= __dateTo_1)
    .GroupBy(s => new { 
        Year = s.Date.Year, 
        Month = s.Date.Month, 
        Day = 1, 
        Hour = 0, 
        Minute = 0
     })
    .Select(g => g)' could not be translated. Additional information: Translation of 'Select' which contains grouping parameter without composition is not supported. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'.
  • Tasks (Scheduler Basic usage demo)
ActionName: KendoCRUDService.Controllers.TasksController.Index (KendoCRUDService)

An exception occurred while iterating over the results of a query for context type 'KendoCRUDService.Data.DemoDbContext'.
System.InvalidOperationException: The data is NULL at ordinal 3. This method can't be called on NULL values. Check using IsDBNull before calling.
  • Meetings (Scheduler Keyboard navigation demo)
ActionName: KendoCRUDService.Controllers.MeetingsController.Index (KendoCRUDService)

An exception occurred while iterating over the results of a query for context type 'KendoCRUDService.Data.DemoDbContext'.
System.InvalidOperationException: The data is NULL at ordinal 3. This method can't be called on NULL values. Check using IsDBNull before calling.

Issues in odata v4 core:

  • Grid odata v4 demo - The current version on Live demo https://demos.telerik.com/kendo-ui/grid/odatav4 returns @odata.context, @odata.count and value array . The core version returns just the content of the value array and the Grid does not display data.
  • TreeList odata v4 demo - The current version on Live demo https://demos.telerik.com/kendo-ui/treelist/odata returns @odata.context and value array with the root item. The core version returns just the content of the value array and the TreeList does not display data.

@gyankov gyankov marked this pull request as ready for review December 26, 2023 14:21
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.

2 participants