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

Rutusamai/list build tasks for each registry #37

Merged
merged 8 commits into from
Aug 7, 2018

Conversation

rsamai
Copy link

@rsamai rsamai commented Aug 4, 2018

-Under each registry node, there is a wrench icon labeled "Build Tasks" (created new TaskRootNode and BuildTaskNode classes)
-When "Build Tasks" is clicked, a list view of your build tasks for the current registry shows
-If there are no build tasks in the current registry, an error message guides the user to a tutorial on creating a build task
-Closes Issues #11 #32 #40 #34

@rsamai rsamai changed the title Rutusamai/listbuildtasks registry Rutusamai/listbuildtasks for each registry Aug 4, 2018
@rsamai rsamai changed the title Rutusamai/listbuildtasks for each registry Rutusamai/list build tasks for each registry Aug 4, 2018
@rsamai rsamai self-assigned this Aug 4, 2018
for (let j: number = 0; j < images.length; j++) {
let after: string = JSON.stringify(images[j]);
for (let imageCache of this._imageCache) {
let before: string = JSON.stringify(imageCache);

Choose a reason for hiding this comment

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

I guess your change just tries to fix some tslint warning of the existing code. stringify will work for most cases unless the property order are different. From OO perspective, the type of imageCache should provide an equal method to do the deep comparison. I will let you decide if you want to change.

Copy link
Author

Choose a reason for hiding this comment

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

Makes sense, I changed it to if(image === cachedImage) instead of using before and after

// tslint:disable-next-line:prefer-for-of // Grandfathered in
for (let j: number = 0; j < images.length; j++) {
let after: string = JSON.stringify(images[j]);
for (let imageCache of this._imageCache) {

Choose a reason for hiding this comment

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

I recommend to rename imageCache to cachedImage

let ctr: Docker.ContainerDesc = this._containerCache[i];
// tslint:disable-next-line:prefer-for-of // Grandfathered in
for (let j = 0; j < containers.length; j++) {
for (let containerCache of this._containerCache) {

Choose a reason for hiding this comment

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

cachedContainer

import { AzureCredentialsManager } from '../../utils/azureCredentialsManager';
import { NodeBase } from './nodeBase';

/*Single TaskRootNode under each Repository. Labeled "Build Tasks" */

Choose a reason for hiding this comment

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

nit: Add a space between /* and Single

let buildTasks: ContainerModels.BuildTask[] = [];

const client = AzureCredentialsManager.getInstance().getContainerRegistryManagementClient(element.subscription);
const resourceGroup: string = element.registry.id.slice(element.registry.id.search('resourceGroups/') + 'resourceGroups/'.length, element.registry.id.search('/providers/'));

Choose a reason for hiding this comment

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

I remember I see in the previous PR the codebase has several places trying to parse the id string to get the resource group. Can you double check and move them to a shared utility module? If it doesn't fit in current PR, you can open an issue to track it.

Copy link
Author

Choose a reason for hiding this comment

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

Do you mean making a function to parse the id in utils.ts? @northtyphoon

Choose a reason for hiding this comment

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

Yes. If you see other codes do the same parsing, you should also update them to use the new method you will create.

Copy link
Author

Choose a reason for hiding this comment

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

New function is called getResourceGroup( ) in acrTools.ts


constructor(
public readonly label: string,
public readonly contextValue: string,

Choose a reason for hiding this comment

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

where do you use the contextValue?

Copy link
Author

Choose a reason for hiding this comment

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

Nowhere yet, but later we will link the BuildTaskNode to open the corresponding log

if (buildTasks.length === 0) {
vscode.window.showErrorMessage(`You do not have any Build Tasks in '${element.registry.name}'. You can create one with ACR Build. `, "Learn More").then(val => {
if (val === "Learn More") {
opn('https://docs.microsoft.com/en-us/azure/container-registry/container-registry-tutorial-build-task');

Choose a reason for hiding this comment

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

It's better to create a aka.ms entry and point it the url. It will allows us update the url without update the code. aka.ms also provides the telemetry data to help us track how many traffic is from this link.

Choose a reason for hiding this comment

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


buildTasks = await client.buildTasks.list(resourceGroup, element.registry.name);
if (buildTasks.length === 0) {
vscode.window.showErrorMessage(`You do not have any Build Tasks in '${element.registry.name}'. You can create one with ACR Build. `, "Learn More").then(val => {

Choose a reason for hiding this comment

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

Is showErorrMessage the only option? Does it support showInfoMessage?

Copy link
Author

@rsamai rsamai Aug 6, 2018

Choose a reason for hiding this comment

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

It's the only option right now. Do you want me to change it to showInfo? @northtyphoon

Choose a reason for hiding this comment

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

Do you mean there is a vscode.window has a method called showInfo?

public async getChildren(element: AzureRegistryNode): Promise<NodeBase[]> {
const registryChildNodes: NodeBase[] = [];

let iconPath = {

Choose a reason for hiding this comment

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

We should probably standardize the icon names/ paths, there is a file under utils called constants which would be helpful for this.

Copy link
Author

Choose a reason for hiding this comment

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

Not sure we need that since for each image, iconPath (light and dark) is only called once in the codebase

Choose a reason for hiding this comment

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

That is true but it is easier to refactor/change images from a single location, this is better practice and makes for a more unified experience, moving them all out would make the codebase neater. This isn't however pressing and should be done on further refactorings and doesn't really fit in this scope.

@@ -117,7 +127,7 @@ export class AzureRepositoryNode extends NodeBase {
constructor(
public readonly label: string,
public readonly contextValue: string,
public readonly iconPath: { light: string | vscode.Uri; dark: string | vscode.Uri } = {
public readonly iconPath: AzureRegistryNode["iconPath"] = {
light: path.join(__filename, '..', '..', '..', '..', 'images', 'light', 'Repository_16x.svg'),

Choose a reason for hiding this comment

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

It seems like both are the same icon? Make sure that this changes when we get the real one

@@ -291,12 +300,12 @@ export class AzureLoadingNode extends NodeBase {
}
}

async function acquireToken(session: AzureSession): Promise<{ accessToken: string; refreshToken: string; }> {
async function acquireToken(session: AzureSession): Promise<any> {

Choose a reason for hiding this comment

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

What is the point to changing the type here? Additionally I think Julia made a unified location for this method.

Copy link
Author

Choose a reason for hiding this comment

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

tslint had some issue before, but I changed it back and it's working. I'll look into Julia's method once that's merged

@@ -108,16 +105,15 @@ export class RootNode extends NodeBase {

}

public async getChildren(element: NodeBase): Promise<NodeBase[]> {

public async getChildren(element: RootNode): Promise<NodeBase[]> {

Choose a reason for hiding this comment

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

Usually use switch for equality alternatively use else if to avoid revaluation

Copy link
Author

Choose a reason for hiding this comment

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

Changed to switch statements

Copy link

@northtyphoon northtyphoon left a comment

Choose a reason for hiding this comment

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

LGTM

@rsamai rsamai merged commit 126c01e into dev Aug 7, 2018
rsamai pushed a commit that referenced this pull request Aug 27, 2018
* Added Azure Credentials Manager Singleton (#18)

* Added Azure Credentials Manager Singleton
* Added getResourceManagementClient

* Sorted Existing Create Registry ready for code review

* Added acquiring telemetry data for create registry

* broke up createnewresourcegroup method and fixed client use

Added try catch loop and awaited for resource group list again to check for duplicates with ResourceManagementClient

* Jackson esteban/unified client nit Fix (#24)

* Added Azure Credentials Manager Singleton

* Small Style Fixes

* Further Style fixes, added getResourceManagementClient

* Lazy Initialization Patches

* Enabled location selection

* Location request fixes

-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view

* Refactor while loop for new res group

* Added SKU selection

* Quick fix- initializing array syntax

* Added specific error messages and comments

* Julia/delete image (#29)

* first fully functional version of delete through input bar AND right click

* refactored code to make it prettier!

* comments

* comments, added subscription function

* fixed to style guide

* style fixes, refactoring

* delete image after reviews

put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts

Edited code based on Esteban's and Bin's reviews

* One last little change to delete image

* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage

* changes from PR reviews on delete image

* fixed authentication issue, got rid of azureAccount property for repository and image

**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)

* minor fixes deleteImage

* delete a parentheses

* Estebanreyl/dev merge fixes  (#43)

* Merge fixes to acquire latest telemetry items

* Updated to master AzureUtilityManager

* Rutusamai/list build tasks for each registry (#37)

* tslint updates, transfered from old branch

* updated icon

* Addressed PR comments- mostly styling/code efficiency

* Changed url to aka.ms link

* changed Error window to Info message for no build tasks in your registry

* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts

* Changed build task icon

* Julia/delete repository final (#49)

* deleteRepo moved over to branch off dev

* Got rid of unnecessary code, fully functioning!

* deleteRepo moved over to branch off dev

* Got rid of unnecessary code, fully functioning!

* spacing

* final commit

* Cleaned code

* Added Telemetry

* Julia/delete registry final (#47)


Delete azure registry functionality added

Delete azure registry moved to branch off dev

Reorganized stye

* began updating

* Reorganized create registry and delete azure image

* continued improvements

* Began updating login

* being credentials update

* further updates

* Finished updating, need to test functionality now

* Updated requests, things all work now

* Applied some nit fixes

* Updates to naming

* maintain UtilityManager standards

* Updated Prompts

* Updated imports and naming / standarized telemetry

* Added explorer refresh capabilities on delete/add

* Remove build task features from this branch

This reverts commit 126c01e.

* Merge bugfixes and name specification

* updated weird naming issue

* Deleted deprecated telemetry, added copyright comment and updated quick picks

* Updated casing

* Updated resource group and registry validity checking and other nit fixes

* Updated Azure Utility Manager to by default sort registries alphabetically

* Updated azureRegistryNodes and registryRootNode to use shared functions

* Corrected resourcegroup name test

* added delete button when deleting an image

* Small changes in variables for better prompts and success notifications
@northtyphoon northtyphoon deleted the rutusamai/listbuildtasks-registry branch September 13, 2018 22:28
rosanch pushed a commit that referenced this pull request Sep 21, 2018
* tslint updates, transfered from old branch

* updated icon

* Addressed PR comments- mostly styling/code efficiency

* Changed url to aka.ms link

* changed Error window to Info message for no build tasks in your registry

* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts

* Changed build task icon
rosanch pushed a commit that referenced this pull request Sep 22, 2018
Sorted Existing Create Registry ready for code review

Jackson esteban/unified client nit Fix (#24)

* Added Azure Credentials Manager Singleton

* Small Style Fixes

* Further Style fixes, added getResourceManagementClient

* Lazy Initialization Patches

Enabled location selection

Location request fixes

-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view

Added SKU selection

Quick fix- initializing array syntax

Julia/delete image (#29)

* first fully functional version of delete through input bar AND right click

* refactored code to make it prettier!

* comments

* comments, added subscription function

* fixed to style guide

* style fixes, refactoring

* delete image after reviews

put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts

Edited code based on Esteban's and Bin's reviews

* One last little change to delete image

* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage

* changes from PR reviews on delete image

* fixed authentication issue, got rid of azureAccount property for repository and image

**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)

* minor fixes deleteImage

* delete a parentheses

copied previous push to acr into new pull-from-azure.ts file

Estebanreyl/dev merge fixes  (#43)

* Merge fixes to acquire latest telemetry items

* Updated to master AzureUtilityManager

added acrbuild stuff

Rutusamai/list build tasks for each registry (#37)

* tslint updates, transfered from old branch

* updated icon

* Addressed PR comments- mostly styling/code efficiency

* Changed url to aka.ms link

* changed Error window to Info message for no build tasks in your registry

* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts

* Changed build task icon

utility bug fix

Julia/delete repository final (#49)

* deleteRepo moved over to branch off dev

* Got rid of unnecessary code, fully functioning!

* deleteRepo moved over to branch off dev

* Got rid of unnecessary code, fully functioning!

* spacing

* final commit

* Cleaned code

* Added Telemetry

Julia/delete registry final (#47)

Delete azure registry functionality added

Delete azure registry moved to branch off dev

Reorganized stye

Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries

Split the loginCredentials function, added docker login and docker pull and telemetry actions

copied previous push to acr into new pull-from-azure.ts file

Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries

Split the loginCredentials function, added docker login and docker pull and telemetry actions

Finished pull from azure right click feature

Working again after rebasing and resolving merge conflicts

Refactoring, prod.

Estebanreyl/ready for production (#55)

* began updating

* Reorganized create registry and delete azure image

* continued improvements

* Began updating login

* being credentials update

* further updates

* Finished updating, need to test functionality now

* Updated requests, things all work now

* Applied some nit fixes

* Updates to naming

* maintain UtilityManager standards

* Updated Prompts

* Updated imports and naming / standarized telemetry

* Added explorer refresh capabilities on delete/add

Jackson/quick build dev (#46)

* added acrbuild stuff

* added acrbuild stuff

* Update to match utility manager class

* Added quick pick for selecting resource group and registry

* clean

* Added subscription support

* utility bug fix

* added folder select

* Updates and fixes

* Refactoring, prod.

* Flexible OSType

added ID

Move build to azure commands

cleanup

Relative dockerfile support

Removed await, updating list in enumeration

fixed chdir

flexible ostype

Rutusamai/Show Build Task properties (#70)

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show is working- final

* removed run build task stuff

* cleanup

* addressed esteban's comments

* buildTask = context.task.name rather than label

* fixes from Bin's comments

Merge branch 'dev' of https://github.com/AzureCR/vscode-docker into master4

merge

missed small changes

Rutusamai/Run a Build Task (#71)

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show is working- final

* run is working for right click

* run build task works through command pallette. added success notification

* removed show build task

* cleanup- matched quickpick buils task and tasknode withshow build task branch

* removed showTaskManager

* spacing

* outputChannel and null icon

* merge to update with dev

Estebanreyl/build logs final (#72)

*  "Merge branch 'estebanreyl/buildlogsWithAccesibility' of https://github.com/AzureCR/vscode-docker into estebanreyl/buildlogsWithAccesibility"

This reverts commit e645cbf, reversing
changes made to fc4a477.

* Refactored and organized log view into readable components.

* moved storage

* Began incorporating icons

* Added icons

* Further standarization

* added logs

* Added download log capabilities

* Updated Copy

* Updated inner div size alignment

* Added resizing script

* header sort by is only clickable on text now

* fixed header table

* Fix minor display issues

* Identified filtering strategy

* Begin adding sorting

* Merge with dev

* Added proper filtering

* Nit loading improvements

* Added accesibility, key only behaviour

* accesibility retouches and enable right click from tasknode

* merges

* fix module name

Adds streaming and command standarization (ext.ui) (#73)

* Adds streaming and command standarization (ext.ui)

* removed unecessary append lines

* small fixes

* Fix merge issues

changes for ACR 3.0.0 (#80)

* This commit contains changes necessary for the
azure-arm-containerregistry 3.0.0

* Fixed PR feedback

Run task fixed. Issue ID: 79

missing changes added

Fixing ACR run logs for Images

Sajaya/top1 (#83)

* Query only 1 record for runs

* View Azure logs

bug fix
rosanch added a commit that referenced this pull request Nov 9, 2018
* Added Azure Credentials Manager Singleton (#18)

* Added Azure Credentials Manager Singleton
* Added getResourceManagementClient

* Sorted Existing Create Registry ready for code review

* Added acquiring telemetry data for create registry

* broke up createnewresourcegroup method and fixed client use

Added try catch loop and awaited for resource group list again to check for duplicates with ResourceManagementClient

* Jackson esteban/unified client nit Fix (#24)

* Added Azure Credentials Manager Singleton

* Small Style Fixes

* Further Style fixes, added getResourceManagementClient

* Lazy Initialization Patches

* Enabled location selection

* Location request fixes

-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view

* Refactor while loop for new res group

* Added SKU selection

* Quick fix- initializing array syntax

* Added specific error messages and comments

* Julia/delete image (#29)

* first fully functional version of delete through input bar AND right click

* refactored code to make it prettier!

* comments

* comments, added subscription function

* fixed to style guide

* style fixes, refactoring

* delete image after reviews

put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts

Edited code based on Esteban's and Bin's reviews

* One last little change to delete image

* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage

* changes from PR reviews on delete image

* fixed authentication issue, got rid of azureAccount property for repository and image

**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)

* minor fixes deleteImage

* delete a parentheses

* copied previous push to acr into new pull-from-azure.ts file

* Estebanreyl/dev merge fixes  (#43)

* Merge fixes to acquire latest telemetry items

* Updated to master AzureUtilityManager

* added acrbuild stuff

* added acrbuild stuff

* Update to match utility manager class

* Rutusamai/list build tasks for each registry (#37)

* tslint updates, transfered from old branch

* updated icon

* Addressed PR comments- mostly styling/code efficiency

* Changed url to aka.ms link

* changed Error window to Info message for no build tasks in your registry

* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts

* Changed build task icon

* Added quick pick for selecting resource group and registry

* clean

* Added subscription support

* utility bug fix

* Julia/delete repository final (#49)

* deleteRepo moved over to branch off dev

* Got rid of unnecessary code, fully functioning!

* deleteRepo moved over to branch off dev

* Got rid of unnecessary code, fully functioning!

* spacing

* final commit

* Cleaned code

* Added Telemetry

* Julia/delete registry final (#47)


Delete azure registry functionality added

Delete azure registry moved to branch off dev

Reorganized stye

* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries

* added folder select

* Split the loginCredentials function, added docker login and docker pull and telemetry actions

* Finished pull from azure right click feature

* deleted push to azure

* removed username and password from Azure Registry Node

* Clean up

* copied previous push to acr into new pull-from-azure.ts file

* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries

* Split the loginCredentials function, added docker login and docker pull and telemetry actions

* Finished pull from azure right click feature

* deleted push to azure

* Clean up

* Working again after rebasing and resolving merge conflicts

* Updates and fixes

* Fixes from PR comments

-renamed loginCredentials functions
-added await to docker commands in image pull
-cleanup

* uncapitalize AzureRegistryNode

* Refactoring, prod.

* Flexible OSType

* Estebanreyl/ready for production (#55)

* began updating

* Reorganized create registry and delete azure image

* continued improvements

* Began updating login

* being credentials update

* further updates

* Finished updating, need to test functionality now

* Updated requests, things all work now

* Applied some nit fixes

* Updates to naming

* maintain UtilityManager standards

* Updated Prompts

* Updated imports and naming / standarized telemetry

* Added explorer refresh capabilities on delete/add

* Jackson/quick build dev (#46)

* added acrbuild stuff

* added acrbuild stuff

* Update to match utility manager class

* Added quick pick for selecting resource group and registry

* clean

* Added subscription support

* utility bug fix

* added folder select

* Updates and fixes

* Refactoring, prod.

* Flexible OSType

* added ID

* Move build to azure commands

* cleanup

* Relative dockerfile support

* Removed await, updating list in enumeration

* fixed chdir

* flexible ostype

* Rutusamai/Show Build Task properties (#70)

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show is working- final

* removed run build task stuff

* cleanup

* addressed esteban's comments

* buildTask = context.task.name rather than label

* fixes from Bin's comments

* Merge branch 'dev' of https://github.com/AzureCR/vscode-docker into master4

* merge

* missed small changes

* Rutusamai/Run a Build Task (#71)

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show is working- final

* run is working for right click

* run build task works through command pallette. added success notification

* removed show build task

* cleanup- matched quickpick buils task and tasknode withshow build task branch

* removed showTaskManager

* spacing

* outputChannel and null icon

* merge to update with dev

* Estebanreyl/build logs final (#72)

*  "Merge branch 'estebanreyl/buildlogsWithAccesibility' of https://github.com/AzureCR/vscode-docker into estebanreyl/buildlogsWithAccesibility"

This reverts commit e645cbf, reversing
changes made to fc4a477.

* Refactored and organized log view into readable components.

* moved storage

* Began incorporating icons

* Added icons

* Further standarization

* added logs

* Added download log capabilities

* Updated Copy

* Updated inner div size alignment

* Added resizing script

* header sort by is only clickable on text now

* fixed header table

* Fix minor display issues

* Identified filtering strategy

* Begin adding sorting

* Merge with dev

* Added proper filtering

* Nit loading improvements

* Added accesibility, key only behaviour

* accesibility retouches and enable right click from tasknode

* merges

* fix module name

* Adds streaming and command standarization (ext.ui) (#73)

* Adds streaming and command standarization (ext.ui)

* removed unecessary append lines

* small fixes

* Fix merge issues

* changes for ACR 3.0.0 (#80)

* This commit contains changes necessary for the
azure-arm-containerregistry 3.0.0

* Fixed PR feedback

* Run task fixed. Issue ID: 79

* missing changes added

* Fixing ACR run logs for Images

* Sajaya/top1 (#83)

* Query only 1 record for runs

* View Azure logs

* Refactoring build to run and buildTask to task

* Update Credentail Management

Sorted Existing Create Registry ready for code review

Jackson esteban/unified client nit Fix (#24)

* Added Azure Credentials Manager Singleton

* Small Style Fixes

* Further Style fixes, added getResourceManagementClient

* Lazy Initialization Patches

Enabled location selection

Location request fixes

-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view

Added SKU selection

Quick fix- initializing array syntax

Julia/delete image (#29)

* first fully functional version of delete through input bar AND right click

* refactored code to make it prettier!

* comments

* comments, added subscription function

* fixed to style guide

* style fixes, refactoring

* delete image after reviews

put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts

Edited code based on Esteban's and Bin's reviews

* One last little change to delete image

* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage

* changes from PR reviews on delete image

* fixed authentication issue, got rid of azureAccount property for repository and image

**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)

* minor fixes deleteImage

* delete a parentheses

copied previous push to acr into new pull-from-azure.ts file

Estebanreyl/dev merge fixes  (#43)

* Merge fixes to acquire latest telemetry items

* Updated to master AzureUtilityManager

added acrbuild stuff

Rutusamai/list build tasks for each registry (#37)

* tslint updates, transfered from old branch

* updated icon

* Addressed PR comments- mostly styling/code efficiency

* Changed url to aka.ms link

* changed Error window to Info message for no build tasks in your registry

* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts

* Changed build task icon

utility bug fix

Julia/delete repository final (#49)

* deleteRepo moved over to branch off dev

* Got rid of unnecessary code, fully functioning!

* deleteRepo moved over to branch off dev

* Got rid of unnecessary code, fully functioning!

* spacing

* final commit

* Cleaned code

* Added Telemetry

Julia/delete registry final (#47)

Delete azure registry functionality added

Delete azure registry moved to branch off dev

Reorganized stye

Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries

Split the loginCredentials function, added docker login and docker pull and telemetry actions

copied previous push to acr into new pull-from-azure.ts file

Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries

Split the loginCredentials function, added docker login and docker pull and telemetry actions

Finished pull from azure right click feature

Working again after rebasing and resolving merge conflicts

Refactoring, prod.

Estebanreyl/ready for production (#55)

* began updating

* Reorganized create registry and delete azure image

* continued improvements

* Began updating login

* being credentials update

* further updates

* Finished updating, need to test functionality now

* Updated requests, things all work now

* Applied some nit fixes

* Updates to naming

* maintain UtilityManager standards

* Updated Prompts

* Updated imports and naming / standarized telemetry

* Added explorer refresh capabilities on delete/add

Jackson/quick build dev (#46)

* added acrbuild stuff

* added acrbuild stuff

* Update to match utility manager class

* Added quick pick for selecting resource group and registry

* clean

* Added subscription support

* utility bug fix

* added folder select

* Updates and fixes

* Refactoring, prod.

* Flexible OSType

added ID

Move build to azure commands

cleanup

Relative dockerfile support

Removed await, updating list in enumeration

fixed chdir

flexible ostype

Rutusamai/Show Build Task properties (#70)

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show is working- final

* removed run build task stuff

* cleanup

* addressed esteban's comments

* buildTask = context.task.name rather than label

* fixes from Bin's comments

Merge branch 'dev' of https://github.com/AzureCR/vscode-docker into master4

merge

missed small changes

Rutusamai/Run a Build Task (#71)

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show is working- final

* run is working for right click

* run build task works through command pallette. added success notification

* removed show build task

* cleanup- matched quickpick buils task and tasknode withshow build task branch

* removed showTaskManager

* spacing

* outputChannel and null icon

* merge to update with dev

Estebanreyl/build logs final (#72)

*  "Merge branch 'estebanreyl/buildlogsWithAccesibility' of https://github.com/AzureCR/vscode-docker into estebanreyl/buildlogsWithAccesibility"

This reverts commit e645cbf, reversing
changes made to fc4a477.

* Refactored and organized log view into readable components.

* moved storage

* Began incorporating icons

* Added icons

* Further standarization

* added logs

* Added download log capabilities

* Updated Copy

* Updated inner div size alignment

* Added resizing script

* header sort by is only clickable on text now

* fixed header table

* Fix minor display issues

* Identified filtering strategy

* Begin adding sorting

* Merge with dev

* Added proper filtering

* Nit loading improvements

* Added accesibility, key only behaviour

* accesibility retouches and enable right click from tasknode

* merges

* fix module name

Adds streaming and command standarization (ext.ui) (#73)

* Adds streaming and command standarization (ext.ui)

* removed unecessary append lines

* small fixes

* Fix merge issues

changes for ACR 3.0.0 (#80)

* This commit contains changes necessary for the
azure-arm-containerregistry 3.0.0

* Fixed PR feedback

Run task fixed. Issue ID: 79

missing changes added

Fixing ACR run logs for Images

Sajaya/top1 (#83)

* Query only 1 record for runs

* View Azure logs

bug fix

* Removed filter for top (#88)

* fixing Image Log Filter

* fixing tslint error messages

* tslint fixes 2

* First PR microsoft#506 review Update include:
	Deletion of resizable.js
	Package.json commands alphabetically ordered.
	General typos, grammar and naming fixes.
	Change from fs - fs-extra.
	Other general improvments.

* Hide Azure Quick Build if Azure Account not available

* Second PR microsoft#506 review update.
	Quick Build Image name and dockerFile selection Improvements.
	Upgrade from fs to fs-extra.
	Log table bug fixes.
	Error Handeling Improvements.
	Other general improvements.

* Improving Logs generation Error handeling

* Third PR microsoft#506 review update.
	loadLogs parameters update.
	uploadSourceCode Improvements.

* UploadSourceCode no longer has to change process working directory.

* lint fix
estebanreyl pushed a commit that referenced this pull request Jul 26, 2023
* Added Azure Credentials Manager Singleton (#18)

* Added Azure Credentials Manager Singleton
* Added getResourceManagementClient

* Sorted Existing Create Registry ready for code review

* Added acquiring telemetry data for create registry

* broke up createnewresourcegroup method and fixed client use

Added try catch loop and awaited for resource group list again to check for duplicates with ResourceManagementClient

* Jackson esteban/unified client nit Fix (#24)

* Added Azure Credentials Manager Singleton

* Small Style Fixes

* Further Style fixes, added getResourceManagementClient

* Lazy Initialization Patches

* Enabled location selection

* Location request fixes

-Changed order of questions asked to user for better UX (location of new res group & location of new registry)
-Placeholder of location is display name view

* Refactor while loop for new res group

* Added SKU selection

* Quick fix- initializing array syntax

* Added specific error messages and comments

* Julia/delete image (#29)

* first fully functional version of delete through input bar AND right click

* refactored code to make it prettier!

* comments

* comments, added subscription function

* fixed to style guide

* style fixes, refactoring

* delete image after reviews

put my functions from azureCredentialsManager into two new files: utils/azure/acrTools.ts, and commands/utils/quick-pick-azure.ts

Edited code based on Esteban's and Bin's reviews

* One last little change to delete image

* moved repository, azureimage, and getsubscriptions to the correct places within deleteImage

* changes from PR reviews on delete image

* fixed authentication issue, got rid of azureAccount property for repository and image

**on constructor for repository, azurecredentialsmanager was being recreated and thus couldn't find the azureAccount. For this reason, I got rid of the azureAccount property of the classes Repository and AzureImage. This bug may lead to future problems (Esteban and I couldn't see why it was happening)

* minor fixes deleteImage

* delete a parentheses

* copied previous push to acr into new pull-from-azure.ts file

* Estebanreyl/dev merge fixes  (#43)

* Merge fixes to acquire latest telemetry items

* Updated to master AzureUtilityManager

* added acrbuild stuff

* added acrbuild stuff

* Update to match utility manager class

* Rutusamai/list build tasks for each registry (#37)

* tslint updates, transfered from old branch

* updated icon

* Addressed PR comments- mostly styling/code efficiency

* Changed url to aka.ms link

* changed Error window to Info message for no build tasks in your registry

* Changed default sku and unified parsing resource group into a new method, getResourceGroup in acrTools.ts

* Changed build task icon

* Added quick pick for selecting resource group and registry

* clean

* Added subscription support

* utility bug fix

* Julia/delete repository final (#49)

* deleteRepo moved over to branch off dev

* Got rid of unnecessary code, fully functioning!

* deleteRepo moved over to branch off dev

* Got rid of unnecessary code, fully functioning!

* spacing

* final commit

* Cleaned code

* Added Telemetry

* Julia/delete registry final (#47)


Delete azure registry functionality added

Delete azure registry moved to branch off dev

Reorganized stye

* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries

* added folder select

* Split the loginCredentials function, added docker login and docker pull and telemetry actions

* Finished pull from azure right click feature

* deleted push to azure

* removed username and password from Azure Registry Node

* Clean up

* copied previous push to acr into new pull-from-azure.ts file

* Made loginCredentials method in acrTools more efficient, added Pull Image from Azure option, temporary fix for no registries

* Split the loginCredentials function, added docker login and docker pull and telemetry actions

* Finished pull from azure right click feature

* deleted push to azure

* Clean up

* Working again after rebasing and resolving merge conflicts

* Updates and fixes

* Fixes from PR comments

-renamed loginCredentials functions
-added await to docker commands in image pull
-cleanup

* uncapitalize AzureRegistryNode

* Refactoring, prod.

* Flexible OSType

* Estebanreyl/ready for production (#55)

* began updating

* Reorganized create registry and delete azure image

* continued improvements

* Began updating login

* being credentials update

* further updates

* Finished updating, need to test functionality now

* Updated requests, things all work now

* Applied some nit fixes

* Updates to naming

* maintain UtilityManager standards

* Updated Prompts

* Updated imports and naming / standarized telemetry

* Added explorer refresh capabilities on delete/add

* Jackson/quick build dev (#46)

* added acrbuild stuff

* added acrbuild stuff

* Update to match utility manager class

* Added quick pick for selecting resource group and registry

* clean

* Added subscription support

* utility bug fix

* added folder select

* Updates and fixes

* Refactoring, prod.

* Flexible OSType

* added ID

* Move build to azure commands

* cleanup

* Relative dockerfile support

* Removed await, updating list in enumeration

* fixed chdir

* flexible ostype

* Rutusamai/Show Build Task properties (#70)

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show is working- final

* removed run build task stuff

* cleanup

* addressed esteban's comments

* buildTask = context.task.name rather than label

* fixes from Bin's comments

* Merge branch 'dev' of https://github.com/AzureCR/vscode-docker into master4

* merge

* missed small changes

* Rutusamai/Run a Build Task (#71)

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show build task works through input bar

* added run build task

* Right click not working on BuildTaskNode. Works through command palette

* quick fixes

* quick fix to enable context menu on buildTaskNode

* comamnd not sending via right click

* working from right click now. trying to do show in json

* Acquire properties in JSON format internally, works

* Now shows organized task jsons on right click

* import

* to do

* issues with getImagesByRepository

* try catch build step

* acrTools

* small refactor

* Show is working- final

* run is working for right click

* run build task works through command pallette. added success notification

* removed show build task

* cleanup- matched quickpick buils task and tasknode withshow build task branch

* removed showTaskManager

* spacing

* outputChannel and null icon

* merge to update with dev

* Estebanreyl/build logs final (#72)

*  "Merge branch 'estebanreyl/buildlogsWithAccesibility' of https://github.com/AzureCR/vscode-docker into estebanreyl/buildlogsWithAccesibility"

This reverts commit e645cbf, reversing
changes made to fc4a477.

* Refactored and organized log view into readable components.

* moved storage

* Began incorporating icons

* Added icons

* Further standarization

* added logs

* Added download log capabilities

* Updated Copy

* Updated inner div size alignment

* Added resizing script

* header sort by is only clickable on text now

* fixed header table

* Fix minor display issues

* Identified filtering strategy

* Begin adding sorting

* Merge with dev

* Added proper filtering

* Nit loading improvements

* Added accesibility, key only behaviour

* accesibility retouches and enable right click from tasknode

* merges

* fix module name

* Adds streaming and command standarization (ext.ui) (#73)

* Adds streaming and command standarization (ext.ui)

* removed unecessary append lines

* small fixes

* Fix merge issues

* changes for ACR 3.0.0 (#80)

* This commit contains changes necessary for the
azure-arm-containerregistry 3.0.0

* Fixed PR feedback

* Run task fixed. Issue ID: 79

* missing changes added

* Fixing ACR run logs for Images

* Sajaya/top1 (#83)

* Query only 1 record for runs

* View Azure logs

* Refactoring build to run and buildTask to task

* Removed filter for top (#88)

* adding run yaml file

* Refactoring to run task file.

* fixing logs filter for images

* Last Update time Fixed

* Cleanup + refactoring delete image to untag image

* Adding delete ACR Image (delete digest)

* Changing text promt on right click to run ACR task file

* Update settings.json

* minor PR review fixes 1

* PR fixes 1

* Missed: change any to string

* merge clean up

* Schedule run code reduction + minor improvements

* ACR request Improvements

* Minor grammar fixes
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.

None yet

3 participants