-
Notifications
You must be signed in to change notification settings - Fork 95
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
feat(manifest): Allow defining accounts #1240
Conversation
a4d2d61
to
b742e82
Compare
To support accounts, a new `account` struct is introduced containing all important fields.
This change extends the in-memory definition of the manifest.
This allows us to write proper package unit-tests instead of accidently relying on package-internals.
b742e82
to
646e0ad
Compare
Unit Test Results 2 files ± 0 222 suites ±0 22s ⏱️ +4s Results for commit b10e9bd. ± Comparison against base commit 31b0c6a. This pull request removes 7 and adds 18 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
1e6bfab
to
583e0d5
Compare
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.
Changes look good to me overall 👍 Just a few small comments/suggestions
The new version allows defining accounts. If a prior version is used, we print an error describing that accounts are not supported. Additionally, simplify the manifest version checking
This change converts all persisted accounts to in-memory definitions
This change allows nice restructuring. Additionally, introduced unit tests for that file, and errors to easily check what happened.
The test fails as the current code returns an empty map instead of nil.
Also: introduce a feature flag
Instead of having *convert/parse/to*, we now have *parse* as the single prefix for reading manifest related data.
583e0d5
to
b10e9bd
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What this PR does / Why we need it:
This PR allows defining accounts in the
manifest.yaml
.To do that, a user must increase the manifest-version to
1.1
.Example manifest:
Does this PR introduce a user-facing change?
No, not really. Everything is still compatible if using monaco 1.0 manifests.
Other changes included
manifest_test.go
is now in themanifest_test
package so we can do package tests.Future work
Some identified refactorings: