Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Creating a central Status Struct #411

Merged
merged 3 commits into from
Oct 24, 2019
Merged

Creating a central Status Struct #411

merged 3 commits into from
Oct 24, 2019

Conversation

melonrush13
Copy link
Contributor

Addresses #406

What this PR does / why we need it:

  • Addition of AzureServiceOperatorsStatus (ASOStatus) struct
  • Replaces resource specific status struct's with a central struct

Special notes for your reviewer:

How does this PR make you feel:
gif

If applicable:

  • this PR contains documentation
  • this PR contains tests

@clmccart clmccart self-assigned this Oct 24, 2019
@clmccart
Copy link
Contributor

Noticed you didn't apply the central status struct to keyvault. I assume this is because it follows a different pattern / is in prod so we don't want to mess it up but just wanted to confirm it wasn't an oversight.

@melonrush13
Copy link
Contributor Author

Yes, @clmccart! Exactly. It followed a different pattern so I made a new issue for it here #413

(KeyVault had an additional ID value in the status struct which is being used in the controller and tests, so I'm handling them in a new branch right now. Once that is resolved, we will use the ASOStatus there, too!)

Copy link
Contributor

@clmccart clmccart left a comment

Choose a reason for hiding this comment

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

Looks good! Branch needs updating and hopefully tests will pass :)

@melonrush13
Copy link
Contributor Author

Thank you @clmccart :)

@melonrush13 melonrush13 merged commit 88a973e into Azure:master Oct 24, 2019
Porges pushed a commit that referenced this pull request May 11, 2021
* Preallocate sufficient room for sanitizing the package name

* Use v1alpha1api as prefix for API versions

* Add IsPreview to PackageReference

* Update receiver names

* Add tests for IsPreview()

* Update tests

* Use smart cast in pipeline stage.

* Add sorting for package references

* Fix version numbers in configuration files

* Update paths used in tests

* Fix panic caused by nil deployment value

* Move files to new namespace

* Update another version reference

* Uncomment version filters

* Update version numbers

* Rename file to remove _gen suffix

* Revert receiver renames

* Use titlecase when creating versioned package imports

* Improve doc comments

* Fix unit tests for titlecase change

* Change order of imports

* Revert capitalization of version numbers

* Use local variables to simplify code

* Reuse implementation of IsPreview()

* Fix strange import

* Simplify helper method containsPreviewVersionLabel and consumption
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants