-
Notifications
You must be signed in to change notification settings - Fork 144
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
Added endpoint for fetching all notebook jobs #834
Conversation
…istent with the rest of the codebase
src/Microsoft.SqlTools.ServiceLayer/Agent/Contracts/AgentNotebookRequest.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.SqlTools.ServiceLayer/Agent/Contracts/AgentNotebookRequest.cs
Show resolved
Hide resolved
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.
Please add some tests and take a look at the comments. Thanks!
test/Microsoft.SqlTools.ServiceLayer.IntegrationTests/Agent/AgentNotebookTests.cs
Outdated
Show resolved
Hide resolved
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.
🕐
…fetch template, materialized notebook endpoints. This will make the Notebook Request and Notebook History responses lighter.
src/Microsoft.SqlTools.ServiceLayer/Agent/Common/AgentUtilities.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.SqlTools.ServiceLayer/Agent/Contracts/AgentNotebookRequest.cs
Show resolved
Hide resolved
src/Microsoft.SqlTools.ServiceLayer/LanguageServices/LanguageService.cs
Outdated
Show resolved
Hide resolved
…into feat/notebookendpoints
any injection attacks
leading zeros
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.
Take a look at the feedback and there some refactors you should do before check-in. But overall it looks fine.
src/Microsoft.SqlTools.ServiceLayer/Agent/Contracts/AgentNotebookRequest.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.SqlTools.ServiceLayer/Agent/Contracts/AgentNotebookRequest.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.SqlTools.ServiceLayer/Agent/Contracts/AgentNotebookRequest.cs
Outdated
Show resolved
Hide resolved
test/Microsoft.SqlTools.ServiceLayer.IntegrationTests/Agent/AgentNotebookTests.cs
Show resolved
Hide resolved
…into feat/notebookendpoints
and fixed other stuff mentioned in the PR.
Hi Charles, I've made the required changes. Please re-review.
Created a simple endpoint that fetches all the notebook jobs accessible by the user. To be used in ADS, AgentViewComponent.