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

Promote "info" fields out in artifacts for consistency with manifests. #644

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

BillyONeal
Copy link
Member

Note that 'id' is not renamed to name because they can contain /s, and names cannot.

Functional changes:

  • Hoist the info fields to MetadataFile. Add functionality to warn on regenerate-index if the 'info' block is present, optionally doing the conversion on the user's behalf.
  • Fixed x-regenerate not correctly calling ce when --debug et al. were specified because ce's console parser assumes ALL --foo bar says that bar is the value of foo.

Code / refactoring-like changes:

  • Rename ValidationError to ValidationMessage since it may also be used for things that aren't errors now.
  • Delete the IInfo interface.
  • Removed "validationErrors" hanging off of MetadataFile. This was broken because it cached the result which may not hold after modifications. Exposed a function to format ValidationMessages from MetadataFile by extracting what used to be in that code though.
  • Rename Flags to Options since that's the name actually used.
  • Fixed some tests that were still passing yaml.

Note that 'id' is not renamed to name because they can contain /s, and names cannot.

Functional changes:
* Hoist the info fields to MetadataFile. Add functionality to warn on regenerate-index if the 'info' block is present, optionally doing the conversion on the user's behalf.
* Fixed x-regenerate not correctly calling ce when --debug et al. were specified because ce's console parser assumes ALL --foo bar says that bar is the value of foo.

Code / refactoring-like changes:
* Rename ValidationError to ValidationMessage since it may also be used for things that aren't errors now.
* Delete the IInfo interface.
* Removed "validationErrors" hanging off of MetadataFile. This was broken because it cached the result which may not hold after modifications. Exposed a function to format ValidationMessages from MetadataFile by extracting what used to be in that code though.
* Rename Flags to Options since that's the name actually used.
* Fixed some tests that were still passing yaml.
@BillyONeal BillyONeal requested a review from fearthecowboy July 21, 2022 01:13
@BillyONeal
Copy link
Member Author

Resolves https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1495059 "the info block still exists"

@BillyONeal BillyONeal merged commit 0481316 into microsoft:main Jul 26, 2022
@BillyONeal BillyONeal deleted the info-block branch July 26, 2022 00:25
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