-
Notifications
You must be signed in to change notification settings - Fork 107
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
1ESPT Schema Rollout #543
1ESPT Schema Rollout #543
Conversation
@50Wliu, @KonstantinTyukalov - please take a look and share feedback if any. |
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.
In general this looks good! A few suggestions and questions, particularly about the config experience. At a high-level, I'd like to hear the rationale behind introducing a new config setting, rather than doing everything behind the scenes and "silently" upgrading them to 1ESPT if it's supported.
@50Wliu Thanks for reviewing the PR :) I have addressed your comments. Please let me know if you have any other concerns. |
Co-authored-by: Winston Liu <Wliu1402@gmail.com>
…/priyatejankar/azure-pipelines-vscode into dev/ptejankar/rollout1esptSchema
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.
Just a few more comments! I'll want to give it a spin for myself to see what the config experience is like, but code-wise it's looking good :).
Ask: could you please go through and make sure all the lines you added:
- have semicolon endings
- use
const
/let
, notvar
- don't use
any
types
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.
- On startup, I see the following error:
Cannot read properties of undefined (reading 'name')
atsrc\schema-association-service.ts:72:72
. I would imagine this is because I don't have a workspace folder opened. - I'm really not a fan of persisting config changes without user input.
- This creates unnecessary churn that will show up when going to commit changes
- Whether they have access to 1ES Pipeline Templates is not controllable
- If/when 1ESPT is added to their org, they need to remember to manually re-enable the setting. Knowing how to do this isn't obvious, because at a glance it'll look like the setting is already enabled (see picture below)
- I would recommend changing the wording of the non-MS account message to use the 2nd-person (you vs user). In addition, "Microsoft account" here is ambiguous. I am signed in with a Microsoft account - my personal MSA. I would suggest finding a way to clarify that this is for Microsoft employees only.
- Why do I get a message that the 1ESPT Schema is disabled even if I don't have the setting enabled in the first place? And why does it keep recreating a settings.json every time I try to remove it?
I am blocking on points 1, 3, and 4. Regarding point 2 specifically, I know we've already gone over this. I respect you and your team's stance and won't block this PR because we have different config philosophies, but to reduce friction and increase discoverability of this feature I would highly suggest:
- Turning this feature on by default (even better would be removing the setting entirely)
- Silently falling back to the other schemas if the prerequisites aren't met
This way anyone using this extension automatically gets the best intellisense available to them without needing to configure anything (other than signing in once).
@50Wliu I have addressed your comments here. Please find my responses in bold:
|
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.
Couple of small things
Co-authored-by: Winston Liu <Wliu1402@gmail.com>
Co-authored-by: Winston Liu <Wliu1402@gmail.com>
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.
Looking forward to seeing this in action! Should really help people using the 1ES templates :).
No description provided.