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

Feature/agent1 adbist #973

Merged
merged 98 commits into from
Mar 23, 2018
Merged

Feature/agent1 adbist #973

merged 98 commits into from
Mar 23, 2018

Conversation

abist
Copy link
Contributor

@abist abist commented Mar 23, 2018

Made a few changes, that we can decide to take or not. Here's the summary -

  1. Removed loading all job histories in the jobs view page, and just query for the history of the job clicked on. It's because the perf was very bad, to the point that testing the history page was taking 2-3 mins. It's much better now.
  2. Now all previous runs show in the left side in the history page. Clicking on any of those previous runs would change the overview details to match the scope of the clicked job.

Also, since we don't have all the fields from the mock-up, can we get a different list of properties to show when the history page is visited? I've changed a couple on my own, just to get an opinion.

Aditya Bist and others added 20 commits March 20, 2018 17:33
* added back button, run actions and overview accordion

* refactoring

* overview table complete

* fixed the dropdown arrow for the overview section

* added table for prev job list

* fixed agent job result type

* code cleaning and code review comments

* fixed yarn.lock conflicts

* added function for job history

* changed vscode-languageclient version

* changed yarn lock file

* fixed yarn lock file

* fixed yarn file

* fixed css paths

* added images to packaging step

* fix resource path for packaging

* added steps lists

* fixed style and dimensions

* fixed conflicts

* implemented job list

* added the Date and Status columns

* update yarn files

* merged feature/agent1

* added theme styling for light theme

* changed yarn lock files

* added method signatures for job history with DMP

* added methods for job running

* added job actions to sqlops
* added back button, run actions and overview accordion

* refactoring

* overview table complete

* fixed the dropdown arrow for the overview section

* added table for prev job list

* fixed agent job result type

* code cleaning and code review comments

* fixed yarn.lock conflicts

* added function for job history

* changed vscode-languageclient version

* changed yarn lock file

* fixed yarn lock file

* fixed yarn file

* fixed css paths

* added images to packaging step

* fix resource path for packaging

* added steps lists

* fixed style and dimensions

* fixed conflicts

* implemented job list

* added the Date and Status columns

* update yarn files

* merged feature/agent1

* added theme styling for light theme

* changed yarn lock files

* added method signatures for job history with DMP

* added methods for job running

* added job actions to sqlops

* navigation works but is really slow to load data
@abist abist requested a review from kburtram March 23, 2018 21:12
@kburtram
Copy link
Member

@abist can you target this to master branch now? I think we should start working off there now that the initial payload has been merged.

@@ -3,7 +3,7 @@
"version": "0.1.0",
"description": "Shared modules for SQL Operations Studio extensions",
"dependencies": {
"dataprotocol-client": "github:Microsoft/sqlops-dataprotocolclient#0.1.5",
"dataprotocol-client": "github:Microsoft/sqlops-dataprotocolclient#feature/agentDmp1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert the change to this file

</h1>
<table class="step-list">
<tr class="step-row">
<td height="30">
<h3>Status:</h3>
</td>
<td>
<td height="30">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we create a style for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cells have to be inline-styled

@@ -111,22 +140,26 @@ export class JobHistoryComponent extends Disposable implements OnInit, OnDestroy
}
}

private jobAction(action: string): void {
private jobAction(action: string, jobName): void {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a type to jobName? In general I suggest we try to explicitly provide types when declaring variables. But we should certainly do this for function parameters.

@@ -1061,13 +1061,13 @@ declare module 'sqlops' {
}

export interface AgentJobHistoryInfo {
instanceID: number;
instanceId: number;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason we're switching ID to Id? In Typescript is the normal convention ID? In any case, I don't think it's a good idea to mix and match the two casing conventions within a single interface.

I think I may have been using Id since that is the C# convention. If you see that, please feel free to switch to the correct convention or note in code review. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kburtram Every single variable or field with ID in the sqlops.d.ts file is in Pascal case (Id). I'm assuming it's because that's the way we receive it from the service.

Copy link
Member

@kburtram kburtram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address the PR feedback before merging to master.

@abist abist changed the base branch from feature/agent1 to master March 23, 2018 22:51
@abist abist merged commit bd67006 into master Mar 23, 2018
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