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

Ag common files #2419

Merged
merged 21 commits into from
Feb 15, 2024
Merged

Ag common files #2419

merged 21 commits into from
Feb 15, 2024

Conversation

sebassem
Copy link
Contributor

  • Consolidating the artifacts codebase for Agora scenarios

***Refactor code for better performance***

***Update UI layout for improved user experience***

***Add new feature for user authentication***

***Fix typo in variable name***

***Remove unused imports***

***Update documentation for new API endpoints***

***Optimize database queries for faster response times***

***Fix issue with error handling in API calls***

***Add unit tests for new functionality
@sebassem sebassem requested a review from likamrat February 14, 2024 14:53

Hi sebassem! Thank you for opening this Pull Request. Someone will review it soon. Thank you for committing to making the Azure Arc Jumpstart better.

@sebassem sebassem requested a review from dkirby-ms February 14, 2024 16:36
Copy link
Contributor

@dkirby-ms dkirby-ms left a comment

Choose a reason for hiding this comment

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

Some general feedback on code layout and some specifics around paths and logging. We can merge and work on these moving forward rather than being a blocker right now.

I also see some HCIBox related files in here so I think you need to fetch latest into your fork before merge.

$AgConfig = Import-PowerShellDataFile -Path $Env:AgConfigPath
$AgToolsDir = $AgConfig.AgDirectories["AgToolsDir"]
$AgIconsDir = $AgConfig.AgDirectories["AgIconDir"]
$AgAppsRepo = $AgConfig.AgDirectories["AgAppsRepo"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider referncing folder paths via a hashtable instead of via array lookup.

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Its easier to read IMO



Start-Transcript -Path ($AgConfig.AgDirectories["AgLogsDir"] + "\AgLogonScript.log")
Write-Header "Executing Jumpstart Agora automation scripts"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should drop use of Write-Header and the PS1Profile injection where it gets defined and just stick with Write-Host. For context, I have removed Write-Header completely for HCIBox.

Copy link
Contributor

Choose a reason for hiding this comment

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

The length of this script seems like it might be better suited broken into defined functions. For example:

  • Configure-L1Virtualization
  • Configure-AzureIoT
  • Configure-Kubernetes

And in each of these we are doing the heavy lifting that is being done in the main thread right now.

@sebassem sebassem merged commit f015223 into microsoft:ag_manufacturing Feb 15, 2024
1 check passed
@sebassem sebassem deleted the ag_common_files branch February 15, 2024 14:32
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